service_client_auth_pb

package
v0.0.0-...-07b0db4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "biconom.client.auth.v1.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignIn",
			Handler:    _Auth_SignIn_Handler,
		},
		{
			MethodName: "SignUp",
			Handler:    _Auth_SignUp_Handler,
		},
		{
			MethodName: "SignAttach",
			Handler:    _Auth_SignAttach_Handler,
		},
		{
			MethodName: "RecoveryPassword",
			Handler:    _Auth_RecoveryPassword_Handler,
		},
		{
			MethodName: "RecoveryGoogleAuthenticator",
			Handler:    _Auth_RecoveryGoogleAuthenticator_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "biconom/client/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)

View Source
var File_biconom_client_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)
	SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*Response, error)
	SignAttach(ctx context.Context, in *SignAttachRequest, opts ...grpc.CallOption) (*Response, error)
	RecoveryPassword(ctx context.Context, in *RecoveryPasswordRequest, opts ...grpc.CallOption) (*Response, error)
	RecoveryGoogleAuthenticator(ctx context.Context, in *RecoveryGoogleAuthenticatorRequest, 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)
	SignUp(context.Context, *SignUpRequest) (*Response, error)
	SignAttach(context.Context, *SignAttachRequest) (*Response, error)
	RecoveryPassword(context.Context, *RecoveryPasswordRequest) (*Response, error)
	RecoveryGoogleAuthenticator(context.Context, *RecoveryGoogleAuthenticatorRequest) (*Response, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type RecoveryGoogleAuthenticatorRequest

type RecoveryGoogleAuthenticatorRequest 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 (*RecoveryGoogleAuthenticatorRequest) Descriptor deprecated

func (*RecoveryGoogleAuthenticatorRequest) Descriptor() ([]byte, []int)

Deprecated: Use RecoveryGoogleAuthenticatorRequest.ProtoReflect.Descriptor instead.

func (*RecoveryGoogleAuthenticatorRequest) GetAgent

func (*RecoveryGoogleAuthenticatorRequest) GetContact

func (*RecoveryGoogleAuthenticatorRequest) GetPassword

func (x *RecoveryGoogleAuthenticatorRequest) GetPassword() string

func (*RecoveryGoogleAuthenticatorRequest) ProtoMessage

func (*RecoveryGoogleAuthenticatorRequest) ProtoMessage()

func (*RecoveryGoogleAuthenticatorRequest) ProtoReflect

func (*RecoveryGoogleAuthenticatorRequest) Reset

func (*RecoveryGoogleAuthenticatorRequest) String

type RecoveryPasswordRequest

type RecoveryPasswordRequest 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"` // канал через который осуществляется идентификация
	// contains filtered or unexported fields
}

func (*RecoveryPasswordRequest) Descriptor deprecated

func (*RecoveryPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use RecoveryPasswordRequest.ProtoReflect.Descriptor instead.

func (*RecoveryPasswordRequest) GetAgent

func (x *RecoveryPasswordRequest) GetAgent() *agent.Agent

func (*RecoveryPasswordRequest) GetContact

func (x *RecoveryPasswordRequest) GetContact() *contact.Contact

func (*RecoveryPasswordRequest) ProtoMessage

func (*RecoveryPasswordRequest) ProtoMessage()

func (*RecoveryPasswordRequest) ProtoReflect

func (x *RecoveryPasswordRequest) ProtoReflect() protoreflect.Message

func (*RecoveryPasswordRequest) Reset

func (x *RecoveryPasswordRequest) Reset()

func (*RecoveryPasswordRequest) String

func (x *RecoveryPasswordRequest) String() string

type Response

type Response struct {
	Code         Response_Code              `protobuf:"varint,1,opt,name=code,proto3,enum=biconom.client.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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetAccessToken

func (x *Response) GetAccessToken() string

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) 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 (Response_Code) String

func (x Response_Code) String() string

func (Response_Code) Type

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 SignUpRequest

type SignUpRequest 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"`   // канал через который осуществляется идентификация
	Profile  *profile.Profile_Data `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`   // данные профиля пользователя
	Password string                `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // пароль для аккаунта
	Locale   string                `protobuf:"bytes,5,opt,name=locale,proto3" json:"locale,omitempty"`     // идентификатор языка (ru-RU, en-US, ...)
	// contains filtered or unexported fields
}

func (*SignUpRequest) Descriptor deprecated

func (*SignUpRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.

func (*SignUpRequest) GetAgent

func (x *SignUpRequest) GetAgent() *agent.Agent

func (*SignUpRequest) GetContact

func (x *SignUpRequest) GetContact() *contact.Contact

func (*SignUpRequest) GetLocale

func (x *SignUpRequest) GetLocale() string

func (*SignUpRequest) GetPassword

func (x *SignUpRequest) GetPassword() string

func (*SignUpRequest) GetProfile

func (x *SignUpRequest) GetProfile() *profile.Profile_Data

func (*SignUpRequest) ProtoMessage

func (*SignUpRequest) ProtoMessage()

func (*SignUpRequest) ProtoReflect

func (x *SignUpRequest) ProtoReflect() protoreflect.Message

func (*SignUpRequest) Reset

func (x *SignUpRequest) Reset()

func (*SignUpRequest) String

func (x *SignUpRequest) String() string

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) RecoveryGoogleAuthenticator

func (UnimplementedAuthServer) RecoveryPassword

func (UnimplementedAuthServer) SignAttach

func (UnimplementedAuthServer) SignIn

func (UnimplementedAuthServer) SignUp

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL