Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type GetMeIn
- type GetUserIn
- type GetUserOut
- func (*GetUserOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserOut) GetAvatar() string
- func (x *GetUserOut) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetUserOut) GetDisplayName() string
- func (x *GetUserOut) GetEmail() string
- func (x *GetUserOut) GetEmailConfirmed() bool
- func (x *GetUserOut) GetID() uint64
- func (x *GetUserOut) GetPhone() string
- func (x *GetUserOut) GetPhoneConfirmed() bool
- func (x *GetUserOut) GetTelegram() string
- func (x *GetUserOut) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetUserOut) ProtoMessage()
- func (x *GetUserOut) ProtoReflect() protoreflect.Message
- func (x *GetUserOut) Reset()
- func (x *GetUserOut) String() string
- type GetUsersIn
- type GetUsersOut
- type LoginIn
- func (*LoginIn) Descriptor() ([]byte, []int)deprecated
- func (x *LoginIn) GetEmail() string
- func (x *LoginIn) GetPassword() string
- func (x *LoginIn) GetRequestID() string
- func (*LoginIn) ProtoMessage()
- func (x *LoginIn) ProtoReflect() protoreflect.Message
- func (x *LoginIn) Reset()
- func (x *LoginIn) String() string
- type LoginOut
- type RefreshTokensIn
- func (*RefreshTokensIn) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokensIn) GetRefreshToken() string
- func (x *RefreshTokensIn) GetRequestID() string
- func (*RefreshTokensIn) ProtoMessage()
- func (x *RefreshTokensIn) ProtoReflect() protoreflect.Message
- func (x *RefreshTokensIn) Reset()
- func (x *RefreshTokensIn) String() string
- type RegisterIn
- func (*RegisterIn) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterIn) GetDisplayName() string
- func (x *RegisterIn) GetEmail() string
- func (x *RegisterIn) GetPassword() string
- func (x *RegisterIn) GetRequestID() string
- func (*RegisterIn) ProtoMessage()
- func (x *RegisterIn) ProtoReflect() protoreflect.Message
- func (x *RegisterIn) Reset()
- func (x *RegisterIn) String() string
- type RegisterOut
- type UnimplementedAuthServiceServer
- type UnimplementedUsersServiceServer
- type UnsafeAuthServiceServer
- type UnsafeUsersServiceServer
- type UsersServiceClient
- type UsersServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "RefreshTokens", Handler: _AuthService_RefreshTokens_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sso/auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_sso_auth_proto protoreflect.FileDescriptor
var File_sso_users_proto protoreflect.FileDescriptor
var UsersService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "users.UsersService", HandlerType: (*UsersServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UsersService_GetUser_Handler, }, { MethodName: "GetUsers", Handler: _UsersService_GetUsers_Handler, }, { MethodName: "GetMe", Handler: _UsersService_GetMe_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sso/users.proto", }
UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterUsersServiceServer ¶
func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Login(ctx context.Context, in *LoginIn, opts ...grpc.CallOption) (*LoginOut, error) Register(ctx context.Context, in *RegisterIn, opts ...grpc.CallOption) (*RegisterOut, error) RefreshTokens(ctx context.Context, in *RefreshTokensIn, opts ...grpc.CallOption) (*LoginOut, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Login(context.Context, *LoginIn) (*LoginOut, error) Register(context.Context, *RegisterIn) (*RegisterOut, error) RefreshTokens(context.Context, *RefreshTokensIn) (*LoginOut, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type GetMeIn ¶ added in v1.0.8
type GetMeIn struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"` // contains filtered or unexported fields }
func (*GetMeIn) Descriptor
deprecated
added in
v1.0.8
func (*GetMeIn) GetAccessToken ¶ added in v1.0.8
func (*GetMeIn) GetRequestID ¶ added in v1.0.8
func (*GetMeIn) ProtoMessage ¶ added in v1.0.8
func (*GetMeIn) ProtoMessage()
func (*GetMeIn) ProtoReflect ¶ added in v1.0.8
func (x *GetMeIn) ProtoReflect() protoreflect.Message
type GetUserIn ¶ added in v1.0.8
type GetUserIn struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` ID uint64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetUserIn) Descriptor
deprecated
added in
v1.0.8
func (*GetUserIn) GetRequestID ¶ added in v1.0.8
func (*GetUserIn) ProtoMessage ¶ added in v1.0.8
func (*GetUserIn) ProtoMessage()
func (*GetUserIn) ProtoReflect ¶ added in v1.0.8
func (x *GetUserIn) ProtoReflect() protoreflect.Message
type GetUserOut ¶ added in v1.0.8
type GetUserOut struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` EmailConfirmed bool `protobuf:"varint,4,opt,name=emailConfirmed,proto3" json:"emailConfirmed,omitempty"` Phone *string `protobuf:"bytes,5,opt,name=phone,proto3,oneof" json:"phone,omitempty"` PhoneConfirmed bool `protobuf:"varint,6,opt,name=phoneConfirmed,proto3" json:"phoneConfirmed,omitempty"` Telegram *string `protobuf:"bytes,7,opt,name=telegram,proto3,oneof" json:"telegram,omitempty"` Avatar *string `protobuf:"bytes,8,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetUserOut) Descriptor
deprecated
added in
v1.0.8
func (*GetUserOut) Descriptor() ([]byte, []int)
Deprecated: Use GetUserOut.ProtoReflect.Descriptor instead.
func (*GetUserOut) GetAvatar ¶ added in v1.1.0
func (x *GetUserOut) GetAvatar() string
func (*GetUserOut) GetCreatedAt ¶ added in v1.0.8
func (x *GetUserOut) GetCreatedAt() *timestamppb.Timestamp
func (*GetUserOut) GetDisplayName ¶ added in v1.1.0
func (x *GetUserOut) GetDisplayName() string
func (*GetUserOut) GetEmail ¶ added in v1.0.8
func (x *GetUserOut) GetEmail() string
func (*GetUserOut) GetEmailConfirmed ¶ added in v1.1.0
func (x *GetUserOut) GetEmailConfirmed() bool
func (*GetUserOut) GetID ¶ added in v1.0.8
func (x *GetUserOut) GetID() uint64
func (*GetUserOut) GetPhone ¶ added in v1.1.0
func (x *GetUserOut) GetPhone() string
func (*GetUserOut) GetPhoneConfirmed ¶ added in v1.1.0
func (x *GetUserOut) GetPhoneConfirmed() bool
func (*GetUserOut) GetTelegram ¶ added in v1.1.0
func (x *GetUserOut) GetTelegram() string
func (*GetUserOut) GetUpdatedAt ¶ added in v1.0.8
func (x *GetUserOut) GetUpdatedAt() *timestamppb.Timestamp
func (*GetUserOut) ProtoMessage ¶ added in v1.0.8
func (*GetUserOut) ProtoMessage()
func (*GetUserOut) ProtoReflect ¶ added in v1.0.8
func (x *GetUserOut) ProtoReflect() protoreflect.Message
func (*GetUserOut) Reset ¶ added in v1.0.8
func (x *GetUserOut) Reset()
func (*GetUserOut) String ¶ added in v1.0.8
func (x *GetUserOut) String() string
type GetUsersIn ¶ added in v1.0.8
type GetUsersIn struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` // contains filtered or unexported fields }
func (*GetUsersIn) Descriptor
deprecated
added in
v1.0.8
func (*GetUsersIn) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersIn.ProtoReflect.Descriptor instead.
func (*GetUsersIn) GetRequestID ¶ added in v1.0.8
func (x *GetUsersIn) GetRequestID() string
func (*GetUsersIn) ProtoMessage ¶ added in v1.0.8
func (*GetUsersIn) ProtoMessage()
func (*GetUsersIn) ProtoReflect ¶ added in v1.0.8
func (x *GetUsersIn) ProtoReflect() protoreflect.Message
func (*GetUsersIn) Reset ¶ added in v1.0.8
func (x *GetUsersIn) Reset()
func (*GetUsersIn) String ¶ added in v1.0.8
func (x *GetUsersIn) String() string
type GetUsersOut ¶ added in v1.0.8
type GetUsersOut struct { Users []*GetUserOut `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetUsersOut) Descriptor
deprecated
added in
v1.0.8
func (*GetUsersOut) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersOut.ProtoReflect.Descriptor instead.
func (*GetUsersOut) GetUsers ¶ added in v1.0.8
func (x *GetUsersOut) GetUsers() []*GetUserOut
func (*GetUsersOut) ProtoMessage ¶ added in v1.0.8
func (*GetUsersOut) ProtoMessage()
func (*GetUsersOut) ProtoReflect ¶ added in v1.0.8
func (x *GetUsersOut) ProtoReflect() protoreflect.Message
func (*GetUsersOut) Reset ¶ added in v1.0.8
func (x *GetUsersOut) Reset()
func (*GetUsersOut) String ¶ added in v1.0.8
func (x *GetUsersOut) String() string
type LoginIn ¶ added in v1.0.8
type LoginIn struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginIn) Descriptor
deprecated
added in
v1.0.8
func (*LoginIn) GetPassword ¶ added in v1.0.8
func (*LoginIn) GetRequestID ¶ added in v1.0.8
func (*LoginIn) ProtoMessage ¶ added in v1.0.8
func (*LoginIn) ProtoMessage()
func (*LoginIn) ProtoReflect ¶ added in v1.0.8
func (x *LoginIn) ProtoReflect() protoreflect.Message
type LoginOut ¶ added in v1.0.8
type LoginOut struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` // contains filtered or unexported fields }
func (*LoginOut) Descriptor
deprecated
added in
v1.0.8
func (*LoginOut) GetAccessToken ¶ added in v1.0.8
func (*LoginOut) GetRefreshToken ¶ added in v1.0.8
func (*LoginOut) ProtoMessage ¶ added in v1.0.8
func (*LoginOut) ProtoMessage()
func (*LoginOut) ProtoReflect ¶ added in v1.0.8
func (x *LoginOut) ProtoReflect() protoreflect.Message
type RefreshTokensIn ¶ added in v1.0.8
type RefreshTokensIn struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokensIn) Descriptor
deprecated
added in
v1.0.8
func (*RefreshTokensIn) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokensIn.ProtoReflect.Descriptor instead.
func (*RefreshTokensIn) GetRefreshToken ¶ added in v1.0.8
func (x *RefreshTokensIn) GetRefreshToken() string
func (*RefreshTokensIn) GetRequestID ¶ added in v1.0.8
func (x *RefreshTokensIn) GetRequestID() string
func (*RefreshTokensIn) ProtoMessage ¶ added in v1.0.8
func (*RefreshTokensIn) ProtoMessage()
func (*RefreshTokensIn) ProtoReflect ¶ added in v1.0.8
func (x *RefreshTokensIn) ProtoReflect() protoreflect.Message
func (*RefreshTokensIn) Reset ¶ added in v1.0.8
func (x *RefreshTokensIn) Reset()
func (*RefreshTokensIn) String ¶ added in v1.0.8
func (x *RefreshTokensIn) String() string
type RegisterIn ¶ added in v1.0.8
type RegisterIn struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*RegisterIn) Descriptor
deprecated
added in
v1.0.8
func (*RegisterIn) Descriptor() ([]byte, []int)
Deprecated: Use RegisterIn.ProtoReflect.Descriptor instead.
func (*RegisterIn) GetDisplayName ¶ added in v1.1.0
func (x *RegisterIn) GetDisplayName() string
func (*RegisterIn) GetEmail ¶ added in v1.0.8
func (x *RegisterIn) GetEmail() string
func (*RegisterIn) GetPassword ¶ added in v1.0.8
func (x *RegisterIn) GetPassword() string
func (*RegisterIn) GetRequestID ¶ added in v1.0.8
func (x *RegisterIn) GetRequestID() string
func (*RegisterIn) ProtoMessage ¶ added in v1.0.8
func (*RegisterIn) ProtoMessage()
func (*RegisterIn) ProtoReflect ¶ added in v1.0.8
func (x *RegisterIn) ProtoReflect() protoreflect.Message
func (*RegisterIn) Reset ¶ added in v1.0.8
func (x *RegisterIn) Reset()
func (*RegisterIn) String ¶ added in v1.0.8
func (x *RegisterIn) String() string
type RegisterOut ¶ added in v1.0.8
type RegisterOut struct { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*RegisterOut) Descriptor
deprecated
added in
v1.0.8
func (*RegisterOut) Descriptor() ([]byte, []int)
Deprecated: Use RegisterOut.ProtoReflect.Descriptor instead.
func (*RegisterOut) GetUserID ¶ added in v1.0.8
func (x *RegisterOut) GetUserID() uint64
func (*RegisterOut) ProtoMessage ¶ added in v1.0.8
func (*RegisterOut) ProtoMessage()
func (*RegisterOut) ProtoReflect ¶ added in v1.0.8
func (x *RegisterOut) ProtoReflect() protoreflect.Message
func (*RegisterOut) Reset ¶ added in v1.0.8
func (x *RegisterOut) Reset()
func (*RegisterOut) String ¶ added in v1.0.8
func (x *RegisterOut) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) RefreshTokens ¶
func (UnimplementedAuthServiceServer) RefreshTokens(context.Context, *RefreshTokensIn) (*LoginOut, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterIn) (*RegisterOut, error)
type UnimplementedUsersServiceServer ¶
type UnimplementedUsersServiceServer struct { }
UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersServiceServer) GetMe ¶
func (UnimplementedUsersServiceServer) GetMe(context.Context, *GetMeIn) (*GetUserOut, error)
func (UnimplementedUsersServiceServer) GetUser ¶
func (UnimplementedUsersServiceServer) GetUser(context.Context, *GetUserIn) (*GetUserOut, error)
func (UnimplementedUsersServiceServer) GetUsers ¶
func (UnimplementedUsersServiceServer) GetUsers(context.Context, *GetUsersIn) (*GetUsersOut, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeUsersServiceServer ¶
type UnsafeUsersServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUsersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersServiceServer will result in compilation errors.
type UsersServiceClient ¶
type UsersServiceClient interface { GetUser(ctx context.Context, in *GetUserIn, opts ...grpc.CallOption) (*GetUserOut, error) GetUsers(ctx context.Context, in *GetUsersIn, opts ...grpc.CallOption) (*GetUsersOut, error) GetMe(ctx context.Context, in *GetMeIn, opts ...grpc.CallOption) (*GetUserOut, error) }
UsersServiceClient is the client API for UsersService 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 NewUsersServiceClient ¶
func NewUsersServiceClient(cc grpc.ClientConnInterface) UsersServiceClient
type UsersServiceServer ¶
type UsersServiceServer interface { GetUser(context.Context, *GetUserIn) (*GetUserOut, error) GetUsers(context.Context, *GetUsersIn) (*GetUsersOut, error) GetMe(context.Context, *GetMeIn) (*GetUserOut, error) // contains filtered or unexported methods }
UsersServiceServer is the server API for UsersService service. All implementations must embed UnimplementedUsersServiceServer for forward compatibility