Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetAccessToken() string
- func (x *Response) GetCode() Response_Code
- func (x *Response) GetConfirmation() *confirmation.Confirmation
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_Code
- func (Response_Code) Descriptor() protoreflect.EnumDescriptor
- func (x Response_Code) Enum() *Response_Code
- func (Response_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x Response_Code) Number() protoreflect.EnumNumber
- func (x Response_Code) String() string
- func (Response_Code) Type() protoreflect.EnumType
- type SignAttachRequest
- func (*SignAttachRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignAttachRequest) GetContact() *contact.Contact
- func (x *SignAttachRequest) GetLocale() string
- func (x *SignAttachRequest) GetPassword() string
- func (x *SignAttachRequest) GetProfile() *profile.Profile_Data
- func (*SignAttachRequest) ProtoMessage()
- func (x *SignAttachRequest) ProtoReflect() protoreflect.Message
- func (x *SignAttachRequest) Reset()
- func (x *SignAttachRequest) String() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetAgent() *agent.Agent
- func (x *SignInRequest) GetContact() *contact.Contact
- func (x *SignInRequest) GetPassword() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type UnimplementedAuthServer
- type UnsafeAuthServer
Constants ¶
This section is empty.
Variables ¶
var ( Response_Code_name = map[int32]string{ 0: "SUCCESS", 1: "ATTACH_STEP", 2: "CONFIRMATION_STEP", } Response_Code_value = map[string]int32{ "SUCCESS": 0, "ATTACH_STEP": 1, "CONFIRMATION_STEP": 2, } )
Enum value maps for Response_Code.
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "biconom.admin.auth.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignIn", Handler: _Auth_SignIn_Handler, }, { MethodName: "SignAttach", Handler: _Auth_SignAttach_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "biconom/admin/auth/v1/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_biconom_admin_auth_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*Response, error) SignAttach(ctx context.Context, in *SignAttachRequest, opts ...grpc.CallOption) (*Response, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { SignIn(context.Context, *SignInRequest) (*Response, error) SignAttach(context.Context, *SignAttachRequest) (*Response, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type Response ¶
type Response struct { Code Response_Code `protobuf:"varint,1,opt,name=code,proto3,enum=biconom.admin.auth.v1.Response_Code" json:"code,omitempty"` // код ответа AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // токен доступа (используется в заголовке "authorization: X.Y.Z" для вызова авторизованных API запросов) Confirmation *confirmation.Confirmation `protobuf:"bytes,3,opt,name=confirmation,proto3" json:"confirmation,omitempty"` // форма подтверждения // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetAccessToken ¶
func (*Response) GetCode ¶
func (x *Response) GetCode() Response_Code
func (*Response) GetConfirmation ¶
func (x *Response) GetConfirmation() *confirmation.Confirmation
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Response_Code ¶
type Response_Code int32
const ( Response_SUCCESS Response_Code = 0 // успешно Response_ATTACH_STEP Response_Code = 1 // перейти на этап привязки регистрационных данных Response_CONFIRMATION_STEP Response_Code = 2 // перейти на этап валидации формы подтверждения )
func (Response_Code) Descriptor ¶
func (Response_Code) Descriptor() protoreflect.EnumDescriptor
func (Response_Code) Enum ¶
func (x Response_Code) Enum() *Response_Code
func (Response_Code) EnumDescriptor
deprecated
func (Response_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use Response_Code.Descriptor instead.
func (Response_Code) Number ¶
func (x Response_Code) Number() protoreflect.EnumNumber
func (Response_Code) String ¶
func (x Response_Code) String() string
func (Response_Code) Type ¶
func (Response_Code) Type() protoreflect.EnumType
type SignAttachRequest ¶
type SignAttachRequest struct { Contact *contact.Contact `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` // канал через который будет осуществляется идентификация Profile *profile.Profile_Data `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // данные профиля пользователя Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // пароль для аккаунта Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"` // идентификатор языка (ru-RU, en-US, ...) // contains filtered or unexported fields }
func (*SignAttachRequest) Descriptor
deprecated
func (*SignAttachRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignAttachRequest.ProtoReflect.Descriptor instead.
func (*SignAttachRequest) GetContact ¶
func (x *SignAttachRequest) GetContact() *contact.Contact
func (*SignAttachRequest) GetLocale ¶
func (x *SignAttachRequest) GetLocale() string
func (*SignAttachRequest) GetPassword ¶
func (x *SignAttachRequest) GetPassword() string
func (*SignAttachRequest) GetProfile ¶
func (x *SignAttachRequest) GetProfile() *profile.Profile_Data
func (*SignAttachRequest) ProtoMessage ¶
func (*SignAttachRequest) ProtoMessage()
func (*SignAttachRequest) ProtoReflect ¶
func (x *SignAttachRequest) ProtoReflect() protoreflect.Message
func (*SignAttachRequest) Reset ¶
func (x *SignAttachRequest) Reset()
func (*SignAttachRequest) String ¶
func (x *SignAttachRequest) String() string
type SignInRequest ¶
type SignInRequest struct { Agent *agent.Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // данные об клиет-агенте с которого выполняется запрос Contact *contact.Contact `protobuf:"bytes,2,opt,name=contact,proto3" json:"contact,omitempty"` // канал через который осуществляется идентификация Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // пароль от аккаунта // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetAgent ¶
func (x *SignInRequest) GetAgent() *agent.Agent
func (*SignInRequest) GetContact ¶
func (x *SignInRequest) GetContact() *contact.Contact
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) SignAttach ¶
func (UnimplementedAuthServer) SignAttach(context.Context, *SignAttachRequest) (*Response, error)
func (UnimplementedAuthServer) SignIn ¶
func (UnimplementedAuthServer) SignIn(context.Context, *SignInRequest) (*Response, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.