Documentation
¶
Overview ¶
Package goSentinel is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterGoSentinelServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterGoSentinelServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GoSentinelServiceClient) error
- func RegisterGoSentinelServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterGoSentinelServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GoSentinelServiceServer) error
- func RegisterGoSentinelServiceServer(s grpc.ServiceRegistrar, srv GoSentinelServiceServer)
- type Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetEmail() string
- func (x *Application) GetId() string
- func (x *Application) GetIsVerified() string
- func (x *Application) GetName() string
- func (x *Application) GetStatus() string
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- type ApplicationSecretRequest
- func (*ApplicationSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationSecretRequest) GetApplicationID() string
- func (*ApplicationSecretRequest) ProtoMessage()
- func (x *ApplicationSecretRequest) ProtoReflect() protoreflect.Message
- func (x *ApplicationSecretRequest) Reset()
- func (x *ApplicationSecretRequest) String() string
- type ApplicationTokenResponse
- func (*ApplicationTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationTokenResponse) GetApplicationToken() string
- func (*ApplicationTokenResponse) ProtoMessage()
- func (x *ApplicationTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ApplicationTokenResponse) Reset()
- func (x *ApplicationTokenResponse) String() string
- type Applicationcredentials
- func (*Applicationcredentials) Descriptor() ([]byte, []int)deprecated
- func (x *Applicationcredentials) GetApplicationID() string
- func (x *Applicationcredentials) GetApplicationSecret() string
- func (*Applicationcredentials) ProtoMessage()
- func (x *Applicationcredentials) ProtoReflect() protoreflect.Message
- func (x *Applicationcredentials) Reset()
- func (x *Applicationcredentials) String() string
- type CreateApplicationPasswordRequest
- func (*CreateApplicationPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateApplicationPasswordRequest) GetPassword() string
- func (*CreateApplicationPasswordRequest) ProtoMessage()
- func (x *CreateApplicationPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *CreateApplicationPasswordRequest) Reset()
- func (x *CreateApplicationPasswordRequest) String() string
- type DeleteUserRequest
- type GetApplicationRequest
- func (*GetApplicationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetApplicationRequest) GetId() string
- func (*GetApplicationRequest) ProtoMessage()
- func (x *GetApplicationRequest) ProtoReflect() protoreflect.Message
- func (x *GetApplicationRequest) Reset()
- func (x *GetApplicationRequest) String() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetEmail() string
- func (x *GetUserRequest) GetID() string
- func (x *GetUserRequest) GetUserToken() 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) GetEmail() string
- func (x *GetUserResponse) GetID() string
- func (x *GetUserResponse) GetName() string
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type GoSentinelServiceClient
- type GoSentinelServiceServer
- type LoginApplicationRequest
- func (*LoginApplicationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginApplicationRequest) GetEmail() string
- func (x *LoginApplicationRequest) GetPassword() string
- func (*LoginApplicationRequest) ProtoMessage()
- func (x *LoginApplicationRequest) ProtoReflect() protoreflect.Message
- func (x *LoginApplicationRequest) Reset()
- func (x *LoginApplicationRequest) String() string
- type LoginUserRequest
- func (*LoginUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginUserRequest) GetEmail() string
- func (x *LoginUserRequest) GetPassword() string
- func (*LoginUserRequest) ProtoMessage()
- func (x *LoginUserRequest) ProtoReflect() protoreflect.Message
- func (x *LoginUserRequest) Reset()
- func (x *LoginUserRequest) String() string
- type LoginUserResponse
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetEmail() string
- func (x *RegisterUserRequest) GetName() string
- func (x *RegisterUserRequest) GetPassword() string
- func (x *RegisterUserRequest) GetRole() string
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type SendApplicationNotificationRequest
- func (*SendApplicationNotificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendApplicationNotificationRequest) GetEmail() string
- func (x *SendApplicationNotificationRequest) GetName() string
- func (*SendApplicationNotificationRequest) ProtoMessage()
- func (x *SendApplicationNotificationRequest) ProtoReflect() protoreflect.Message
- func (x *SendApplicationNotificationRequest) Reset()
- func (x *SendApplicationNotificationRequest) String() string
- type SendApplicationNotificationResponse
- func (*SendApplicationNotificationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendApplicationNotificationResponse) GetApplicationToken() string
- func (*SendApplicationNotificationResponse) ProtoMessage()
- func (x *SendApplicationNotificationResponse) ProtoReflect() protoreflect.Message
- func (x *SendApplicationNotificationResponse) Reset()
- func (x *SendApplicationNotificationResponse) String() string
- type UnimplementedGoSentinelServiceServer
- func (UnimplementedGoSentinelServiceServer) CreateApplicationPassword(context.Context, *CreateApplicationPasswordRequest) (*emptypb.Empty, error)
- func (UnimplementedGoSentinelServiceServer) CreateApplicationSecret(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedGoSentinelServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
- func (UnimplementedGoSentinelServiceServer) GetApplicationSecret(context.Context, *emptypb.Empty) (*Applicationcredentials, error)
- func (UnimplementedGoSentinelServiceServer) GetApplicationToken(context.Context, *Applicationcredentials) (*ApplicationTokenResponse, error)
- func (UnimplementedGoSentinelServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedGoSentinelServiceServer) LoginApplication(context.Context, *LoginApplicationRequest) (*ApplicationTokenResponse, error)
- func (UnimplementedGoSentinelServiceServer) LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error)
- func (UnimplementedGoSentinelServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*emptypb.Empty, error)
- func (UnimplementedGoSentinelServiceServer) SendVerifcationNotification(context.Context, *SendApplicationNotificationRequest) (*SendApplicationNotificationResponse, error)
- func (UnimplementedGoSentinelServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
- func (UnimplementedGoSentinelServiceServer) VerifyApplication(context.Context, *VerifyApplicationRequest) (*emptypb.Empty, error)
- type UnsafeGoSentinelServiceServer
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetID() string
- func (x *UpdateUserRequest) GetName() string
- func (x *UpdateUserRequest) GetPassword() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetIsActive() string
- func (x *User) GetName() string
- func (x *User) GetPassword() string
- func (x *User) GetRole() string
- func (x *User) GetToken() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type VerifyApplicationRequest
- func (*VerifyApplicationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyApplicationRequest) GetKey() string
- func (*VerifyApplicationRequest) ProtoMessage()
- func (x *VerifyApplicationRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyApplicationRequest) Reset()
- func (x *VerifyApplicationRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_goSentinel_proto protoreflect.FileDescriptor
var GoSentinelService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "goSentinel.goSentinelService", HandlerType: (*GoSentinelServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendVerifcationNotification", Handler: _GoSentinelService_SendVerifcationNotification_Handler, }, { MethodName: "VerifyApplication", Handler: _GoSentinelService_VerifyApplication_Handler, }, { MethodName: "CreateApplicationPassword", Handler: _GoSentinelService_CreateApplicationPassword_Handler, }, { MethodName: "GetApplicationSecret", Handler: _GoSentinelService_GetApplicationSecret_Handler, }, { MethodName: "LoginApplication", Handler: _GoSentinelService_LoginApplication_Handler, }, { MethodName: "CreateApplicationSecret", Handler: _GoSentinelService_CreateApplicationSecret_Handler, }, { MethodName: "GetApplicationToken", Handler: _GoSentinelService_GetApplicationToken_Handler, }, { MethodName: "RegisterUser", Handler: _GoSentinelService_RegisterUser_Handler, }, { MethodName: "LoginUser", Handler: _GoSentinelService_LoginUser_Handler, }, { MethodName: "GetUser", Handler: _GoSentinelService_GetUser_Handler, }, { MethodName: "DeleteUser", Handler: _GoSentinelService_DeleteUser_Handler, }, { MethodName: "UpdateUser", Handler: _GoSentinelService_UpdateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "goSentinel.proto", }
GoSentinelService_ServiceDesc is the grpc.ServiceDesc for GoSentinelService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGoSentinelServiceHandler ¶
func RegisterGoSentinelServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterGoSentinelServiceHandler registers the http handlers for service GoSentinelService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterGoSentinelServiceHandlerClient ¶
func RegisterGoSentinelServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GoSentinelServiceClient) error
RegisterGoSentinelServiceHandlerClient registers the http handlers for service GoSentinelService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GoSentinelServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GoSentinelServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GoSentinelServiceClient" to call the correct interceptors.
func RegisterGoSentinelServiceHandlerFromEndpoint ¶
func RegisterGoSentinelServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterGoSentinelServiceHandlerFromEndpoint is same as RegisterGoSentinelServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterGoSentinelServiceHandlerServer ¶
func RegisterGoSentinelServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GoSentinelServiceServer) error
RegisterGoSentinelServiceHandlerServer registers the http handlers for service GoSentinelService to "mux". UnaryRPC :call GoSentinelServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterGoSentinelServiceHandlerFromEndpoint instead.
func RegisterGoSentinelServiceServer ¶
func RegisterGoSentinelServiceServer(s grpc.ServiceRegistrar, srv GoSentinelServiceServer)
Types ¶
type Application ¶
type Application struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` IsVerified string `protobuf:"bytes,5,opt,name=isVerified,proto3" json:"isVerified,omitempty"` // contains filtered or unexported fields }
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetEmail ¶
func (x *Application) GetEmail() string
func (*Application) GetId ¶
func (x *Application) GetId() string
func (*Application) GetIsVerified ¶
func (x *Application) GetIsVerified() string
func (*Application) GetName ¶
func (x *Application) GetName() string
func (*Application) GetStatus ¶
func (x *Application) GetStatus() string
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
type ApplicationSecretRequest ¶
type ApplicationSecretRequest struct { ApplicationID string `protobuf:"bytes,1,opt,name=applicationID,proto3" json:"applicationID,omitempty"` // contains filtered or unexported fields }
func (*ApplicationSecretRequest) Descriptor
deprecated
func (*ApplicationSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationSecretRequest.ProtoReflect.Descriptor instead.
func (*ApplicationSecretRequest) GetApplicationID ¶
func (x *ApplicationSecretRequest) GetApplicationID() string
func (*ApplicationSecretRequest) ProtoMessage ¶
func (*ApplicationSecretRequest) ProtoMessage()
func (*ApplicationSecretRequest) ProtoReflect ¶
func (x *ApplicationSecretRequest) ProtoReflect() protoreflect.Message
func (*ApplicationSecretRequest) Reset ¶
func (x *ApplicationSecretRequest) Reset()
func (*ApplicationSecretRequest) String ¶
func (x *ApplicationSecretRequest) String() string
type ApplicationTokenResponse ¶
type ApplicationTokenResponse struct { ApplicationToken string `protobuf:"bytes,1,opt,name=applicationToken,proto3" json:"applicationToken,omitempty"` // contains filtered or unexported fields }
func (*ApplicationTokenResponse) Descriptor
deprecated
func (*ApplicationTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationTokenResponse.ProtoReflect.Descriptor instead.
func (*ApplicationTokenResponse) GetApplicationToken ¶
func (x *ApplicationTokenResponse) GetApplicationToken() string
func (*ApplicationTokenResponse) ProtoMessage ¶
func (*ApplicationTokenResponse) ProtoMessage()
func (*ApplicationTokenResponse) ProtoReflect ¶
func (x *ApplicationTokenResponse) ProtoReflect() protoreflect.Message
func (*ApplicationTokenResponse) Reset ¶
func (x *ApplicationTokenResponse) Reset()
func (*ApplicationTokenResponse) String ¶
func (x *ApplicationTokenResponse) String() string
type Applicationcredentials ¶
type Applicationcredentials struct { ApplicationID string `protobuf:"bytes,1,opt,name=applicationID,proto3" json:"applicationID,omitempty"` ApplicationSecret string `protobuf:"bytes,2,opt,name=applicationSecret,proto3" json:"applicationSecret,omitempty"` // contains filtered or unexported fields }
func (*Applicationcredentials) Descriptor
deprecated
func (*Applicationcredentials) Descriptor() ([]byte, []int)
Deprecated: Use Applicationcredentials.ProtoReflect.Descriptor instead.
func (*Applicationcredentials) GetApplicationID ¶
func (x *Applicationcredentials) GetApplicationID() string
func (*Applicationcredentials) GetApplicationSecret ¶
func (x *Applicationcredentials) GetApplicationSecret() string
func (*Applicationcredentials) ProtoMessage ¶
func (*Applicationcredentials) ProtoMessage()
func (*Applicationcredentials) ProtoReflect ¶
func (x *Applicationcredentials) ProtoReflect() protoreflect.Message
func (*Applicationcredentials) Reset ¶
func (x *Applicationcredentials) Reset()
func (*Applicationcredentials) String ¶
func (x *Applicationcredentials) String() string
type CreateApplicationPasswordRequest ¶
type CreateApplicationPasswordRequest struct { Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateApplicationPasswordRequest) Descriptor
deprecated
func (*CreateApplicationPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateApplicationPasswordRequest.ProtoReflect.Descriptor instead.
func (*CreateApplicationPasswordRequest) GetPassword ¶
func (x *CreateApplicationPasswordRequest) GetPassword() string
func (*CreateApplicationPasswordRequest) ProtoMessage ¶
func (*CreateApplicationPasswordRequest) ProtoMessage()
func (*CreateApplicationPasswordRequest) ProtoReflect ¶
func (x *CreateApplicationPasswordRequest) ProtoReflect() protoreflect.Message
func (*CreateApplicationPasswordRequest) Reset ¶
func (x *CreateApplicationPasswordRequest) Reset()
func (*CreateApplicationPasswordRequest) String ¶
func (x *CreateApplicationPasswordRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetID ¶
func (x *DeleteUserRequest) GetID() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type GetApplicationRequest ¶
type GetApplicationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetApplicationRequest) Descriptor
deprecated
func (*GetApplicationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetApplicationRequest.ProtoReflect.Descriptor instead.
func (*GetApplicationRequest) GetId ¶
func (x *GetApplicationRequest) GetId() string
func (*GetApplicationRequest) ProtoMessage ¶
func (*GetApplicationRequest) ProtoMessage()
func (*GetApplicationRequest) ProtoReflect ¶
func (x *GetApplicationRequest) ProtoReflect() protoreflect.Message
func (*GetApplicationRequest) Reset ¶
func (x *GetApplicationRequest) Reset()
func (*GetApplicationRequest) String ¶
func (x *GetApplicationRequest) String() string
type GetUserRequest ¶
type GetUserRequest struct { UserToken string `protobuf:"bytes,1,opt,name=userToken,proto3" json:"userToken,omitempty"` ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetEmail ¶
func (x *GetUserRequest) GetEmail() string
func (*GetUserRequest) GetID ¶
func (x *GetUserRequest) GetID() string
func (*GetUserRequest) GetUserToken ¶
func (x *GetUserRequest) GetUserToken() 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 string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetEmail ¶
func (x *GetUserResponse) GetEmail() string
func (*GetUserResponse) GetID ¶
func (x *GetUserResponse) GetID() string
func (*GetUserResponse) GetName ¶
func (x *GetUserResponse) GetName() string
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 GoSentinelServiceClient ¶
type GoSentinelServiceClient interface { SendVerifcationNotification(ctx context.Context, in *SendApplicationNotificationRequest, opts ...grpc.CallOption) (*SendApplicationNotificationResponse, error) VerifyApplication(ctx context.Context, in *VerifyApplicationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateApplicationPassword(ctx context.Context, in *CreateApplicationPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetApplicationSecret(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Applicationcredentials, error) LoginApplication(ctx context.Context, in *LoginApplicationRequest, opts ...grpc.CallOption) (*ApplicationTokenResponse, error) CreateApplicationSecret(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) GetApplicationToken(ctx context.Context, in *Applicationcredentials, opts ...grpc.CallOption) (*ApplicationTokenResponse, error) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) LoginUser(ctx context.Context, in *LoginUserRequest, opts ...grpc.CallOption) (*LoginUserResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
GoSentinelServiceClient is the client API for GoSentinelService 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 NewGoSentinelServiceClient ¶
func NewGoSentinelServiceClient(cc grpc.ClientConnInterface) GoSentinelServiceClient
type GoSentinelServiceServer ¶
type GoSentinelServiceServer interface { SendVerifcationNotification(context.Context, *SendApplicationNotificationRequest) (*SendApplicationNotificationResponse, error) VerifyApplication(context.Context, *VerifyApplicationRequest) (*emptypb.Empty, error) CreateApplicationPassword(context.Context, *CreateApplicationPasswordRequest) (*emptypb.Empty, error) GetApplicationSecret(context.Context, *emptypb.Empty) (*Applicationcredentials, error) LoginApplication(context.Context, *LoginApplicationRequest) (*ApplicationTokenResponse, error) CreateApplicationSecret(context.Context, *emptypb.Empty) (*emptypb.Empty, error) GetApplicationToken(context.Context, *Applicationcredentials) (*ApplicationTokenResponse, error) RegisterUser(context.Context, *RegisterUserRequest) (*emptypb.Empty, error) LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) }
GoSentinelServiceServer is the server API for GoSentinelService service. All implementations should embed UnimplementedGoSentinelServiceServer for forward compatibility
type LoginApplicationRequest ¶
type LoginApplicationRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginApplicationRequest) Descriptor
deprecated
func (*LoginApplicationRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginApplicationRequest.ProtoReflect.Descriptor instead.
func (*LoginApplicationRequest) GetEmail ¶
func (x *LoginApplicationRequest) GetEmail() string
func (*LoginApplicationRequest) GetPassword ¶
func (x *LoginApplicationRequest) GetPassword() string
func (*LoginApplicationRequest) ProtoMessage ¶
func (*LoginApplicationRequest) ProtoMessage()
func (*LoginApplicationRequest) ProtoReflect ¶
func (x *LoginApplicationRequest) ProtoReflect() protoreflect.Message
func (*LoginApplicationRequest) Reset ¶
func (x *LoginApplicationRequest) Reset()
func (*LoginApplicationRequest) String ¶
func (x *LoginApplicationRequest) String() string
type LoginUserRequest ¶
type LoginUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginUserRequest) Descriptor
deprecated
func (*LoginUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserRequest.ProtoReflect.Descriptor instead.
func (*LoginUserRequest) GetEmail ¶
func (x *LoginUserRequest) GetEmail() string
func (*LoginUserRequest) GetPassword ¶
func (x *LoginUserRequest) GetPassword() string
func (*LoginUserRequest) ProtoMessage ¶
func (*LoginUserRequest) ProtoMessage()
func (*LoginUserRequest) ProtoReflect ¶
func (x *LoginUserRequest) ProtoReflect() protoreflect.Message
func (*LoginUserRequest) Reset ¶
func (x *LoginUserRequest) Reset()
func (*LoginUserRequest) String ¶
func (x *LoginUserRequest) String() string
type LoginUserResponse ¶
type LoginUserResponse struct { UserToken string `protobuf:"bytes,1,opt,name=userToken,proto3" json:"userToken,omitempty"` // contains filtered or unexported fields }
func (*LoginUserResponse) Descriptor
deprecated
func (*LoginUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserResponse.ProtoReflect.Descriptor instead.
func (*LoginUserResponse) GetUserToken ¶
func (x *LoginUserResponse) GetUserToken() string
func (*LoginUserResponse) ProtoMessage ¶
func (*LoginUserResponse) ProtoMessage()
func (*LoginUserResponse) ProtoReflect ¶
func (x *LoginUserResponse) ProtoReflect() protoreflect.Message
func (*LoginUserResponse) Reset ¶
func (x *LoginUserResponse) Reset()
func (*LoginUserResponse) String ¶
func (x *LoginUserResponse) String() string
type RegisterUserRequest ¶
type RegisterUserRequest 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"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetEmail ¶
func (x *RegisterUserRequest) GetEmail() string
func (*RegisterUserRequest) GetName ¶
func (x *RegisterUserRequest) GetName() string
func (*RegisterUserRequest) GetPassword ¶
func (x *RegisterUserRequest) GetPassword() string
func (*RegisterUserRequest) GetRole ¶
func (x *RegisterUserRequest) GetRole() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type SendApplicationNotificationRequest ¶
type SendApplicationNotificationRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SendApplicationNotificationRequest) Descriptor
deprecated
func (*SendApplicationNotificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendApplicationNotificationRequest.ProtoReflect.Descriptor instead.
func (*SendApplicationNotificationRequest) GetEmail ¶
func (x *SendApplicationNotificationRequest) GetEmail() string
func (*SendApplicationNotificationRequest) GetName ¶
func (x *SendApplicationNotificationRequest) GetName() string
func (*SendApplicationNotificationRequest) ProtoMessage ¶
func (*SendApplicationNotificationRequest) ProtoMessage()
func (*SendApplicationNotificationRequest) ProtoReflect ¶
func (x *SendApplicationNotificationRequest) ProtoReflect() protoreflect.Message
func (*SendApplicationNotificationRequest) Reset ¶
func (x *SendApplicationNotificationRequest) Reset()
func (*SendApplicationNotificationRequest) String ¶
func (x *SendApplicationNotificationRequest) String() string
type SendApplicationNotificationResponse ¶
type SendApplicationNotificationResponse struct { ApplicationToken string `protobuf:"bytes,1,opt,name=applicationToken,proto3" json:"applicationToken,omitempty"` // contains filtered or unexported fields }
func (*SendApplicationNotificationResponse) Descriptor
deprecated
func (*SendApplicationNotificationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendApplicationNotificationResponse.ProtoReflect.Descriptor instead.
func (*SendApplicationNotificationResponse) GetApplicationToken ¶
func (x *SendApplicationNotificationResponse) GetApplicationToken() string
func (*SendApplicationNotificationResponse) ProtoMessage ¶
func (*SendApplicationNotificationResponse) ProtoMessage()
func (*SendApplicationNotificationResponse) ProtoReflect ¶
func (x *SendApplicationNotificationResponse) ProtoReflect() protoreflect.Message
func (*SendApplicationNotificationResponse) Reset ¶
func (x *SendApplicationNotificationResponse) Reset()
func (*SendApplicationNotificationResponse) String ¶
func (x *SendApplicationNotificationResponse) String() string
type UnimplementedGoSentinelServiceServer ¶
type UnimplementedGoSentinelServiceServer struct { }
UnimplementedGoSentinelServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedGoSentinelServiceServer) CreateApplicationPassword ¶
func (UnimplementedGoSentinelServiceServer) CreateApplicationPassword(context.Context, *CreateApplicationPasswordRequest) (*emptypb.Empty, error)
func (UnimplementedGoSentinelServiceServer) CreateApplicationSecret ¶
func (UnimplementedGoSentinelServiceServer) DeleteUser ¶
func (UnimplementedGoSentinelServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedGoSentinelServiceServer) GetApplicationSecret ¶
func (UnimplementedGoSentinelServiceServer) GetApplicationSecret(context.Context, *emptypb.Empty) (*Applicationcredentials, error)
func (UnimplementedGoSentinelServiceServer) GetApplicationToken ¶
func (UnimplementedGoSentinelServiceServer) GetApplicationToken(context.Context, *Applicationcredentials) (*ApplicationTokenResponse, error)
func (UnimplementedGoSentinelServiceServer) GetUser ¶
func (UnimplementedGoSentinelServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedGoSentinelServiceServer) LoginApplication ¶
func (UnimplementedGoSentinelServiceServer) LoginApplication(context.Context, *LoginApplicationRequest) (*ApplicationTokenResponse, error)
func (UnimplementedGoSentinelServiceServer) LoginUser ¶
func (UnimplementedGoSentinelServiceServer) LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error)
func (UnimplementedGoSentinelServiceServer) RegisterUser ¶
func (UnimplementedGoSentinelServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*emptypb.Empty, error)
func (UnimplementedGoSentinelServiceServer) SendVerifcationNotification ¶
func (UnimplementedGoSentinelServiceServer) SendVerifcationNotification(context.Context, *SendApplicationNotificationRequest) (*SendApplicationNotificationResponse, error)
func (UnimplementedGoSentinelServiceServer) UpdateUser ¶
func (UnimplementedGoSentinelServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
func (UnimplementedGoSentinelServiceServer) VerifyApplication ¶
func (UnimplementedGoSentinelServiceServer) VerifyApplication(context.Context, *VerifyApplicationRequest) (*emptypb.Empty, error)
type UnsafeGoSentinelServiceServer ¶
type UnsafeGoSentinelServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGoSentinelServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoSentinelServiceServer will result in compilation errors.
type UpdateUserRequest ¶
type UpdateUserRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetID ¶
func (x *UpdateUserRequest) GetID() string
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetPassword ¶
func (x *UpdateUserRequest) GetPassword() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"` IsActive string `protobuf:"bytes,7,opt,name=isActive,proto3" json:"isActive,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetIsActive ¶
func (*User) GetPassword ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type VerifyApplicationRequest ¶
type VerifyApplicationRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*VerifyApplicationRequest) Descriptor
deprecated
func (*VerifyApplicationRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyApplicationRequest.ProtoReflect.Descriptor instead.
func (*VerifyApplicationRequest) GetKey ¶
func (x *VerifyApplicationRequest) GetKey() string
func (*VerifyApplicationRequest) ProtoMessage ¶
func (*VerifyApplicationRequest) ProtoMessage()
func (*VerifyApplicationRequest) ProtoReflect ¶
func (x *VerifyApplicationRequest) ProtoReflect() protoreflect.Message
func (*VerifyApplicationRequest) Reset ¶
func (x *VerifyApplicationRequest) Reset()
func (*VerifyApplicationRequest) String ¶
func (x *VerifyApplicationRequest) String() string