|
|
@@ -1,234 +1,384 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
+// versions:
|
|
|
+// protoc-gen-go v1.25.0
|
|
|
+// protoc v3.14.0
|
|
|
// source: auth.proto
|
|
|
|
|
|
package pb
|
|
|
|
|
|
import (
|
|
|
context "context"
|
|
|
- fmt "fmt"
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
status "google.golang.org/grpc/status"
|
|
|
- math "math"
|
|
|
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
+ reflect "reflect"
|
|
|
+ sync "sync"
|
|
|
)
|
|
|
|
|
|
-// Reference imports to suppress errors if they are not otherwise used.
|
|
|
-var _ = proto.Marshal
|
|
|
-var _ = fmt.Errorf
|
|
|
-var _ = math.Inf
|
|
|
+const (
|
|
|
+ // Verify that this generated code is sufficiently up-to-date.
|
|
|
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
+)
|
|
|
|
|
|
-// This is a compile-time assertion to ensure that this generated file
|
|
|
-// is compatible with the proto package it is being compiled against.
|
|
|
-// A compilation error at this line likely means your copy of the
|
|
|
-// proto package needs to be updated.
|
|
|
-const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
+// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
+// of the legacy proto package is being used.
|
|
|
+const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
type AuthStatusRequest struct {
|
|
|
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
- XXX_unrecognized []byte `json:"-"`
|
|
|
- XXX_sizecache int32 `json:"-"`
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
}
|
|
|
|
|
|
-func (m *AuthStatusRequest) Reset() { *m = AuthStatusRequest{} }
|
|
|
-func (m *AuthStatusRequest) String() string { return proto.CompactTextString(m) }
|
|
|
-func (*AuthStatusRequest) ProtoMessage() {}
|
|
|
-func (*AuthStatusRequest) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_8bbd6f3875b0e874, []int{0}
|
|
|
+func (x *AuthStatusRequest) Reset() {
|
|
|
+ *x = AuthStatusRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_auth_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-func (m *AuthStatusRequest) XXX_Unmarshal(b []byte) error {
|
|
|
- return xxx_messageInfo_AuthStatusRequest.Unmarshal(m, b)
|
|
|
-}
|
|
|
-func (m *AuthStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
- return xxx_messageInfo_AuthStatusRequest.Marshal(b, m, deterministic)
|
|
|
-}
|
|
|
-func (m *AuthStatusRequest) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_AuthStatusRequest.Merge(m, src)
|
|
|
-}
|
|
|
-func (m *AuthStatusRequest) XXX_Size() int {
|
|
|
- return xxx_messageInfo_AuthStatusRequest.Size(m)
|
|
|
-}
|
|
|
-func (m *AuthStatusRequest) XXX_DiscardUnknown() {
|
|
|
- xxx_messageInfo_AuthStatusRequest.DiscardUnknown(m)
|
|
|
+func (x *AuthStatusRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-var xxx_messageInfo_AuthStatusRequest proto.InternalMessageInfo
|
|
|
+func (*AuthStatusRequest) ProtoMessage() {}
|
|
|
|
|
|
-type AuthAuthenticateRequest struct {
|
|
|
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
- XXX_unrecognized []byte `json:"-"`
|
|
|
- XXX_sizecache int32 `json:"-"`
|
|
|
+func (x *AuthStatusRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_auth_proto_msgTypes[0]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-func (m *AuthAuthenticateRequest) Reset() { *m = AuthAuthenticateRequest{} }
|
|
|
-func (m *AuthAuthenticateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
-func (*AuthAuthenticateRequest) ProtoMessage() {}
|
|
|
-func (*AuthAuthenticateRequest) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_8bbd6f3875b0e874, []int{1}
|
|
|
+// Deprecated: Use AuthStatusRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*AuthStatusRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_auth_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
-func (m *AuthAuthenticateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
- return xxx_messageInfo_AuthAuthenticateRequest.Unmarshal(m, b)
|
|
|
-}
|
|
|
-func (m *AuthAuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
- return xxx_messageInfo_AuthAuthenticateRequest.Marshal(b, m, deterministic)
|
|
|
+type AuthAuthenticateRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
+ Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
}
|
|
|
-func (m *AuthAuthenticateRequest) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_AuthAuthenticateRequest.Merge(m, src)
|
|
|
+
|
|
|
+func (x *AuthAuthenticateRequest) Reset() {
|
|
|
+ *x = AuthAuthenticateRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_auth_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
}
|
|
|
-func (m *AuthAuthenticateRequest) XXX_Size() int {
|
|
|
- return xxx_messageInfo_AuthAuthenticateRequest.Size(m)
|
|
|
+
|
|
|
+func (x *AuthAuthenticateRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
-func (m *AuthAuthenticateRequest) XXX_DiscardUnknown() {
|
|
|
- xxx_messageInfo_AuthAuthenticateRequest.DiscardUnknown(m)
|
|
|
+
|
|
|
+func (*AuthAuthenticateRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *AuthAuthenticateRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_auth_proto_msgTypes[1]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-var xxx_messageInfo_AuthAuthenticateRequest proto.InternalMessageInfo
|
|
|
+// Deprecated: Use AuthAuthenticateRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*AuthAuthenticateRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_auth_proto_rawDescGZIP(), []int{1}
|
|
|
+}
|
|
|
|
|
|
-func (m *AuthAuthenticateRequest) GetUsername() string {
|
|
|
- if m != nil {
|
|
|
- return m.Username
|
|
|
+func (x *AuthAuthenticateRequest) GetUsername() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Username
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (m *AuthAuthenticateRequest) GetPassword() string {
|
|
|
- if m != nil {
|
|
|
- return m.Password
|
|
|
+func (x *AuthAuthenticateRequest) GetPassword() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Password
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type AuthStatusResponse struct {
|
|
|
- User *UserResponse_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
- IsRoot bool `protobuf:"varint,2,opt,name=is_root,json=isRoot,proto3" json:"is_root,omitempty"`
|
|
|
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
- XXX_unrecognized []byte `json:"-"`
|
|
|
- XXX_sizecache int32 `json:"-"`
|
|
|
-}
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
-func (m *AuthStatusResponse) Reset() { *m = AuthStatusResponse{} }
|
|
|
-func (m *AuthStatusResponse) String() string { return proto.CompactTextString(m) }
|
|
|
-func (*AuthStatusResponse) ProtoMessage() {}
|
|
|
-func (*AuthStatusResponse) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_8bbd6f3875b0e874, []int{2}
|
|
|
+ User *UserResponse_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
+ IsRoot bool `protobuf:"varint,2,opt,name=is_root,json=isRoot,proto3" json:"is_root,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (m *AuthStatusResponse) XXX_Unmarshal(b []byte) error {
|
|
|
- return xxx_messageInfo_AuthStatusResponse.Unmarshal(m, b)
|
|
|
-}
|
|
|
-func (m *AuthStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
- return xxx_messageInfo_AuthStatusResponse.Marshal(b, m, deterministic)
|
|
|
-}
|
|
|
-func (m *AuthStatusResponse) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_AuthStatusResponse.Merge(m, src)
|
|
|
+func (x *AuthStatusResponse) Reset() {
|
|
|
+ *x = AuthStatusResponse{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_auth_proto_msgTypes[2]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
}
|
|
|
-func (m *AuthStatusResponse) XXX_Size() int {
|
|
|
- return xxx_messageInfo_AuthStatusResponse.Size(m)
|
|
|
+
|
|
|
+func (x *AuthStatusResponse) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
-func (m *AuthStatusResponse) XXX_DiscardUnknown() {
|
|
|
- xxx_messageInfo_AuthStatusResponse.DiscardUnknown(m)
|
|
|
+
|
|
|
+func (*AuthStatusResponse) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *AuthStatusResponse) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_auth_proto_msgTypes[2]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-var xxx_messageInfo_AuthStatusResponse proto.InternalMessageInfo
|
|
|
+// Deprecated: Use AuthStatusResponse.ProtoReflect.Descriptor instead.
|
|
|
+func (*AuthStatusResponse) Descriptor() ([]byte, []int) {
|
|
|
+ return file_auth_proto_rawDescGZIP(), []int{2}
|
|
|
+}
|
|
|
|
|
|
-func (m *AuthStatusResponse) GetUser() *UserResponse_User {
|
|
|
- if m != nil {
|
|
|
- return m.User
|
|
|
+func (x *AuthStatusResponse) GetUser() *UserResponse_User {
|
|
|
+ if x != nil {
|
|
|
+ return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (m *AuthStatusResponse) GetIsRoot() bool {
|
|
|
- if m != nil {
|
|
|
- return m.IsRoot
|
|
|
+func (x *AuthStatusResponse) GetIsRoot() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsRoot
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
type AuthAuthenticateResponse struct {
|
|
|
- Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
- XXX_unrecognized []byte `json:"-"`
|
|
|
- XXX_sizecache int32 `json:"-"`
|
|
|
-}
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
-func (m *AuthAuthenticateResponse) Reset() { *m = AuthAuthenticateResponse{} }
|
|
|
-func (m *AuthAuthenticateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
-func (*AuthAuthenticateResponse) ProtoMessage() {}
|
|
|
-func (*AuthAuthenticateResponse) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_8bbd6f3875b0e874, []int{3}
|
|
|
+ Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (m *AuthAuthenticateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
- return xxx_messageInfo_AuthAuthenticateResponse.Unmarshal(m, b)
|
|
|
-}
|
|
|
-func (m *AuthAuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
- return xxx_messageInfo_AuthAuthenticateResponse.Marshal(b, m, deterministic)
|
|
|
-}
|
|
|
-func (m *AuthAuthenticateResponse) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_AuthAuthenticateResponse.Merge(m, src)
|
|
|
+func (x *AuthAuthenticateResponse) Reset() {
|
|
|
+ *x = AuthAuthenticateResponse{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_auth_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
}
|
|
|
-func (m *AuthAuthenticateResponse) XXX_Size() int {
|
|
|
- return xxx_messageInfo_AuthAuthenticateResponse.Size(m)
|
|
|
+
|
|
|
+func (x *AuthAuthenticateResponse) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
-func (m *AuthAuthenticateResponse) XXX_DiscardUnknown() {
|
|
|
- xxx_messageInfo_AuthAuthenticateResponse.DiscardUnknown(m)
|
|
|
+
|
|
|
+func (*AuthAuthenticateResponse) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *AuthAuthenticateResponse) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_auth_proto_msgTypes[3]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-var xxx_messageInfo_AuthAuthenticateResponse proto.InternalMessageInfo
|
|
|
+// Deprecated: Use AuthAuthenticateResponse.ProtoReflect.Descriptor instead.
|
|
|
+func (*AuthAuthenticateResponse) Descriptor() ([]byte, []int) {
|
|
|
+ return file_auth_proto_rawDescGZIP(), []int{3}
|
|
|
+}
|
|
|
|
|
|
-func (m *AuthAuthenticateResponse) GetToken() string {
|
|
|
- if m != nil {
|
|
|
- return m.Token
|
|
|
+func (x *AuthAuthenticateResponse) GetToken() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Token
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func init() {
|
|
|
- proto.RegisterType((*AuthStatusRequest)(nil), "pb.AuthStatusRequest")
|
|
|
- proto.RegisterType((*AuthAuthenticateRequest)(nil), "pb.AuthAuthenticateRequest")
|
|
|
- proto.RegisterType((*AuthStatusResponse)(nil), "pb.AuthStatusResponse")
|
|
|
- proto.RegisterType((*AuthAuthenticateResponse)(nil), "pb.AuthAuthenticateResponse")
|
|
|
-}
|
|
|
-
|
|
|
-func init() { proto.RegisterFile("auth.proto", fileDescriptor_8bbd6f3875b0e874) }
|
|
|
-
|
|
|
-var fileDescriptor_8bbd6f3875b0e874 = []byte{
|
|
|
- // 306 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x41, 0x4e, 0x2a, 0x41,
|
|
|
- 0x10, 0xcd, 0x90, 0xff, 0x11, 0x0b, 0x37, 0x36, 0x22, 0x38, 0x10, 0x63, 0x26, 0x2e, 0xd4, 0x05,
|
|
|
- 0xa3, 0xb8, 0x73, 0xe7, 0x11, 0x1c, 0x35, 0x71, 0x67, 0x1a, 0xac, 0xc0, 0x44, 0xed, 0x1a, 0xbb,
|
|
|
- 0x6a, 0x70, 0xef, 0x15, 0x3c, 0x9a, 0x1e, 0xc1, 0x83, 0x98, 0xee, 0x1e, 0xcc, 0x28, 0x2c, 0x3a,
|
|
|
- 0xe9, 0x57, 0xaf, 0xea, 0xbd, 0x97, 0x2a, 0x00, 0x5d, 0xca, 0x7c, 0x54, 0x58, 0x12, 0x52, 0x8d,
|
|
|
- 0x62, 0x12, 0x0f, 0x67, 0x44, 0xb3, 0x27, 0x4c, 0x75, 0x91, 0xa7, 0xda, 0x18, 0x12, 0x2d, 0x39,
|
|
|
- 0x19, 0x0e, 0x1d, 0x31, 0x94, 0x8c, 0x36, 0xfc, 0x93, 0x0e, 0x6c, 0x5f, 0x96, 0x32, 0xbf, 0x16,
|
|
|
- 0x2d, 0x25, 0x67, 0xf8, 0x52, 0x22, 0x4b, 0x72, 0x05, 0x3d, 0x57, 0x74, 0x0f, 0x8d, 0xe4, 0x53,
|
|
|
- 0x2d, 0x58, 0x51, 0x2a, 0x86, 0x96, 0x9b, 0x36, 0xfa, 0x19, 0xfb, 0xd1, 0x41, 0x74, 0xb4, 0x99,
|
|
|
- 0xfd, 0x60, 0xc7, 0x15, 0x9a, 0xf9, 0x95, 0xec, 0x43, 0xbf, 0x11, 0xb8, 0x25, 0x4e, 0xee, 0x40,
|
|
|
- 0xd5, 0x7d, 0xb8, 0x20, 0xc3, 0xa8, 0x8e, 0xe1, 0x9f, 0x9b, 0xf6, 0x4a, 0xed, 0x71, 0x77, 0x54,
|
|
|
- 0x4c, 0x46, 0xb7, 0x8c, 0x76, 0xc9, 0x07, 0xe0, 0x5b, 0x54, 0x0f, 0x36, 0x72, 0xbe, 0xb7, 0x44,
|
|
|
- 0xe2, 0xb5, 0x5b, 0x59, 0x33, 0xe7, 0x8c, 0x48, 0x92, 0x53, 0xe8, 0xaf, 0x86, 0xad, 0xf4, 0x77,
|
|
|
- 0xe0, 0xbf, 0xd0, 0x23, 0x9a, 0x2a, 0x6a, 0x00, 0xe3, 0xcf, 0x08, 0xda, 0x3e, 0x0c, 0xda, 0x45,
|
|
|
- 0x3e, 0x45, 0x75, 0x03, 0xcd, 0x90, 0x4b, 0xf9, 0x04, 0x2b, 0xfb, 0x88, 0x77, 0xff, 0x96, 0x83,
|
|
|
- 0x7c, 0x32, 0x78, 0xfb, 0xf8, 0x7a, 0x6f, 0x74, 0x55, 0xc7, 0x2f, 0x7a, 0x71, 0x96, 0xba, 0x33,
|
|
|
- 0xa4, 0x1c, 0xb4, 0x08, 0xb6, 0xea, 0x99, 0xd4, 0x60, 0x29, 0xb2, 0x66, 0xad, 0xf1, 0x70, 0x3d,
|
|
|
- 0x59, 0xf9, 0x1c, 0x7a, 0x9f, 0xfd, 0x64, 0xef, 0x97, 0x8f, 0xae, 0xb5, 0x5e, 0x44, 0x27, 0x93,
|
|
|
- 0xa6, 0xbf, 0xe8, 0xf9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x87, 0xd8, 0x13, 0x0a, 0x0d, 0x02,
|
|
|
- 0x00, 0x00,
|
|
|
+var File_auth_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_auth_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
|
|
|
+ 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
|
|
|
+ 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a,
|
|
|
+ 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x41, 0x75,
|
|
|
+ 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
|
|
+ 0x51, 0x0a, 0x17, 0x41, 0x75, 0x74, 0x68, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
|
|
|
+ 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73,
|
|
|
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73,
|
|
|
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
|
|
+ 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
|
|
+ 0x72, 0x64, 0x22, 0x58, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
|
|
|
+ 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x02,
|
|
|
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x52, 0x6f, 0x6f, 0x74, 0x22, 0x30, 0x0a, 0x18,
|
|
|
+ 0x41, 0x75, 0x74, 0x68, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
|
|
|
+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xd4,
|
|
|
+ 0x01, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x54,
|
|
|
+ 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75,
|
|
|
+ 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
+ 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12,
|
|
|
+ 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x74,
|
|
|
+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x6f, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,
|
|
|
+ 0x63, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x41, 0x75,
|
|
|
+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
+ 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x41, 0x75, 0x74, 0x68, 0x65,
|
|
|
+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
|
+ 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
|
|
|
+ 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
|
|
|
+ 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ file_auth_proto_rawDescOnce sync.Once
|
|
|
+ file_auth_proto_rawDescData = file_auth_proto_rawDesc
|
|
|
+)
|
|
|
+
|
|
|
+func file_auth_proto_rawDescGZIP() []byte {
|
|
|
+ file_auth_proto_rawDescOnce.Do(func() {
|
|
|
+ file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData)
|
|
|
+ })
|
|
|
+ return file_auth_proto_rawDescData
|
|
|
+}
|
|
|
+
|
|
|
+var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
+var file_auth_proto_goTypes = []interface{}{
|
|
|
+ (*AuthStatusRequest)(nil), // 0: pb.AuthStatusRequest
|
|
|
+ (*AuthAuthenticateRequest)(nil), // 1: pb.AuthAuthenticateRequest
|
|
|
+ (*AuthStatusResponse)(nil), // 2: pb.AuthStatusResponse
|
|
|
+ (*AuthAuthenticateResponse)(nil), // 3: pb.AuthAuthenticateResponse
|
|
|
+ (*UserResponse_User)(nil), // 4: pb.UserResponse.User
|
|
|
+}
|
|
|
+var file_auth_proto_depIdxs = []int32{
|
|
|
+ 4, // 0: pb.AuthStatusResponse.user:type_name -> pb.UserResponse.User
|
|
|
+ 0, // 1: pb.AuthService.Status:input_type -> pb.AuthStatusRequest
|
|
|
+ 1, // 2: pb.AuthService.Authenticate:input_type -> pb.AuthAuthenticateRequest
|
|
|
+ 2, // 3: pb.AuthService.Status:output_type -> pb.AuthStatusResponse
|
|
|
+ 3, // 4: pb.AuthService.Authenticate:output_type -> pb.AuthAuthenticateResponse
|
|
|
+ 3, // [3:5] is the sub-list for method output_type
|
|
|
+ 1, // [1:3] is the sub-list for method input_type
|
|
|
+ 1, // [1:1] is the sub-list for extension type_name
|
|
|
+ 1, // [1:1] is the sub-list for extension extendee
|
|
|
+ 0, // [0:1] is the sub-list for field type_name
|
|
|
+}
|
|
|
+
|
|
|
+func init() { file_auth_proto_init() }
|
|
|
+func file_auth_proto_init() {
|
|
|
+ if File_auth_proto != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ file_user_proto_init()
|
|
|
+ if !protoimpl.UnsafeEnabled {
|
|
|
+ file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AuthStatusRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AuthAuthenticateRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AuthStatusResponse); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AuthAuthenticateResponse); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ type x struct{}
|
|
|
+ out := protoimpl.TypeBuilder{
|
|
|
+ File: protoimpl.DescBuilder{
|
|
|
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
+ RawDescriptor: file_auth_proto_rawDesc,
|
|
|
+ NumEnums: 0,
|
|
|
+ NumMessages: 4,
|
|
|
+ NumExtensions: 0,
|
|
|
+ NumServices: 1,
|
|
|
+ },
|
|
|
+ GoTypes: file_auth_proto_goTypes,
|
|
|
+ DependencyIndexes: file_auth_proto_depIdxs,
|
|
|
+ MessageInfos: file_auth_proto_msgTypes,
|
|
|
+ }.Build()
|
|
|
+ File_auth_proto = out.File
|
|
|
+ file_auth_proto_rawDesc = nil
|
|
|
+ file_auth_proto_goTypes = nil
|
|
|
+ file_auth_proto_depIdxs = nil
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ context.Context
|
|
|
-var _ grpc.ClientConn
|
|
|
+var _ grpc.ClientConnInterface
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
-const _ = grpc.SupportPackageIsVersion4
|
|
|
+const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
// AuthServiceClient is the client API for AuthService service.
|
|
|
//
|
|
|
@@ -239,10 +389,10 @@ type AuthServiceClient interface {
|
|
|
}
|
|
|
|
|
|
type authServiceClient struct {
|
|
|
- cc *grpc.ClientConn
|
|
|
+ cc grpc.ClientConnInterface
|
|
|
}
|
|
|
|
|
|
-func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient {
|
|
|
+func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient {
|
|
|
return &authServiceClient{cc}
|
|
|
}
|
|
|
|
|
|
@@ -274,10 +424,10 @@ type AuthServiceServer interface {
|
|
|
type UnimplementedAuthServiceServer struct {
|
|
|
}
|
|
|
|
|
|
-func (*UnimplementedAuthServiceServer) Status(ctx context.Context, req *AuthStatusRequest) (*AuthStatusResponse, error) {
|
|
|
+func (*UnimplementedAuthServiceServer) Status(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
|
|
|
}
|
|
|
-func (*UnimplementedAuthServiceServer) Authenticate(ctx context.Context, req *AuthAuthenticateRequest) (*AuthAuthenticateResponse, error) {
|
|
|
+func (*UnimplementedAuthServiceServer) Authenticate(context.Context, *AuthAuthenticateRequest) (*AuthAuthenticateResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented")
|
|
|
}
|
|
|
|