Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type GetMeRequest
- func (*GetMeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMeRequest) GetAccessToken() string
- func (x *GetMeRequest) GetRequestID() string
- func (*GetMeRequest) ProtoMessage()
- func (x *GetMeRequest) ProtoReflect() protoreflect.Message
- func (x *GetMeRequest) Reset()
- func (x *GetMeRequest) String() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetID() uint64
- func (x *GetUserRequest) GetRequestID() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetUserResponse) GetEmail() string
- func (x *GetUserResponse) GetID() uint64
- func (x *GetUserResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type GetUsersRequest
- type GetUsersResponse
- func (*GetUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersResponse) GetUsers() []*GetUserResponse
- func (*GetUsersResponse) ProtoMessage()
- func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetUsersResponse) Reset()
- func (x *GetUsersResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetRequestID() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAccessToken() string
- func (x *LoginResponse) GetRefreshToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type RefreshTokensRequest
- func (*RefreshTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokensRequest) GetRefreshToken() string
- func (x *RefreshTokensRequest) GetRequestID() string
- func (*RefreshTokensRequest) ProtoMessage()
- func (x *RefreshTokensRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokensRequest) Reset()
- func (x *RefreshTokensRequest) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetRequestID() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) RefreshTokens(context.Context, *RefreshTokensRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- type UnimplementedUsersServiceServer
- func (UnimplementedUsersServiceServer) GetMe(context.Context, *GetMeRequest) (*GetUserResponse, error)
- func (UnimplementedUsersServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUsersServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error)
- 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 *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) RefreshTokens(ctx context.Context, in *RefreshTokensRequest, opts ...grpc.CallOption) (*LoginResponse, 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, *LoginRequest) (*LoginResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) RefreshTokens(context.Context, *RefreshTokensRequest) (*LoginResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type GetMeRequest ¶
type GetMeRequest 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 (*GetMeRequest) Descriptor
deprecated
func (*GetMeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMeRequest.ProtoReflect.Descriptor instead.
func (*GetMeRequest) GetAccessToken ¶
func (x *GetMeRequest) GetAccessToken() string
func (*GetMeRequest) GetRequestID ¶ added in v1.0.7
func (x *GetMeRequest) GetRequestID() string
func (*GetMeRequest) ProtoMessage ¶
func (*GetMeRequest) ProtoMessage()
func (*GetMeRequest) ProtoReflect ¶
func (x *GetMeRequest) ProtoReflect() protoreflect.Message
func (*GetMeRequest) Reset ¶
func (x *GetMeRequest) Reset()
func (*GetMeRequest) String ¶
func (x *GetMeRequest) String() string
type GetUserRequest ¶
type GetUserRequest 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 (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetID ¶ added in v1.0.3
func (x *GetUserRequest) GetID() uint64
func (*GetUserRequest) GetRequestID ¶ added in v1.0.7
func (x *GetUserRequest) GetRequestID() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetCreatedAt ¶
func (x *GetUserResponse) GetCreatedAt() *timestamppb.Timestamp
func (*GetUserResponse) GetEmail ¶
func (x *GetUserResponse) GetEmail() string
func (*GetUserResponse) GetID ¶ added in v1.0.3
func (x *GetUserResponse) GetID() uint64
func (*GetUserResponse) GetUpdatedAt ¶
func (x *GetUserResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type GetUsersRequest ¶ added in v1.0.7
type GetUsersRequest struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` // contains filtered or unexported fields }
func (*GetUsersRequest) Descriptor
deprecated
added in
v1.0.7
func (*GetUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.
func (*GetUsersRequest) GetRequestID ¶ added in v1.0.7
func (x *GetUsersRequest) GetRequestID() string
func (*GetUsersRequest) ProtoMessage ¶ added in v1.0.7
func (*GetUsersRequest) ProtoMessage()
func (*GetUsersRequest) ProtoReflect ¶ added in v1.0.7
func (x *GetUsersRequest) ProtoReflect() protoreflect.Message
func (*GetUsersRequest) Reset ¶ added in v1.0.7
func (x *GetUsersRequest) Reset()
func (*GetUsersRequest) String ¶ added in v1.0.7
func (x *GetUsersRequest) String() string
type GetUsersResponse ¶
type GetUsersResponse struct { Users []*GetUserResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetUsersResponse) Descriptor
deprecated
func (*GetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.
func (*GetUsersResponse) GetUsers ¶
func (x *GetUsersResponse) GetUsers() []*GetUserResponse
func (*GetUsersResponse) ProtoMessage ¶
func (*GetUsersResponse) ProtoMessage()
func (*GetUsersResponse) ProtoReflect ¶
func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
func (*GetUsersResponse) Reset ¶
func (x *GetUsersResponse) Reset()
func (*GetUsersResponse) String ¶
func (x *GetUsersResponse) String() string
type LoginRequest ¶
type LoginRequest 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 (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetRequestID ¶ added in v1.0.7
func (x *LoginRequest) GetRequestID() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse 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 (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccessToken ¶
func (x *LoginResponse) GetAccessToken() string
func (*LoginResponse) GetRefreshToken ¶
func (x *LoginResponse) GetRefreshToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type RefreshTokensRequest ¶
type RefreshTokensRequest 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 (*RefreshTokensRequest) Descriptor
deprecated
func (*RefreshTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokensRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokensRequest) GetRefreshToken ¶
func (x *RefreshTokensRequest) GetRefreshToken() string
func (*RefreshTokensRequest) GetRequestID ¶ added in v1.0.7
func (x *RefreshTokensRequest) GetRequestID() string
func (*RefreshTokensRequest) ProtoMessage ¶
func (*RefreshTokensRequest) ProtoMessage()
func (*RefreshTokensRequest) ProtoReflect ¶
func (x *RefreshTokensRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokensRequest) Reset ¶
func (x *RefreshTokensRequest) Reset()
func (*RefreshTokensRequest) String ¶
func (x *RefreshTokensRequest) String() string
type RegisterRequest ¶
type RegisterRequest 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 (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶ added in v1.0.7
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetPassword ¶ added in v1.0.7
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetRequestID ¶ added in v1.0.7
func (x *RegisterRequest) GetRequestID() 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 { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetUserID ¶
func (x *RegisterResponse) GetUserID() uint64
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 UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) RefreshTokens ¶
func (UnimplementedAuthServiceServer) RefreshTokens(context.Context, *RefreshTokensRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnimplementedUsersServiceServer ¶
type UnimplementedUsersServiceServer struct { }
UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersServiceServer) GetMe ¶
func (UnimplementedUsersServiceServer) GetMe(context.Context, *GetMeRequest) (*GetUserResponse, error)
func (UnimplementedUsersServiceServer) GetUser ¶
func (UnimplementedUsersServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUsersServiceServer) GetUsers ¶
func (UnimplementedUsersServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, 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 *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) GetMe(ctx context.Context, in *GetMeRequest, opts ...grpc.CallOption) (*GetUserResponse, 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, *GetUserRequest) (*GetUserResponse, error) GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error) GetMe(context.Context, *GetMeRequest) (*GetUserResponse, error) // contains filtered or unexported methods }
UsersServiceServer is the server API for UsersService service. All implementations must embed UnimplementedUsersServiceServer for forward compatibility