Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorAccessForbidden(format string, args ...interface{}) *errors.Error
- func ErrorBadRequest(format string, args ...interface{}) *errors.Error
- func ErrorInternalServerError(format string, args ...interface{}) *errors.Error
- func ErrorInvalidPassword(format string, args ...interface{}) *errors.Error
- func ErrorInvalidToken(format string, args ...interface{}) *errors.Error
- func ErrorInvalidUserid(format string, args ...interface{}) *errors.Error
- func ErrorMethodNotAllowed(format string, args ...interface{}) *errors.Error
- func ErrorNetworkError(format string, args ...interface{}) *errors.Error
- func ErrorNetworkTimeout(format string, args ...interface{}) *errors.Error
- func ErrorNotImplemented(format string, args ...interface{}) *errors.Error
- func ErrorNotLoggedIn(format string, args ...interface{}) *errors.Error
- func ErrorRequestNotSupport(format string, args ...interface{}) *errors.Error
- func ErrorRequestTimeout(format string, args ...interface{}) *errors.Error
- func ErrorResourceNotFound(format string, args ...interface{}) *errors.Error
- func ErrorServiceUnavailable(format string, args ...interface{}) *errors.Error
- func ErrorTokenExpired(format string, args ...interface{}) *errors.Error
- func ErrorTokenNotExist(format string, args ...interface{}) *errors.Error
- func ErrorUserFreeze(format string, args ...interface{}) *errors.Error
- func ErrorUserNotExist(format string, args ...interface{}) *errors.Error
- func IsAccessForbidden(err error) bool
- func IsBadRequest(err error) bool
- func IsInternalServerError(err error) bool
- func IsInvalidPassword(err error) bool
- func IsInvalidToken(err error) bool
- func IsInvalidUserid(err error) bool
- func IsMethodNotAllowed(err error) bool
- func IsNetworkError(err error) bool
- func IsNetworkTimeout(err error) bool
- func IsNotImplemented(err error) bool
- func IsNotLoggedIn(err error) bool
- func IsRequestNotSupport(err error) bool
- func IsRequestTimeout(err error) bool
- func IsResourceNotFound(err error) bool
- func IsServiceUnavailable(err error) bool
- func IsTokenExpired(err error) bool
- func IsTokenNotExist(err error) bool
- func IsUserFreeze(err error) bool
- func IsUserNotExist(err error) bool
- func RegisterAuthenticationServiceHTTPServer(s *http.Server, srv AuthenticationServiceHTTPServer)
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- func RegisterSystemServiceHTTPServer(s *http.Server, srv SystemServiceHTTPServer)
- func RegisterSystemServiceServer(s grpc.ServiceRegistrar, srv SystemServiceServer)
- func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AdminErrorReason
- func (AdminErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x AdminErrorReason) Enum() *AdminErrorReason
- func (AdminErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x AdminErrorReason) Number() protoreflect.EnumNumber
- func (x AdminErrorReason) String() string
- func (AdminErrorReason) Type() protoreflect.EnumType
- type AuthenticationServiceClient
- type AuthenticationServiceHTTPClient
- type AuthenticationServiceHTTPClientImpl
- func (c *AuthenticationServiceHTTPClientImpl) GetMe(ctx context.Context, in *GetMeRequest, opts ...http.CallOption) (*v1.User, error)
- func (c *AuthenticationServiceHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
- func (c *AuthenticationServiceHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type AuthenticationServiceHTTPServer
- type AuthenticationServiceServer
- type CreateSystemRequest
- func (*CreateSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSystemRequest) GetOperatorId() uint64
- func (x *CreateSystemRequest) GetSystem() *System
- func (*CreateSystemRequest) ProtoMessage()
- func (x *CreateSystemRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSystemRequest) Reset()
- func (x *CreateSystemRequest) String() string
- func (m *CreateSystemRequest) Validate() error
- func (m *CreateSystemRequest) ValidateAll() error
- type CreateSystemRequestMultiError
- type CreateSystemRequestValidationError
- func (e CreateSystemRequestValidationError) Cause() error
- func (e CreateSystemRequestValidationError) Error() string
- func (e CreateSystemRequestValidationError) ErrorName() string
- func (e CreateSystemRequestValidationError) Field() string
- func (e CreateSystemRequestValidationError) Key() bool
- func (e CreateSystemRequestValidationError) Reason() string
- type DeleteSystemRequest
- func (*DeleteSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSystemRequest) GetId() uint64
- func (x *DeleteSystemRequest) GetOperatorId() uint64
- func (*DeleteSystemRequest) ProtoMessage()
- func (x *DeleteSystemRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSystemRequest) Reset()
- func (x *DeleteSystemRequest) String() string
- func (m *DeleteSystemRequest) Validate() error
- func (m *DeleteSystemRequest) ValidateAll() error
- type DeleteSystemRequestMultiError
- type DeleteSystemRequestValidationError
- func (e DeleteSystemRequestValidationError) Cause() error
- func (e DeleteSystemRequestValidationError) Error() string
- func (e DeleteSystemRequestValidationError) ErrorName() string
- func (e DeleteSystemRequestValidationError) Field() string
- func (e DeleteSystemRequestValidationError) Key() bool
- func (e DeleteSystemRequestValidationError) Reason() string
- type GetMeRequest
- func (*GetMeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMeRequest) GetId() uint32
- func (*GetMeRequest) ProtoMessage()
- func (x *GetMeRequest) ProtoReflect() protoreflect.Message
- func (x *GetMeRequest) Reset()
- func (x *GetMeRequest) String() string
- func (m *GetMeRequest) Validate() error
- func (m *GetMeRequest) ValidateAll() error
- type GetMeRequestMultiError
- type GetMeRequestValidationError
- func (e GetMeRequestValidationError) Cause() error
- func (e GetMeRequestValidationError) Error() string
- func (e GetMeRequestValidationError) ErrorName() string
- func (e GetMeRequestValidationError) Field() string
- func (e GetMeRequestValidationError) Key() bool
- func (e GetMeRequestValidationError) Reason() string
- type GetSystemRequest
- func (*GetSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSystemRequest) GetId() uint64
- func (*GetSystemRequest) ProtoMessage()
- func (x *GetSystemRequest) ProtoReflect() protoreflect.Message
- func (x *GetSystemRequest) Reset()
- func (x *GetSystemRequest) String() string
- func (m *GetSystemRequest) Validate() error
- func (m *GetSystemRequest) ValidateAll() error
- type GetSystemRequestMultiError
- type GetSystemRequestValidationError
- func (e GetSystemRequestValidationError) Cause() error
- func (e GetSystemRequestValidationError) Error() string
- func (e GetSystemRequestValidationError) ErrorName() string
- func (e GetSystemRequestValidationError) Field() string
- func (e GetSystemRequestValidationError) Key() bool
- func (e GetSystemRequestValidationError) Reason() string
- type GrantType
- type ListSystemResponse
- func (*ListSystemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSystemResponse) GetItems() []*System
- func (x *ListSystemResponse) GetTotal() int32
- func (*ListSystemResponse) ProtoMessage()
- func (x *ListSystemResponse) ProtoReflect() protoreflect.Message
- func (x *ListSystemResponse) Reset()
- func (x *ListSystemResponse) String() string
- func (m *ListSystemResponse) Validate() error
- func (m *ListSystemResponse) ValidateAll() error
- type ListSystemResponseMultiError
- type ListSystemResponseValidationError
- func (e ListSystemResponseValidationError) Cause() error
- func (e ListSystemResponseValidationError) Error() string
- func (e ListSystemResponseValidationError) ErrorName() string
- func (e ListSystemResponseValidationError) Field() string
- func (e ListSystemResponseValidationError) Key() bool
- func (e ListSystemResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetClientId() string
- func (x *LoginRequest) GetClientSecret() string
- func (x *LoginRequest) GetGrantType() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetScope() string
- func (x *LoginRequest) GetUserName() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAccessToken() string
- func (x *LoginResponse) GetExpiresIn() int64
- func (x *LoginResponse) GetRefreshToken() string
- func (x *LoginResponse) GetScope() string
- func (x *LoginResponse) GetTokenType() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutRequest) GetId() uint32
- func (*LogoutRequest) ProtoMessage()
- func (x *LogoutRequest) ProtoReflect() protoreflect.Message
- func (x *LogoutRequest) Reset()
- func (x *LogoutRequest) String() string
- func (m *LogoutRequest) Validate() error
- func (m *LogoutRequest) ValidateAll() error
- type LogoutRequestMultiError
- type LogoutRequestValidationError
- func (e LogoutRequestValidationError) Cause() error
- func (e LogoutRequestValidationError) Error() string
- func (e LogoutRequestValidationError) ErrorName() string
- func (e LogoutRequestValidationError) Field() string
- func (e LogoutRequestValidationError) Key() bool
- func (e LogoutRequestValidationError) Reason() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetClientId() string
- func (x *RefreshTokenRequest) GetClientSecret() string
- func (x *RefreshTokenRequest) GetGrantType() string
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (x *RefreshTokenRequest) GetScope() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- func (m *RefreshTokenRequest) Validate() error
- func (m *RefreshTokenRequest) ValidateAll() error
- type RefreshTokenRequestMultiError
- type RefreshTokenRequestValidationError
- func (e RefreshTokenRequestValidationError) Cause() error
- func (e RefreshTokenRequestValidationError) Error() string
- func (e RefreshTokenRequestValidationError) ErrorName() string
- func (e RefreshTokenRequestValidationError) Field() string
- func (e RefreshTokenRequestValidationError) Key() bool
- func (e RefreshTokenRequestValidationError) Reason() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetGrantType() string
- func (x *RefreshTokenResponse) GetRefreshToken() string
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- func (m *RefreshTokenResponse) Validate() error
- func (m *RefreshTokenResponse) ValidateAll() error
- type RefreshTokenResponseMultiError
- type RefreshTokenResponseValidationError
- func (e RefreshTokenResponseValidationError) Cause() error
- func (e RefreshTokenResponseValidationError) Error() string
- func (e RefreshTokenResponseValidationError) ErrorName() string
- func (e RefreshTokenResponseValidationError) Field() string
- func (e RefreshTokenResponseValidationError) Key() bool
- func (e RefreshTokenResponseValidationError) Reason() string
- type System
- func (*System) Descriptor() ([]byte, []int)deprecated
- func (x *System) GetDescription() string
- func (x *System) GetId() uint64
- func (x *System) GetKeywords() string
- func (x *System) GetRecordNumber() string
- func (x *System) GetTheme() int32
- func (x *System) GetTitle() string
- func (*System) ProtoMessage()
- func (x *System) ProtoReflect() protoreflect.Message
- func (x *System) Reset()
- func (x *System) String() string
- func (m *System) Validate() error
- func (m *System) ValidateAll() error
- type SystemMultiError
- type SystemServiceClient
- type SystemServiceHTTPClient
- type SystemServiceHTTPClientImpl
- func (c *SystemServiceHTTPClientImpl) CreateSystem(ctx context.Context, in *CreateSystemRequest, opts ...http.CallOption) (*System, error)
- func (c *SystemServiceHTTPClientImpl) DeleteSystem(ctx context.Context, in *DeleteSystemRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *SystemServiceHTTPClientImpl) GetSystem(ctx context.Context, in *GetSystemRequest, opts ...http.CallOption) (*System, error)
- func (c *SystemServiceHTTPClientImpl) ListSystem(ctx context.Context, in *v1.PagingRequest, opts ...http.CallOption) (*ListSystemResponse, error)
- func (c *SystemServiceHTTPClientImpl) UpdateSystem(ctx context.Context, in *UpdateSystemRequest, opts ...http.CallOption) (*System, error)
- type SystemServiceHTTPServer
- type SystemServiceServer
- type SystemValidationError
- type TokenType
- type UnimplementedAuthenticationServiceServer
- func (UnimplementedAuthenticationServiceServer) GetMe(context.Context, *GetMeRequest) (*v1.User, error)
- func (UnimplementedAuthenticationServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthenticationServiceServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
- type UnimplementedSystemServiceServer
- func (UnimplementedSystemServiceServer) CreateSystem(context.Context, *CreateSystemRequest) (*System, error)
- func (UnimplementedSystemServiceServer) DeleteSystem(context.Context, *DeleteSystemRequest) (*emptypb.Empty, error)
- func (UnimplementedSystemServiceServer) GetSystem(context.Context, *GetSystemRequest) (*System, error)
- func (UnimplementedSystemServiceServer) ListSystem(context.Context, *v1.PagingRequest) (*ListSystemResponse, error)
- func (UnimplementedSystemServiceServer) UpdateSystem(context.Context, *UpdateSystemRequest) (*System, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *v11.CreateUserRequest) (*v11.User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *v11.DeleteUserRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *v11.GetUserRequest) (*v11.User, error)
- func (UnimplementedUserServiceServer) ListUser(context.Context, *v1.PagingRequest) (*v11.ListUserResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *v11.UpdateUserRequest) (*v11.User, error)
- type UnsafeAuthenticationServiceServer
- type UnsafeSystemServiceServer
- type UnsafeUserServiceServer
- type UpdateSystemRequest
- func (*UpdateSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSystemRequest) GetId() uint64
- func (x *UpdateSystemRequest) GetOperatorId() uint64
- func (x *UpdateSystemRequest) GetSystem() *System
- func (*UpdateSystemRequest) ProtoMessage()
- func (x *UpdateSystemRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSystemRequest) Reset()
- func (x *UpdateSystemRequest) String() string
- func (m *UpdateSystemRequest) Validate() error
- func (m *UpdateSystemRequest) ValidateAll() error
- type UpdateSystemRequestMultiError
- type UpdateSystemRequestValidationError
- func (e UpdateSystemRequestValidationError) Cause() error
- func (e UpdateSystemRequestValidationError) Error() string
- func (e UpdateSystemRequestValidationError) ErrorName() string
- func (e UpdateSystemRequestValidationError) Field() string
- func (e UpdateSystemRequestValidationError) Key() bool
- func (e UpdateSystemRequestValidationError) Reason() string
- type UserServiceClient
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *v11.CreateUserRequest, opts ...http.CallOption) (*v11.User, error)
- func (c *UserServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *v11.DeleteUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserServiceHTTPClientImpl) GetUser(ctx context.Context, in *v11.GetUserRequest, opts ...http.CallOption) (*v11.User, error)
- func (c *UserServiceHTTPClientImpl) ListUser(ctx context.Context, in *v1.PagingRequest, opts ...http.CallOption) (*v11.ListUserResponse, error)
- func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *v11.UpdateUserRequest, opts ...http.CallOption) (*v11.User, error)
- type UserServiceHTTPServer
- type UserServiceServer
Constants ¶
const ( AuthenticationService_Login_FullMethodName = "/admin.v1.AuthenticationService/Login" AuthenticationService_Logout_FullMethodName = "/admin.v1.AuthenticationService/Logout" AuthenticationService_GetMe_FullMethodName = "/admin.v1.AuthenticationService/GetMe" )
const ( SystemService_ListSystem_FullMethodName = "/admin.v1.SystemService/ListSystem" SystemService_GetSystem_FullMethodName = "/admin.v1.SystemService/GetSystem" SystemService_CreateSystem_FullMethodName = "/admin.v1.SystemService/CreateSystem" SystemService_UpdateSystem_FullMethodName = "/admin.v1.SystemService/UpdateSystem" SystemService_DeleteSystem_FullMethodName = "/admin.v1.SystemService/DeleteSystem" )
const ( UserService_ListUser_FullMethodName = "/admin.v1.UserService/ListUser" UserService_GetUser_FullMethodName = "/admin.v1.UserService/GetUser" UserService_CreateUser_FullMethodName = "/admin.v1.UserService/CreateUser" UserService_UpdateUser_FullMethodName = "/admin.v1.UserService/UpdateUser" UserService_DeleteUser_FullMethodName = "/admin.v1.UserService/DeleteUser" )
const OperationAuthenticationServiceGetMe = "/admin.v1.AuthenticationService/GetMe"
const OperationAuthenticationServiceLogin = "/admin.v1.AuthenticationService/Login"
const OperationAuthenticationServiceLogout = "/admin.v1.AuthenticationService/Logout"
const OperationSystemServiceCreateSystem = "/admin.v1.SystemService/CreateSystem"
const OperationSystemServiceDeleteSystem = "/admin.v1.SystemService/DeleteSystem"
const OperationSystemServiceGetSystem = "/admin.v1.SystemService/GetSystem"
const OperationSystemServiceListSystem = "/admin.v1.SystemService/ListSystem"
const OperationSystemServiceUpdateSystem = "/admin.v1.SystemService/UpdateSystem"
const OperationUserServiceCreateUser = "/admin.v1.UserService/CreateUser"
const OperationUserServiceDeleteUser = "/admin.v1.UserService/DeleteUser"
const OperationUserServiceGetUser = "/admin.v1.UserService/GetUser"
const OperationUserServiceListUser = "/admin.v1.UserService/ListUser"
const OperationUserServiceUpdateUser = "/admin.v1.UserService/UpdateUser"
Variables ¶
var ( GrantType_name = map[int32]string{ 0: "password", 1: "client_credentials", 2: "refresh_token", } GrantType_value = map[string]int32{ "password": 0, "client_credentials": 1, "refresh_token": 2, } )
Enum value maps for GrantType.
var ( TokenType_name = map[int32]string{ 0: "bearer", 1: "mac", } TokenType_value = map[string]int32{ "bearer": 0, "mac": 1, } )
Enum value maps for TokenType.
var ( AdminErrorReason_name = map[int32]string{ 0: "BAD_REQUEST", 1: "NOT_LOGGED_IN", 2: "ACCESS_FORBIDDEN", 3: "RESOURCE_NOT_FOUND", 4: "METHOD_NOT_ALLOWED", 5: "REQUEST_TIMEOUT", 10: "INTERNAL_SERVER_ERROR", 11: "NOT_IMPLEMENTED", 12: "NETWORK_ERROR", 13: "SERVICE_UNAVAILABLE", 14: "NETWORK_TIMEOUT", 15: "REQUEST_NOT_SUPPORT", 20: "INVALID_USERID", 21: "INVALID_PASSWORD", 22: "TOKEN_EXPIRED", 23: "INVALID_TOKEN", 24: "TOKEN_NOT_EXIST", 25: "USER_NOT_EXIST", 26: "USER_FREEZE", } AdminErrorReason_value = map[string]int32{ "BAD_REQUEST": 0, "NOT_LOGGED_IN": 1, "ACCESS_FORBIDDEN": 2, "RESOURCE_NOT_FOUND": 3, "METHOD_NOT_ALLOWED": 4, "REQUEST_TIMEOUT": 5, "INTERNAL_SERVER_ERROR": 10, "NOT_IMPLEMENTED": 11, "NETWORK_ERROR": 12, "SERVICE_UNAVAILABLE": 13, "NETWORK_TIMEOUT": 14, "REQUEST_NOT_SUPPORT": 15, "INVALID_USERID": 20, "INVALID_PASSWORD": 21, "TOKEN_EXPIRED": 22, "INVALID_TOKEN": 23, "TOKEN_NOT_EXIST": 24, "USER_NOT_EXIST": 25, "USER_FREEZE": 26, } )
Enum value maps for AdminErrorReason.
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.AuthenticationService", HandlerType: (*AuthenticationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthenticationService_Login_Handler, }, { MethodName: "Logout", Handler: _AuthenticationService_Logout_Handler, }, { MethodName: "GetMe", Handler: _AuthenticationService_GetMe_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/v1/authentication.proto", }
AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_v1_admin_proto protoreflect.FileDescriptor
var File_admin_v1_authentication_proto protoreflect.FileDescriptor
var File_admin_v1_error_proto protoreflect.FileDescriptor
var File_admin_v1_system_proto protoreflect.FileDescriptor
var File_admin_v1_user_proto protoreflect.FileDescriptor
var SystemService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.SystemService", HandlerType: (*SystemServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSystem", Handler: _SystemService_ListSystem_Handler, }, { MethodName: "GetSystem", Handler: _SystemService_GetSystem_Handler, }, { MethodName: "CreateSystem", Handler: _SystemService_CreateSystem_Handler, }, { MethodName: "UpdateSystem", Handler: _SystemService_UpdateSystem_Handler, }, { MethodName: "DeleteSystem", Handler: _SystemService_DeleteSystem_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/v1/system.proto", }
SystemService_ServiceDesc is the grpc.ServiceDesc for SystemService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUser", Handler: _UserService_ListUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorAccessForbidden ¶
403
func ErrorInternalServerError ¶
500
func ErrorInvalidPassword ¶
密码无效
func ErrorInvalidToken ¶
token无效
func ErrorInvalidUserid ¶
用户ID无效
func ErrorMethodNotAllowed ¶
405
func ErrorNetworkError ¶
502
func ErrorNetworkTimeout ¶
504
func ErrorNotImplemented ¶
501
func ErrorRequestNotSupport ¶
505
func ErrorRequestTimeout ¶
408
func ErrorResourceNotFound ¶
404
func ErrorServiceUnavailable ¶
503
func ErrorTokenExpired ¶
token过期
func ErrorTokenNotExist ¶
token不存在
func ErrorUserNotExist ¶
用户不存在
func RegisterAuthenticationServiceHTTPServer ¶
func RegisterAuthenticationServiceHTTPServer(s *http.Server, srv AuthenticationServiceHTTPServer)
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
func RegisterSystemServiceHTTPServer ¶
func RegisterSystemServiceHTTPServer(s *http.Server, srv SystemServiceHTTPServer)
func RegisterSystemServiceServer ¶
func RegisterSystemServiceServer(s grpc.ServiceRegistrar, srv SystemServiceServer)
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AdminErrorReason ¶
type AdminErrorReason int32
const ( AdminErrorReason_BAD_REQUEST AdminErrorReason = 0 // 400 AdminErrorReason_NOT_LOGGED_IN AdminErrorReason = 1 // 401 AdminErrorReason_ACCESS_FORBIDDEN AdminErrorReason = 2 // 403 AdminErrorReason_RESOURCE_NOT_FOUND AdminErrorReason = 3 // 404 AdminErrorReason_METHOD_NOT_ALLOWED AdminErrorReason = 4 // 405 AdminErrorReason_REQUEST_TIMEOUT AdminErrorReason = 5 // 408 AdminErrorReason_INTERNAL_SERVER_ERROR AdminErrorReason = 10 // 500 AdminErrorReason_NOT_IMPLEMENTED AdminErrorReason = 11 // 501 AdminErrorReason_NETWORK_ERROR AdminErrorReason = 12 // 502 AdminErrorReason_SERVICE_UNAVAILABLE AdminErrorReason = 13 // 503 AdminErrorReason_NETWORK_TIMEOUT AdminErrorReason = 14 // 504 AdminErrorReason_REQUEST_NOT_SUPPORT AdminErrorReason = 15 // 505 AdminErrorReason_INVALID_USERID AdminErrorReason = 20 // 用户ID无效 AdminErrorReason_INVALID_PASSWORD AdminErrorReason = 21 // 密码无效 AdminErrorReason_TOKEN_EXPIRED AdminErrorReason = 22 // token过期 AdminErrorReason_INVALID_TOKEN AdminErrorReason = 23 // token无效 AdminErrorReason_TOKEN_NOT_EXIST AdminErrorReason = 24 // token不存在 AdminErrorReason_USER_NOT_EXIST AdminErrorReason = 25 // 用户不存在 AdminErrorReason_USER_FREEZE AdminErrorReason = 26 // 账号冻结 )
func (AdminErrorReason) Descriptor ¶
func (AdminErrorReason) Descriptor() protoreflect.EnumDescriptor
func (AdminErrorReason) Enum ¶
func (x AdminErrorReason) Enum() *AdminErrorReason
func (AdminErrorReason) EnumDescriptor
deprecated
func (AdminErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use AdminErrorReason.Descriptor instead.
func (AdminErrorReason) Number ¶
func (x AdminErrorReason) Number() protoreflect.EnumNumber
func (AdminErrorReason) String ¶
func (x AdminErrorReason) String() string
func (AdminErrorReason) Type ¶
func (AdminErrorReason) Type() protoreflect.EnumType
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { // Login Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // Logout Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Get profile GetMe(ctx context.Context, in *GetMeRequest, opts ...grpc.CallOption) (*v1.User, error) }
AuthenticationServiceClient is the client API for AuthenticationService 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.
The admin authen service definition
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceHTTPClient ¶
type AuthenticationServiceHTTPClient interface { GetMe(ctx context.Context, req *GetMeRequest, opts ...http.CallOption) (rsp *v1.User, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) Logout(ctx context.Context, req *LogoutRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewAuthenticationServiceHTTPClient ¶
func NewAuthenticationServiceHTTPClient(client *http.Client) AuthenticationServiceHTTPClient
type AuthenticationServiceHTTPClientImpl ¶
type AuthenticationServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthenticationServiceHTTPClientImpl) GetMe ¶
func (c *AuthenticationServiceHTTPClientImpl) GetMe(ctx context.Context, in *GetMeRequest, opts ...http.CallOption) (*v1.User, error)
func (*AuthenticationServiceHTTPClientImpl) Login ¶
func (c *AuthenticationServiceHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
func (*AuthenticationServiceHTTPClientImpl) Logout ¶
func (c *AuthenticationServiceHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type AuthenticationServiceHTTPServer ¶
type AuthenticationServiceHTTPServer interface { // GetMe Get profile GetMe(context.Context, *GetMeRequest) (*v1.User, error) // Login Login Login(context.Context, *LoginRequest) (*LoginResponse, error) // Logout Logout Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) }
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { // Login Login(context.Context, *LoginRequest) (*LoginResponse, error) // Logout Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) // Get profile GetMe(context.Context, *GetMeRequest) (*v1.User, error) // contains filtered or unexported methods }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations must embed UnimplementedAuthenticationServiceServer for forward compatibility
The admin authen service definition
type CreateSystemRequest ¶
type CreateSystemRequest struct { System *System `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"` OperatorId *uint64 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3,oneof" json:"operator_id,omitempty"` // contains filtered or unexported fields }
Request - Create system settings
func (*CreateSystemRequest) Descriptor
deprecated
func (*CreateSystemRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSystemRequest.ProtoReflect.Descriptor instead.
func (*CreateSystemRequest) GetOperatorId ¶
func (x *CreateSystemRequest) GetOperatorId() uint64
func (*CreateSystemRequest) GetSystem ¶
func (x *CreateSystemRequest) GetSystem() *System
func (*CreateSystemRequest) ProtoMessage ¶
func (*CreateSystemRequest) ProtoMessage()
func (*CreateSystemRequest) ProtoReflect ¶
func (x *CreateSystemRequest) ProtoReflect() protoreflect.Message
func (*CreateSystemRequest) Reset ¶
func (x *CreateSystemRequest) Reset()
func (*CreateSystemRequest) String ¶
func (x *CreateSystemRequest) String() string
func (*CreateSystemRequest) Validate ¶
func (m *CreateSystemRequest) Validate() error
Validate checks the field values on CreateSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateSystemRequest) ValidateAll ¶
func (m *CreateSystemRequest) ValidateAll() error
ValidateAll checks the field values on CreateSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateSystemRequestMultiError, or nil if none found.
type CreateSystemRequestMultiError ¶
type CreateSystemRequestMultiError []error
CreateSystemRequestMultiError is an error wrapping multiple validation errors returned by CreateSystemRequest.ValidateAll() if the designated constraints aren't met.
func (CreateSystemRequestMultiError) AllErrors ¶
func (m CreateSystemRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateSystemRequestMultiError) Error ¶
func (m CreateSystemRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateSystemRequestValidationError ¶
type CreateSystemRequestValidationError struct {
// contains filtered or unexported fields
}
CreateSystemRequestValidationError is the validation error returned by CreateSystemRequest.Validate if the designated constraints aren't met.
func (CreateSystemRequestValidationError) Cause ¶
func (e CreateSystemRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateSystemRequestValidationError) Error ¶
func (e CreateSystemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSystemRequestValidationError) ErrorName ¶
func (e CreateSystemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSystemRequestValidationError) Field ¶
func (e CreateSystemRequestValidationError) Field() string
Field function returns field value.
func (CreateSystemRequestValidationError) Key ¶
func (e CreateSystemRequestValidationError) Key() bool
Key function returns key value.
func (CreateSystemRequestValidationError) Reason ¶
func (e CreateSystemRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteSystemRequest ¶
type DeleteSystemRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OperatorId *uint64 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3,oneof" json:"operator_id,omitempty"` // contains filtered or unexported fields }
Request - Remove System Settings
func (*DeleteSystemRequest) Descriptor
deprecated
func (*DeleteSystemRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSystemRequest.ProtoReflect.Descriptor instead.
func (*DeleteSystemRequest) GetId ¶
func (x *DeleteSystemRequest) GetId() uint64
func (*DeleteSystemRequest) GetOperatorId ¶
func (x *DeleteSystemRequest) GetOperatorId() uint64
func (*DeleteSystemRequest) ProtoMessage ¶
func (*DeleteSystemRequest) ProtoMessage()
func (*DeleteSystemRequest) ProtoReflect ¶
func (x *DeleteSystemRequest) ProtoReflect() protoreflect.Message
func (*DeleteSystemRequest) Reset ¶
func (x *DeleteSystemRequest) Reset()
func (*DeleteSystemRequest) String ¶
func (x *DeleteSystemRequest) String() string
func (*DeleteSystemRequest) Validate ¶
func (m *DeleteSystemRequest) Validate() error
Validate checks the field values on DeleteSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteSystemRequest) ValidateAll ¶
func (m *DeleteSystemRequest) ValidateAll() error
ValidateAll checks the field values on DeleteSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteSystemRequestMultiError, or nil if none found.
type DeleteSystemRequestMultiError ¶
type DeleteSystemRequestMultiError []error
DeleteSystemRequestMultiError is an error wrapping multiple validation errors returned by DeleteSystemRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteSystemRequestMultiError) AllErrors ¶
func (m DeleteSystemRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSystemRequestMultiError) Error ¶
func (m DeleteSystemRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSystemRequestValidationError ¶
type DeleteSystemRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteSystemRequestValidationError is the validation error returned by DeleteSystemRequest.Validate if the designated constraints aren't met.
func (DeleteSystemRequestValidationError) Cause ¶
func (e DeleteSystemRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteSystemRequestValidationError) Error ¶
func (e DeleteSystemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSystemRequestValidationError) ErrorName ¶
func (e DeleteSystemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSystemRequestValidationError) Field ¶
func (e DeleteSystemRequestValidationError) Field() string
Field function returns field value.
func (DeleteSystemRequestValidationError) Key ¶
func (e DeleteSystemRequestValidationError) Key() bool
Key function returns key value.
func (DeleteSystemRequestValidationError) Reason ¶
func (e DeleteSystemRequestValidationError) Reason() string
Reason function returns reason value.
type GetMeRequest ¶
type GetMeRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Get profile - request
func (*GetMeRequest) Descriptor
deprecated
func (*GetMeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMeRequest.ProtoReflect.Descriptor instead.
func (*GetMeRequest) GetId ¶
func (x *GetMeRequest) GetId() uint32
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
func (*GetMeRequest) Validate ¶
func (m *GetMeRequest) Validate() error
Validate checks the field values on GetMeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetMeRequest) ValidateAll ¶
func (m *GetMeRequest) ValidateAll() error
ValidateAll checks the field values on GetMeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMeRequestMultiError, or nil if none found.
type GetMeRequestMultiError ¶
type GetMeRequestMultiError []error
GetMeRequestMultiError is an error wrapping multiple validation errors returned by GetMeRequest.ValidateAll() if the designated constraints aren't met.
func (GetMeRequestMultiError) AllErrors ¶
func (m GetMeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMeRequestMultiError) Error ¶
func (m GetMeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMeRequestValidationError ¶
type GetMeRequestValidationError struct {
// contains filtered or unexported fields
}
GetMeRequestValidationError is the validation error returned by GetMeRequest.Validate if the designated constraints aren't met.
func (GetMeRequestValidationError) Cause ¶
func (e GetMeRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMeRequestValidationError) Error ¶
func (e GetMeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMeRequestValidationError) ErrorName ¶
func (e GetMeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMeRequestValidationError) Field ¶
func (e GetMeRequestValidationError) Field() string
Field function returns field value.
func (GetMeRequestValidationError) Key ¶
func (e GetMeRequestValidationError) Key() bool
Key function returns key value.
func (GetMeRequestValidationError) Reason ¶
func (e GetMeRequestValidationError) Reason() string
Reason function returns reason value.
type GetSystemRequest ¶
type GetSystemRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request - System Settings Data
func (*GetSystemRequest) Descriptor
deprecated
func (*GetSystemRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemRequest.ProtoReflect.Descriptor instead.
func (*GetSystemRequest) GetId ¶
func (x *GetSystemRequest) GetId() uint64
func (*GetSystemRequest) ProtoMessage ¶
func (*GetSystemRequest) ProtoMessage()
func (*GetSystemRequest) ProtoReflect ¶
func (x *GetSystemRequest) ProtoReflect() protoreflect.Message
func (*GetSystemRequest) Reset ¶
func (x *GetSystemRequest) Reset()
func (*GetSystemRequest) String ¶
func (x *GetSystemRequest) String() string
func (*GetSystemRequest) Validate ¶
func (m *GetSystemRequest) Validate() error
Validate checks the field values on GetSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetSystemRequest) ValidateAll ¶
func (m *GetSystemRequest) ValidateAll() error
ValidateAll checks the field values on GetSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSystemRequestMultiError, or nil if none found.
type GetSystemRequestMultiError ¶
type GetSystemRequestMultiError []error
GetSystemRequestMultiError is an error wrapping multiple validation errors returned by GetSystemRequest.ValidateAll() if the designated constraints aren't met.
func (GetSystemRequestMultiError) AllErrors ¶
func (m GetSystemRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSystemRequestMultiError) Error ¶
func (m GetSystemRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSystemRequestValidationError ¶
type GetSystemRequestValidationError struct {
// contains filtered or unexported fields
}
GetSystemRequestValidationError is the validation error returned by GetSystemRequest.Validate if the designated constraints aren't met.
func (GetSystemRequestValidationError) Cause ¶
func (e GetSystemRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSystemRequestValidationError) Error ¶
func (e GetSystemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSystemRequestValidationError) ErrorName ¶
func (e GetSystemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSystemRequestValidationError) Field ¶
func (e GetSystemRequestValidationError) Field() string
Field function returns field value.
func (GetSystemRequestValidationError) Key ¶
func (e GetSystemRequestValidationError) Key() bool
Key function returns key value.
func (GetSystemRequestValidationError) Reason ¶
func (e GetSystemRequestValidationError) Reason() string
Reason function returns reason value.
type GrantType ¶
type GrantType int32
Grant type
func (GrantType) Descriptor ¶
func (GrantType) Descriptor() protoreflect.EnumDescriptor
func (GrantType) EnumDescriptor
deprecated
func (GrantType) Number ¶
func (x GrantType) Number() protoreflect.EnumNumber
func (GrantType) Type ¶
func (GrantType) Type() protoreflect.EnumType
type ListSystemResponse ¶
type ListSystemResponse struct { Items []*System `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
Response - List of system settings
func (*ListSystemResponse) Descriptor
deprecated
func (*ListSystemResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSystemResponse.ProtoReflect.Descriptor instead.
func (*ListSystemResponse) GetItems ¶
func (x *ListSystemResponse) GetItems() []*System
func (*ListSystemResponse) GetTotal ¶
func (x *ListSystemResponse) GetTotal() int32
func (*ListSystemResponse) ProtoMessage ¶
func (*ListSystemResponse) ProtoMessage()
func (*ListSystemResponse) ProtoReflect ¶
func (x *ListSystemResponse) ProtoReflect() protoreflect.Message
func (*ListSystemResponse) Reset ¶
func (x *ListSystemResponse) Reset()
func (*ListSystemResponse) String ¶
func (x *ListSystemResponse) String() string
func (*ListSystemResponse) Validate ¶
func (m *ListSystemResponse) Validate() error
Validate checks the field values on ListSystemResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListSystemResponse) ValidateAll ¶
func (m *ListSystemResponse) ValidateAll() error
ValidateAll checks the field values on ListSystemResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListSystemResponseMultiError, or nil if none found.
type ListSystemResponseMultiError ¶
type ListSystemResponseMultiError []error
ListSystemResponseMultiError is an error wrapping multiple validation errors returned by ListSystemResponse.ValidateAll() if the designated constraints aren't met.
func (ListSystemResponseMultiError) AllErrors ¶
func (m ListSystemResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSystemResponseMultiError) Error ¶
func (m ListSystemResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSystemResponseValidationError ¶
type ListSystemResponseValidationError struct {
// contains filtered or unexported fields
}
ListSystemResponseValidationError is the validation error returned by ListSystemResponse.Validate if the designated constraints aren't met.
func (ListSystemResponseValidationError) Cause ¶
func (e ListSystemResponseValidationError) Cause() error
Cause function returns cause value.
func (ListSystemResponseValidationError) Error ¶
func (e ListSystemResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListSystemResponseValidationError) ErrorName ¶
func (e ListSystemResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListSystemResponseValidationError) Field ¶
func (e ListSystemResponseValidationError) Field() string
Field function returns field value.
func (ListSystemResponseValidationError) Key ¶
func (e ListSystemResponseValidationError) Key() bool
Key function returns key value.
func (ListSystemResponseValidationError) Reason ¶
func (e ListSystemResponseValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { UserName string `protobuf:"bytes,1,opt,name=user_name,proto3" json:"user_name,omitempty"` // Username, required. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // User's password, required. GrantType string `protobuf:"bytes,3,opt,name=grant_type,proto3" json:"grant_type,omitempty"` // Authorization type, the value here is fixed to "password", required. Scope *string `protobuf:"bytes,4,opt,name=scope,proto3,oneof" json:"scope,omitempty"` // A space-separated list of ranges. If not provided, scope authorizes any scope, defaulting to an empty list. ClientId *string `protobuf:"bytes,5,opt,name=client_id,proto3,oneof" json:"client_id,omitempty"` ClientSecret *string `protobuf:"bytes,6,opt,name=client_secret,proto3,oneof" json:"client_secret,omitempty"` // contains filtered or unexported fields }
User background login - request
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetClientId ¶
func (x *LoginRequest) GetClientId() string
func (*LoginRequest) GetClientSecret ¶
func (x *LoginRequest) GetClientSecret() string
func (*LoginRequest) GetGrantType ¶
func (x *LoginRequest) GetGrantType() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetScope ¶
func (x *LoginRequest) GetScope() string
func (*LoginRequest) GetUserName ¶
func (x *LoginRequest) GetUserName() 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
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,proto3" json:"access_token,omitempty"` // Access token, required. RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"` // Refresh token, used to obtain the next access token, optional. TokenType string `protobuf:"bytes,3,opt,name=token_type,proto3" json:"token_type,omitempty"` // Token type, this value is case-insensitive, required, and can be bearer type or mac type. ExpiresIn *int64 `protobuf:"varint,4,opt,name=expires_in,proto3,oneof" json:"expires_in,omitempty"` // Token validity time, unit is seconds. If the access token expires, the server should reply with the duration of the access token granted. If this parameter is omitted, the expiration time must be set in other ways. Scope *string `protobuf:"bytes,5,opt,name=scope,proto3,oneof" json:"scope,omitempty"` // A space-separated list of user grant scopes. If not provided, scope authorizes any scope, defaulting to an empty list. // contains filtered or unexported fields }
User background login - response
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) GetExpiresIn ¶
func (x *LoginResponse) GetExpiresIn() int64
func (*LoginResponse) GetRefreshToken ¶
func (x *LoginResponse) GetRefreshToken() string
func (*LoginResponse) GetScope ¶
func (x *LoginResponse) GetScope() string
func (*LoginResponse) GetTokenType ¶
func (x *LoginResponse) GetTokenType() 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
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type LogoutRequest ¶
type LogoutRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Logout - request
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetId ¶
func (x *LogoutRequest) GetId() uint32
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
func (*LogoutRequest) Validate ¶
func (m *LogoutRequest) Validate() error
Validate checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LogoutRequest) ValidateAll ¶
func (m *LogoutRequest) ValidateAll() error
ValidateAll checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutRequestMultiError, or nil if none found.
type LogoutRequestMultiError ¶
type LogoutRequestMultiError []error
LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.
func (LogoutRequestMultiError) AllErrors ¶
func (m LogoutRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRequestMultiError) Error ¶
func (m LogoutRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRequestValidationError ¶
type LogoutRequestValidationError struct {
// contains filtered or unexported fields
}
LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.
func (LogoutRequestValidationError) Cause ¶
func (e LogoutRequestValidationError) Cause() error
Cause function returns cause value.
func (LogoutRequestValidationError) Error ¶
func (e LogoutRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRequestValidationError) ErrorName ¶
func (e LogoutRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRequestValidationError) Field ¶
func (e LogoutRequestValidationError) Field() string
Field function returns field value.
func (LogoutRequestValidationError) Key ¶
func (e LogoutRequestValidationError) Key() bool
Key function returns key value.
func (LogoutRequestValidationError) Reason ¶
func (e LogoutRequestValidationError) Reason() string
Reason function returns reason value.
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"` // Refresh token, used to obtain the next access token, required. GrantType string `protobuf:"bytes,2,opt,name=grant_type,proto3" json:"grant_type,omitempty"` // Authorization type, the value here is fixed to "refresh_token", required. Scope *string `protobuf:"bytes,3,opt,name=scope,proto3,oneof" json:"scope,omitempty"` // A space-separated list of ranges. If not provided, scope authorizes any scope, defaulting to an empty list. ClientId *string `protobuf:"bytes,5,opt,name=client_id,proto3,oneof" json:"client_id,omitempty"` ClientSecret *string `protobuf:"bytes,6,opt,name=client_secret,proto3,oneof" json:"client_secret,omitempty"` // contains filtered or unexported fields }
User refresh token - request
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetClientId ¶
func (x *RefreshTokenRequest) GetClientId() string
func (*RefreshTokenRequest) GetClientSecret ¶
func (x *RefreshTokenRequest) GetClientSecret() string
func (*RefreshTokenRequest) GetGrantType ¶
func (x *RefreshTokenRequest) GetGrantType() string
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) GetScope ¶
func (x *RefreshTokenRequest) GetScope() 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
func (*RefreshTokenRequest) Validate ¶
func (m *RefreshTokenRequest) Validate() error
Validate checks the field values on RefreshTokenRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefreshTokenRequest) ValidateAll ¶
func (m *RefreshTokenRequest) ValidateAll() error
ValidateAll checks the field values on RefreshTokenRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenRequestMultiError, or nil if none found.
type RefreshTokenRequestMultiError ¶
type RefreshTokenRequestMultiError []error
RefreshTokenRequestMultiError is an error wrapping multiple validation errors returned by RefreshTokenRequest.ValidateAll() if the designated constraints aren't met.
func (RefreshTokenRequestMultiError) AllErrors ¶
func (m RefreshTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshTokenRequestMultiError) Error ¶
func (m RefreshTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshTokenRequestValidationError ¶
type RefreshTokenRequestValidationError struct {
// contains filtered or unexported fields
}
RefreshTokenRequestValidationError is the validation error returned by RefreshTokenRequest.Validate if the designated constraints aren't met.
func (RefreshTokenRequestValidationError) Cause ¶
func (e RefreshTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (RefreshTokenRequestValidationError) Error ¶
func (e RefreshTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshTokenRequestValidationError) ErrorName ¶
func (e RefreshTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshTokenRequestValidationError) Field ¶
func (e RefreshTokenRequestValidationError) Field() string
Field function returns field value.
func (RefreshTokenRequestValidationError) Key ¶
func (e RefreshTokenRequestValidationError) Key() bool
Key function returns key value.
func (RefreshTokenRequestValidationError) Reason ¶
func (e RefreshTokenRequestValidationError) Reason() string
Reason function returns reason value.
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"` // Refresh token, used to obtain the next access token, optional. GrantType string `protobuf:"bytes,2,opt,name=grant_type,proto3" json:"grant_type,omitempty"` // Authorization type, the value here is fixed to "refresh token", required. // contains filtered or unexported fields }
User refresh token - response
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetGrantType ¶
func (x *RefreshTokenResponse) GetGrantType() 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
func (*RefreshTokenResponse) Validate ¶
func (m *RefreshTokenResponse) Validate() error
Validate checks the field values on RefreshTokenResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefreshTokenResponse) ValidateAll ¶
func (m *RefreshTokenResponse) ValidateAll() error
ValidateAll checks the field values on RefreshTokenResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenResponseMultiError, or nil if none found.
type RefreshTokenResponseMultiError ¶
type RefreshTokenResponseMultiError []error
RefreshTokenResponseMultiError is an error wrapping multiple validation errors returned by RefreshTokenResponse.ValidateAll() if the designated constraints aren't met.
func (RefreshTokenResponseMultiError) AllErrors ¶
func (m RefreshTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshTokenResponseMultiError) Error ¶
func (m RefreshTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshTokenResponseValidationError ¶
type RefreshTokenResponseValidationError struct {
// contains filtered or unexported fields
}
RefreshTokenResponseValidationError is the validation error returned by RefreshTokenResponse.Validate if the designated constraints aren't met.
func (RefreshTokenResponseValidationError) Cause ¶
func (e RefreshTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (RefreshTokenResponseValidationError) Error ¶
func (e RefreshTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshTokenResponseValidationError) ErrorName ¶
func (e RefreshTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshTokenResponseValidationError) Field ¶
func (e RefreshTokenResponseValidationError) Field() string
Field function returns field value.
func (RefreshTokenResponseValidationError) Key ¶
func (e RefreshTokenResponseValidationError) Key() bool
Key function returns key value.
func (RefreshTokenResponseValidationError) Reason ¶
func (e RefreshTokenResponseValidationError) Reason() string
Reason function returns reason value.
type System ¶
type System struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Theme *int32 `protobuf:"varint,2,opt,name=theme,proto3,oneof" json:"theme,omitempty"` Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` Keywords *string `protobuf:"bytes,4,opt,name=keywords,proto3,oneof" json:"keywords,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` RecordNumber *string `protobuf:"bytes,6,opt,name=record_number,json=recordNumber,proto3,oneof" json:"record_number,omitempty"` // contains filtered or unexported fields }
func (*System) Descriptor
deprecated
func (*System) GetDescription ¶
func (*System) GetKeywords ¶
func (*System) GetRecordNumber ¶
func (*System) ProtoMessage ¶
func (*System) ProtoMessage()
func (*System) ProtoReflect ¶
func (x *System) ProtoReflect() protoreflect.Message
func (*System) Validate ¶
Validate checks the field values on System with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*System) ValidateAll ¶
ValidateAll checks the field values on System with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SystemMultiError, or nil if none found.
type SystemMultiError ¶
type SystemMultiError []error
SystemMultiError is an error wrapping multiple validation errors returned by System.ValidateAll() if the designated constraints aren't met.
func (SystemMultiError) AllErrors ¶
func (m SystemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SystemMultiError) Error ¶
func (m SystemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SystemServiceClient ¶
type SystemServiceClient interface { // Get a list of system settings ListSystem(ctx context.Context, in *v1.PagingRequest, opts ...grpc.CallOption) (*ListSystemResponse, error) // Get system setting data GetSystem(ctx context.Context, in *GetSystemRequest, opts ...grpc.CallOption) (*System, error) // Create system settings CreateSystem(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*System, error) // Update system settings UpdateSystem(ctx context.Context, in *UpdateSystemRequest, opts ...grpc.CallOption) (*System, error) // Delete system settings DeleteSystem(ctx context.Context, in *DeleteSystemRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
SystemServiceClient is the client API for SystemService 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.
System configuration service
func NewSystemServiceClient ¶
func NewSystemServiceClient(cc grpc.ClientConnInterface) SystemServiceClient
type SystemServiceHTTPClient ¶
type SystemServiceHTTPClient interface { CreateSystem(ctx context.Context, req *CreateSystemRequest, opts ...http.CallOption) (rsp *System, err error) DeleteSystem(ctx context.Context, req *DeleteSystemRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetSystem(ctx context.Context, req *GetSystemRequest, opts ...http.CallOption) (rsp *System, err error) ListSystem(ctx context.Context, req *v1.PagingRequest, opts ...http.CallOption) (rsp *ListSystemResponse, err error) UpdateSystem(ctx context.Context, req *UpdateSystemRequest, opts ...http.CallOption) (rsp *System, err error) }
func NewSystemServiceHTTPClient ¶
func NewSystemServiceHTTPClient(client *http.Client) SystemServiceHTTPClient
type SystemServiceHTTPClientImpl ¶
type SystemServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SystemServiceHTTPClientImpl) CreateSystem ¶
func (c *SystemServiceHTTPClientImpl) CreateSystem(ctx context.Context, in *CreateSystemRequest, opts ...http.CallOption) (*System, error)
func (*SystemServiceHTTPClientImpl) DeleteSystem ¶
func (c *SystemServiceHTTPClientImpl) DeleteSystem(ctx context.Context, in *DeleteSystemRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*SystemServiceHTTPClientImpl) GetSystem ¶
func (c *SystemServiceHTTPClientImpl) GetSystem(ctx context.Context, in *GetSystemRequest, opts ...http.CallOption) (*System, error)
func (*SystemServiceHTTPClientImpl) ListSystem ¶
func (c *SystemServiceHTTPClientImpl) ListSystem(ctx context.Context, in *v1.PagingRequest, opts ...http.CallOption) (*ListSystemResponse, error)
func (*SystemServiceHTTPClientImpl) UpdateSystem ¶
func (c *SystemServiceHTTPClientImpl) UpdateSystem(ctx context.Context, in *UpdateSystemRequest, opts ...http.CallOption) (*System, error)
type SystemServiceHTTPServer ¶
type SystemServiceHTTPServer interface { // CreateSystem Create system settings CreateSystem(context.Context, *CreateSystemRequest) (*System, error) // DeleteSystem Delete system settings DeleteSystem(context.Context, *DeleteSystemRequest) (*emptypb.Empty, error) // GetSystem Get system setting data GetSystem(context.Context, *GetSystemRequest) (*System, error) // ListSystem Get a list of system settings ListSystem(context.Context, *v1.PagingRequest) (*ListSystemResponse, error) // UpdateSystem Update system settings UpdateSystem(context.Context, *UpdateSystemRequest) (*System, error) }
type SystemServiceServer ¶
type SystemServiceServer interface { // Get a list of system settings ListSystem(context.Context, *v1.PagingRequest) (*ListSystemResponse, error) // Get system setting data GetSystem(context.Context, *GetSystemRequest) (*System, error) // Create system settings CreateSystem(context.Context, *CreateSystemRequest) (*System, error) // Update system settings UpdateSystem(context.Context, *UpdateSystemRequest) (*System, error) // Delete system settings DeleteSystem(context.Context, *DeleteSystemRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
SystemServiceServer is the server API for SystemService service. All implementations must embed UnimplementedSystemServiceServer for forward compatibility
System configuration service
type SystemValidationError ¶
type SystemValidationError struct {
// contains filtered or unexported fields
}
SystemValidationError is the validation error returned by System.Validate if the designated constraints aren't met.
func (SystemValidationError) Cause ¶
func (e SystemValidationError) Cause() error
Cause function returns cause value.
func (SystemValidationError) Error ¶
func (e SystemValidationError) Error() string
Error satisfies the builtin error interface
func (SystemValidationError) ErrorName ¶
func (e SystemValidationError) ErrorName() string
ErrorName returns error name.
func (SystemValidationError) Field ¶
func (e SystemValidationError) Field() string
Field function returns field value.
func (SystemValidationError) Key ¶
func (e SystemValidationError) Key() bool
Key function returns key value.
func (SystemValidationError) Reason ¶
func (e SystemValidationError) Reason() string
Reason function returns reason value.
type TokenType ¶
type TokenType int32
Token type
func (TokenType) Descriptor ¶
func (TokenType) Descriptor() protoreflect.EnumDescriptor
func (TokenType) EnumDescriptor
deprecated
func (TokenType) Number ¶
func (x TokenType) Number() protoreflect.EnumNumber
func (TokenType) Type ¶
func (TokenType) Type() protoreflect.EnumType
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServiceServer) GetMe ¶
func (UnimplementedAuthenticationServiceServer) GetMe(context.Context, *GetMeRequest) (*v1.User, error)
func (UnimplementedAuthenticationServiceServer) Login ¶
func (UnimplementedAuthenticationServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthenticationServiceServer) Logout ¶
func (UnimplementedAuthenticationServiceServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
type UnimplementedSystemServiceServer ¶
type UnimplementedSystemServiceServer struct { }
UnimplementedSystemServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSystemServiceServer) CreateSystem ¶
func (UnimplementedSystemServiceServer) CreateSystem(context.Context, *CreateSystemRequest) (*System, error)
func (UnimplementedSystemServiceServer) DeleteSystem ¶
func (UnimplementedSystemServiceServer) DeleteSystem(context.Context, *DeleteSystemRequest) (*emptypb.Empty, error)
func (UnimplementedSystemServiceServer) GetSystem ¶
func (UnimplementedSystemServiceServer) GetSystem(context.Context, *GetSystemRequest) (*System, error)
func (UnimplementedSystemServiceServer) ListSystem ¶
func (UnimplementedSystemServiceServer) ListSystem(context.Context, *v1.PagingRequest) (*ListSystemResponse, error)
func (UnimplementedSystemServiceServer) UpdateSystem ¶
func (UnimplementedSystemServiceServer) UpdateSystem(context.Context, *UpdateSystemRequest) (*System, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *v11.CreateUserRequest) (*v11.User, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *v11.DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *v11.GetUserRequest) (*v11.User, error)
func (UnimplementedUserServiceServer) ListUser ¶
func (UnimplementedUserServiceServer) ListUser(context.Context, *v1.PagingRequest) (*v11.ListUserResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *v11.UpdateUserRequest) (*v11.User, error)
type UnsafeAuthenticationServiceServer ¶
type UnsafeAuthenticationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServiceServer will result in compilation errors.
type UnsafeSystemServiceServer ¶
type UnsafeSystemServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSystemServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateSystemRequest ¶
type UpdateSystemRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` System *System `protobuf:"bytes,2,opt,name=system,proto3" json:"system,omitempty"` OperatorId *uint64 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3,oneof" json:"operator_id,omitempty"` // contains filtered or unexported fields }
Request - Update system settings
func (*UpdateSystemRequest) Descriptor
deprecated
func (*UpdateSystemRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSystemRequest.ProtoReflect.Descriptor instead.
func (*UpdateSystemRequest) GetId ¶
func (x *UpdateSystemRequest) GetId() uint64
func (*UpdateSystemRequest) GetOperatorId ¶
func (x *UpdateSystemRequest) GetOperatorId() uint64
func (*UpdateSystemRequest) GetSystem ¶
func (x *UpdateSystemRequest) GetSystem() *System
func (*UpdateSystemRequest) ProtoMessage ¶
func (*UpdateSystemRequest) ProtoMessage()
func (*UpdateSystemRequest) ProtoReflect ¶
func (x *UpdateSystemRequest) ProtoReflect() protoreflect.Message
func (*UpdateSystemRequest) Reset ¶
func (x *UpdateSystemRequest) Reset()
func (*UpdateSystemRequest) String ¶
func (x *UpdateSystemRequest) String() string
func (*UpdateSystemRequest) Validate ¶
func (m *UpdateSystemRequest) Validate() error
Validate checks the field values on UpdateSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateSystemRequest) ValidateAll ¶
func (m *UpdateSystemRequest) ValidateAll() error
ValidateAll checks the field values on UpdateSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateSystemRequestMultiError, or nil if none found.
type UpdateSystemRequestMultiError ¶
type UpdateSystemRequestMultiError []error
UpdateSystemRequestMultiError is an error wrapping multiple validation errors returned by UpdateSystemRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateSystemRequestMultiError) AllErrors ¶
func (m UpdateSystemRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateSystemRequestMultiError) Error ¶
func (m UpdateSystemRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateSystemRequestValidationError ¶
type UpdateSystemRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateSystemRequestValidationError is the validation error returned by UpdateSystemRequest.Validate if the designated constraints aren't met.
func (UpdateSystemRequestValidationError) Cause ¶
func (e UpdateSystemRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateSystemRequestValidationError) Error ¶
func (e UpdateSystemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSystemRequestValidationError) ErrorName ¶
func (e UpdateSystemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSystemRequestValidationError) Field ¶
func (e UpdateSystemRequestValidationError) Field() string
Field function returns field value.
func (UpdateSystemRequestValidationError) Key ¶
func (e UpdateSystemRequestValidationError) Key() bool
Key function returns key value.
func (UpdateSystemRequestValidationError) Reason ¶
func (e UpdateSystemRequestValidationError) Reason() string
Reason function returns reason value.
type UserServiceClient ¶
type UserServiceClient interface { // List of users for admin ListUser(ctx context.Context, in *v1.PagingRequest, opts ...grpc.CallOption) (*v11.ListUserResponse, error) // Get user detail for admin GetUser(ctx context.Context, in *v11.GetUserRequest, opts ...grpc.CallOption) (*v11.User, error) // Create user CreateUser(ctx context.Context, in *v11.CreateUserRequest, opts ...grpc.CallOption) (*v11.User, error) // Update user for admin UpdateUser(ctx context.Context, in *v11.UpdateUserRequest, opts ...grpc.CallOption) (*v11.User, error) // Delete user for admin DeleteUser(ctx context.Context, in *v11.DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserServiceClient is the client API for UserService 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.
The user service definition.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPClient ¶
type UserServiceHTTPClient interface { CreateUser(ctx context.Context, req *v11.CreateUserRequest, opts ...http.CallOption) (rsp *v11.User, err error) DeleteUser(ctx context.Context, req *v11.DeleteUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetUser(ctx context.Context, req *v11.GetUserRequest, opts ...http.CallOption) (rsp *v11.User, err error) ListUser(ctx context.Context, req *v1.PagingRequest, opts ...http.CallOption) (rsp *v11.ListUserResponse, err error) UpdateUser(ctx context.Context, req *v11.UpdateUserRequest, opts ...http.CallOption) (rsp *v11.User, err error) }
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) CreateUser ¶
func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *v11.CreateUserRequest, opts ...http.CallOption) (*v11.User, error)
func (*UserServiceHTTPClientImpl) DeleteUser ¶
func (c *UserServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *v11.DeleteUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserServiceHTTPClientImpl) GetUser ¶
func (c *UserServiceHTTPClientImpl) GetUser(ctx context.Context, in *v11.GetUserRequest, opts ...http.CallOption) (*v11.User, error)
func (*UserServiceHTTPClientImpl) ListUser ¶
func (c *UserServiceHTTPClientImpl) ListUser(ctx context.Context, in *v1.PagingRequest, opts ...http.CallOption) (*v11.ListUserResponse, error)
func (*UserServiceHTTPClientImpl) UpdateUser ¶
func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *v11.UpdateUserRequest, opts ...http.CallOption) (*v11.User, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { // CreateUser Create user CreateUser(context.Context, *v11.CreateUserRequest) (*v11.User, error) // DeleteUser Delete user for admin DeleteUser(context.Context, *v11.DeleteUserRequest) (*emptypb.Empty, error) // GetUser Get user detail for admin GetUser(context.Context, *v11.GetUserRequest) (*v11.User, error) // ListUser List of users for admin ListUser(context.Context, *v1.PagingRequest) (*v11.ListUserResponse, error) // UpdateUser Update user for admin UpdateUser(context.Context, *v11.UpdateUserRequest) (*v11.User, error) }
type UserServiceServer ¶
type UserServiceServer interface { // List of users for admin ListUser(context.Context, *v1.PagingRequest) (*v11.ListUserResponse, error) // Get user detail for admin GetUser(context.Context, *v11.GetUserRequest) (*v11.User, error) // Create user CreateUser(context.Context, *v11.CreateUserRequest) (*v11.User, error) // Update user for admin UpdateUser(context.Context, *v11.UpdateUserRequest) (*v11.User, error) // Delete user for admin DeleteUser(context.Context, *v11.DeleteUserRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
The user service definition.
Source Files
¶
- admin.pb.go
- admin.pb.validate.go
- authentication.pb.go
- authentication.pb.validate.go
- authentication_grpc.pb.go
- authentication_http.pb.go
- error.pb.go
- error.pb.validate.go
- error_errors.pb.go
- system.pb.go
- system.pb.validate.go
- system_grpc.pb.go
- system_http.pb.go
- user.pb.go
- user.pb.validate.go
- user_grpc.pb.go
- user_http.pb.go