Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthServer
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetIp() string
- func (x *Device) GetName() string
- func (x *Device) GetOs() string
- func (x *Device) GetType() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type LoginStartRequest
- func (*LoginStartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginStartRequest) GetDevice() *Device
- func (x *LoginStartRequest) GetEmail() string
- func (*LoginStartRequest) ProtoMessage()
- func (x *LoginStartRequest) ProtoReflect() protoreflect.Message
- func (x *LoginStartRequest) Reset()
- func (x *LoginStartRequest) String() string
- type LoginStartResponse
- func (*LoginStartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginStartResponse) GetToken() string
- func (*LoginStartResponse) ProtoMessage()
- func (x *LoginStartResponse) ProtoReflect() protoreflect.Message
- func (x *LoginStartResponse) Reset()
- func (x *LoginStartResponse) String() string
- type LoginVerifyRequest
- func (*LoginVerifyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginVerifyRequest) GetCode() string
- func (x *LoginVerifyRequest) GetToken() string
- func (*LoginVerifyRequest) ProtoMessage()
- func (x *LoginVerifyRequest) ProtoReflect() protoreflect.Message
- func (x *LoginVerifyRequest) Reset()
- func (x *LoginVerifyRequest) String() string
- type LoginVerifyResponse
- func (*LoginVerifyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginVerifyResponse) GetAccessToken() string
- func (x *LoginVerifyResponse) GetRefreshToken() string
- func (*LoginVerifyResponse) ProtoMessage()
- func (x *LoginVerifyResponse) ProtoReflect() protoreflect.Message
- func (x *LoginVerifyResponse) Reset()
- func (x *LoginVerifyResponse) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetAccessToken() string
- func (x *RefreshTokenResponse) GetRefreshToken() string
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetName() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type RegistrationVerifyRequest
- func (*RegistrationVerifyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationVerifyRequest) GetToken() string
- func (*RegistrationVerifyRequest) ProtoMessage()
- func (x *RegistrationVerifyRequest) ProtoReflect() protoreflect.Message
- func (x *RegistrationVerifyRequest) Reset()
- func (x *RegistrationVerifyRequest) String() string
- type RegistrationVerifyResponse
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) LoginStart(context.Context, *LoginStartRequest) (*LoginStartResponse, error)
- func (UnimplementedAuthServer) LoginVerify(context.Context, *LoginVerifyRequest) (*LoginVerifyResponse, error)
- func (UnimplementedAuthServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
- func (UnimplementedAuthServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServer) RegistrationVerify(context.Context, *RegistrationVerifyRequest) (*RegistrationVerifyResponse, error)
- type UnsafeAuthServer
Constants ¶
This section is empty.
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ssibank.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoginStart", Handler: _Auth_LoginStart_Handler, }, { MethodName: "LoginVerify", Handler: _Auth_LoginVerify_Handler, }, { MethodName: "RefreshToken", Handler: _Auth_RefreshToken_Handler, }, { MethodName: "Register", Handler: _Auth_Register_Handler, }, { MethodName: "RegistrationVerify", Handler: _Auth_RegistrationVerify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/rpc/protos/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_api_rpc_protos_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { LoginStart(ctx context.Context, in *LoginStartRequest, opts ...grpc.CallOption) (*LoginStartResponse, error) LoginVerify(ctx context.Context, in *LoginVerifyRequest, opts ...grpc.CallOption) (*LoginVerifyResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) RegistrationVerify(ctx context.Context, in *RegistrationVerifyRequest, opts ...grpc.CallOption) (*RegistrationVerifyResponse, 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 { LoginStart(context.Context, *LoginStartRequest) (*LoginStartResponse, error) LoginVerify(context.Context, *LoginVerifyRequest) (*LoginVerifyResponse, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) RegistrationVerify(context.Context, *RegistrationVerifyRequest) (*RegistrationVerifyResponse, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type Device ¶
type Device struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Os string `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type LoginStartRequest ¶
type LoginStartRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Device *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*LoginStartRequest) Descriptor
deprecated
func (*LoginStartRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginStartRequest.ProtoReflect.Descriptor instead.
func (*LoginStartRequest) GetDevice ¶
func (x *LoginStartRequest) GetDevice() *Device
func (*LoginStartRequest) GetEmail ¶
func (x *LoginStartRequest) GetEmail() string
func (*LoginStartRequest) ProtoMessage ¶
func (*LoginStartRequest) ProtoMessage()
func (*LoginStartRequest) ProtoReflect ¶
func (x *LoginStartRequest) ProtoReflect() protoreflect.Message
func (*LoginStartRequest) Reset ¶
func (x *LoginStartRequest) Reset()
func (*LoginStartRequest) String ¶
func (x *LoginStartRequest) String() string
type LoginStartResponse ¶
type LoginStartResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginStartResponse) Descriptor
deprecated
func (*LoginStartResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginStartResponse.ProtoReflect.Descriptor instead.
func (*LoginStartResponse) GetToken ¶
func (x *LoginStartResponse) GetToken() string
func (*LoginStartResponse) ProtoMessage ¶
func (*LoginStartResponse) ProtoMessage()
func (*LoginStartResponse) ProtoReflect ¶
func (x *LoginStartResponse) ProtoReflect() protoreflect.Message
func (*LoginStartResponse) Reset ¶
func (x *LoginStartResponse) Reset()
func (*LoginStartResponse) String ¶
func (x *LoginStartResponse) String() string
type LoginVerifyRequest ¶
type LoginVerifyRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoginVerifyRequest) Descriptor
deprecated
func (*LoginVerifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginVerifyRequest.ProtoReflect.Descriptor instead.
func (*LoginVerifyRequest) GetCode ¶
func (x *LoginVerifyRequest) GetCode() string
func (*LoginVerifyRequest) GetToken ¶
func (x *LoginVerifyRequest) GetToken() string
func (*LoginVerifyRequest) ProtoMessage ¶
func (*LoginVerifyRequest) ProtoMessage()
func (*LoginVerifyRequest) ProtoReflect ¶
func (x *LoginVerifyRequest) ProtoReflect() protoreflect.Message
func (*LoginVerifyRequest) Reset ¶
func (x *LoginVerifyRequest) Reset()
func (*LoginVerifyRequest) String ¶
func (x *LoginVerifyRequest) String() string
type LoginVerifyResponse ¶
type LoginVerifyResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*LoginVerifyResponse) Descriptor
deprecated
func (*LoginVerifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginVerifyResponse.ProtoReflect.Descriptor instead.
func (*LoginVerifyResponse) GetAccessToken ¶
func (x *LoginVerifyResponse) GetAccessToken() string
func (*LoginVerifyResponse) GetRefreshToken ¶
func (x *LoginVerifyResponse) GetRefreshToken() string
func (*LoginVerifyResponse) ProtoMessage ¶
func (*LoginVerifyResponse) ProtoMessage()
func (*LoginVerifyResponse) ProtoReflect ¶
func (x *LoginVerifyResponse) ProtoReflect() protoreflect.Message
func (*LoginVerifyResponse) Reset ¶
func (x *LoginVerifyResponse) Reset()
func (*LoginVerifyResponse) String ¶
func (x *LoginVerifyResponse) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetAccessToken ¶
func (x *RefreshTokenResponse) GetAccessToken() string
func (*RefreshTokenResponse) GetRefreshToken ¶
func (x *RefreshTokenResponse) GetRefreshToken() string
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetName ¶
func (x *RegisterRequest) GetName() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct {
// contains filtered or unexported fields
}
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type RegistrationVerifyRequest ¶
type RegistrationVerifyRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RegistrationVerifyRequest) Descriptor
deprecated
func (*RegistrationVerifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationVerifyRequest.ProtoReflect.Descriptor instead.
func (*RegistrationVerifyRequest) GetToken ¶
func (x *RegistrationVerifyRequest) GetToken() string
func (*RegistrationVerifyRequest) ProtoMessage ¶
func (*RegistrationVerifyRequest) ProtoMessage()
func (*RegistrationVerifyRequest) ProtoReflect ¶
func (x *RegistrationVerifyRequest) ProtoReflect() protoreflect.Message
func (*RegistrationVerifyRequest) Reset ¶
func (x *RegistrationVerifyRequest) Reset()
func (*RegistrationVerifyRequest) String ¶
func (x *RegistrationVerifyRequest) String() string
type RegistrationVerifyResponse ¶
type RegistrationVerifyResponse struct {
// contains filtered or unexported fields
}
func (*RegistrationVerifyResponse) Descriptor
deprecated
func (*RegistrationVerifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationVerifyResponse.ProtoReflect.Descriptor instead.
func (*RegistrationVerifyResponse) ProtoMessage ¶
func (*RegistrationVerifyResponse) ProtoMessage()
func (*RegistrationVerifyResponse) ProtoReflect ¶
func (x *RegistrationVerifyResponse) ProtoReflect() protoreflect.Message
func (*RegistrationVerifyResponse) Reset ¶
func (x *RegistrationVerifyResponse) Reset()
func (*RegistrationVerifyResponse) String ¶
func (x *RegistrationVerifyResponse) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) LoginStart ¶
func (UnimplementedAuthServer) LoginStart(context.Context, *LoginStartRequest) (*LoginStartResponse, error)
func (UnimplementedAuthServer) LoginVerify ¶
func (UnimplementedAuthServer) LoginVerify(context.Context, *LoginVerifyRequest) (*LoginVerifyResponse, error)
func (UnimplementedAuthServer) RefreshToken ¶
func (UnimplementedAuthServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
func (UnimplementedAuthServer) Register ¶
func (UnimplementedAuthServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServer) RegistrationVerify ¶
func (UnimplementedAuthServer) RegistrationVerify(context.Context, *RegistrationVerifyRequest) (*RegistrationVerifyResponse, 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.