adminv1

package
v0.0.0-...-f0a7105 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthenticationService_Login_FullMethodName  = "/admin.v1.AuthenticationService/Login"
	AuthenticationService_Logout_FullMethodName = "/admin.v1.AuthenticationService/Logout"
	AuthenticationService_GetMe_FullMethodName  = "/admin.v1.AuthenticationService/GetMe"
)
View Source
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"
)
View Source
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"
)
View Source
const OperationAuthenticationServiceGetMe = "/admin.v1.AuthenticationService/GetMe"
View Source
const OperationAuthenticationServiceLogin = "/admin.v1.AuthenticationService/Login"
View Source
const OperationAuthenticationServiceLogout = "/admin.v1.AuthenticationService/Logout"
View Source
const OperationSystemServiceCreateSystem = "/admin.v1.SystemService/CreateSystem"
View Source
const OperationSystemServiceDeleteSystem = "/admin.v1.SystemService/DeleteSystem"
View Source
const OperationSystemServiceGetSystem = "/admin.v1.SystemService/GetSystem"
View Source
const OperationSystemServiceListSystem = "/admin.v1.SystemService/ListSystem"
View Source
const OperationSystemServiceUpdateSystem = "/admin.v1.SystemService/UpdateSystem"
View Source
const OperationUserServiceCreateUser = "/admin.v1.UserService/CreateUser"
View Source
const OperationUserServiceDeleteUser = "/admin.v1.UserService/DeleteUser"
View Source
const OperationUserServiceGetUser = "/admin.v1.UserService/GetUser"
View Source
const OperationUserServiceListUser = "/admin.v1.UserService/ListUser"
View Source
const OperationUserServiceUpdateUser = "/admin.v1.UserService/UpdateUser"

Variables

View Source
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.

View Source
var (
	TokenType_name = map[int32]string{
		0: "bearer",
		1: "mac",
	}
	TokenType_value = map[string]int32{
		"bearer": 0,
		"mac":    1,
	}
)

Enum value maps for TokenType.

View Source
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.

View Source
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)

View Source
var File_admin_v1_admin_proto protoreflect.FileDescriptor
View Source
var File_admin_v1_authentication_proto protoreflect.FileDescriptor
View Source
var File_admin_v1_error_proto protoreflect.FileDescriptor
View Source
var File_admin_v1_system_proto protoreflect.FileDescriptor
View Source
var File_admin_v1_user_proto protoreflect.FileDescriptor
View Source
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)

View Source
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

func ErrorAccessForbidden(format string, args ...interface{}) *errors.Error

403

func ErrorBadRequest

func ErrorBadRequest(format string, args ...interface{}) *errors.Error

400

func ErrorInternalServerError

func ErrorInternalServerError(format string, args ...interface{}) *errors.Error

500

func ErrorInvalidPassword

func ErrorInvalidPassword(format string, args ...interface{}) *errors.Error

密码无效

func ErrorInvalidToken

func ErrorInvalidToken(format string, args ...interface{}) *errors.Error

token无效

func ErrorInvalidUserid

func ErrorInvalidUserid(format string, args ...interface{}) *errors.Error

用户ID无效

func ErrorMethodNotAllowed

func ErrorMethodNotAllowed(format string, args ...interface{}) *errors.Error

405

func ErrorNetworkError

func ErrorNetworkError(format string, args ...interface{}) *errors.Error

502

func ErrorNetworkTimeout

func ErrorNetworkTimeout(format string, args ...interface{}) *errors.Error

504

func ErrorNotImplemented

func ErrorNotImplemented(format string, args ...interface{}) *errors.Error

501

func ErrorNotLoggedIn

func ErrorNotLoggedIn(format string, args ...interface{}) *errors.Error

401

func ErrorRequestNotSupport

func ErrorRequestNotSupport(format string, args ...interface{}) *errors.Error

505

func ErrorRequestTimeout

func ErrorRequestTimeout(format string, args ...interface{}) *errors.Error

408

func ErrorResourceNotFound

func ErrorResourceNotFound(format string, args ...interface{}) *errors.Error

404

func ErrorServiceUnavailable

func ErrorServiceUnavailable(format string, args ...interface{}) *errors.Error

503

func ErrorTokenExpired

func ErrorTokenExpired(format string, args ...interface{}) *errors.Error

token过期

func ErrorTokenNotExist

func ErrorTokenNotExist(format string, args ...interface{}) *errors.Error

token不存在

func ErrorUserFreeze

func ErrorUserFreeze(format string, args ...interface{}) *errors.Error

账号冻结

func ErrorUserNotExist

func ErrorUserNotExist(format string, args ...interface{}) *errors.Error

用户不存在

func IsAccessForbidden

func IsAccessForbidden(err error) bool

403

func IsBadRequest

func IsBadRequest(err error) bool

400

func IsInternalServerError

func IsInternalServerError(err error) bool

500

func IsInvalidPassword

func IsInvalidPassword(err error) bool

密码无效

func IsInvalidToken

func IsInvalidToken(err error) bool

token无效

func IsInvalidUserid

func IsInvalidUserid(err error) bool

用户ID无效

func IsMethodNotAllowed

func IsMethodNotAllowed(err error) bool

405

func IsNetworkError

func IsNetworkError(err error) bool

502

func IsNetworkTimeout

func IsNetworkTimeout(err error) bool

504

func IsNotImplemented

func IsNotImplemented(err error) bool

501

func IsNotLoggedIn

func IsNotLoggedIn(err error) bool

401

func IsRequestNotSupport

func IsRequestNotSupport(err error) bool

505

func IsRequestTimeout

func IsRequestTimeout(err error) bool

408

func IsResourceNotFound

func IsResourceNotFound(err error) bool

404

func IsServiceUnavailable

func IsServiceUnavailable(err error) bool

503

func IsTokenExpired

func IsTokenExpired(err error) bool

token过期

func IsTokenNotExist

func IsTokenNotExist(err error) bool

token不存在

func IsUserFreeze

func IsUserFreeze(err error) bool

账号冻结

func IsUserNotExist

func IsUserNotExist(err error) bool

用户不存在

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) Enum

func (AdminErrorReason) EnumDescriptor deprecated

func (AdminErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use AdminErrorReason.Descriptor instead.

func (AdminErrorReason) Number

func (AdminErrorReason) String

func (x AdminErrorReason) String() string

func (AdminErrorReason) Type

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

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 (*AuthenticationServiceHTTPClientImpl) Login

func (*AuthenticationServiceHTTPClientImpl) Logout

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

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

Cause function returns cause value.

func (CreateSystemRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateSystemRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateSystemRequestValidationError) Field

Field function returns field value.

func (CreateSystemRequestValidationError) Key

Key function returns key value.

func (CreateSystemRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteSystemRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteSystemRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteSystemRequestValidationError) Field

Field function returns field value.

func (DeleteSystemRequestValidationError) Key

Key function returns key value.

func (DeleteSystemRequestValidationError) Reason

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

Cause function returns cause value.

func (GetMeRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMeRequestValidationError) ErrorName

func (e GetMeRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetMeRequestValidationError) Field

Field function returns field value.

func (GetMeRequestValidationError) Key

Key function returns key value.

func (GetMeRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetSystemRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSystemRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSystemRequestValidationError) Field

Field function returns field value.

func (GetSystemRequestValidationError) Key

Key function returns key value.

func (GetSystemRequestValidationError) Reason

Reason function returns reason value.

type GrantType

type GrantType int32

Grant type

const (
	GrantType_password           GrantType = 0 // Resource Owner Password Credentials Grant
	GrantType_client_credentials GrantType = 1 // Client Credentials Grant
	GrantType_refresh_token      GrantType = 2 // Refresh Token
)

func (GrantType) Descriptor

func (GrantType) Descriptor() protoreflect.EnumDescriptor

func (GrantType) Enum

func (x GrantType) Enum() *GrantType

func (GrantType) EnumDescriptor deprecated

func (GrantType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GrantType.Descriptor instead.

func (GrantType) Number

func (x GrantType) Number() protoreflect.EnumNumber

func (GrantType) String

func (x GrantType) String() string

func (GrantType) Type

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

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

Cause function returns cause value.

func (ListSystemResponseValidationError) Error

Error satisfies the builtin error interface

func (ListSystemResponseValidationError) ErrorName

ErrorName returns error name.

func (ListSystemResponseValidationError) Field

Field function returns field value.

func (ListSystemResponseValidationError) Key

Key function returns key value.

func (ListSystemResponseValidationError) Reason

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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

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

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

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

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RefreshTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenRequestValidationError) Field

Field function returns field value.

func (RefreshTokenRequestValidationError) Key

Key function returns key value.

func (RefreshTokenRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RefreshTokenResponseValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenResponseValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenResponseValidationError) Field

Field function returns field value.

func (RefreshTokenResponseValidationError) Key

Key function returns key value.

func (RefreshTokenResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use System.ProtoReflect.Descriptor instead.

func (*System) GetDescription

func (x *System) GetDescription() string

func (*System) GetId

func (x *System) GetId() uint64

func (*System) GetKeywords

func (x *System) GetKeywords() string

func (*System) GetRecordNumber

func (x *System) GetRecordNumber() string

func (*System) GetTheme

func (x *System) GetTheme() int32

func (*System) GetTitle

func (x *System) GetTitle() string

func (*System) ProtoMessage

func (*System) ProtoMessage()

func (*System) ProtoReflect

func (x *System) ProtoReflect() protoreflect.Message

func (*System) Reset

func (x *System) Reset()

func (*System) String

func (x *System) String() string

func (*System) Validate

func (m *System) Validate() error

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

func (m *System) ValidateAll() error

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

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 (*SystemServiceHTTPClientImpl) DeleteSystem

func (*SystemServiceHTTPClientImpl) GetSystem

func (*SystemServiceHTTPClientImpl) ListSystem

func (*SystemServiceHTTPClientImpl) UpdateSystem

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

const (
	TokenType_bearer TokenType = 0 //
	TokenType_mac    TokenType = 1 //
)

func (TokenType) Descriptor

func (TokenType) Descriptor() protoreflect.EnumDescriptor

func (TokenType) Enum

func (x TokenType) Enum() *TokenType

func (TokenType) EnumDescriptor deprecated

func (TokenType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TokenType.Descriptor instead.

func (TokenType) Number

func (x TokenType) Number() protoreflect.EnumNumber

func (TokenType) String

func (x TokenType) String() string

func (TokenType) Type

type UnimplementedAuthenticationServiceServer

type UnimplementedAuthenticationServiceServer struct {
}

UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthenticationServiceServer) GetMe

func (UnimplementedAuthenticationServiceServer) Login

func (UnimplementedAuthenticationServiceServer) Logout

type UnimplementedSystemServiceServer

type UnimplementedSystemServiceServer struct {
}

UnimplementedSystemServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSystemServiceServer) CreateSystem

func (UnimplementedSystemServiceServer) DeleteSystem

func (UnimplementedSystemServiceServer) GetSystem

func (UnimplementedSystemServiceServer) ListSystem

func (UnimplementedSystemServiceServer) UpdateSystem

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUser

func (UnimplementedUserServiceServer) UpdateUser

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

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

Cause function returns cause value.

func (UpdateSystemRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateSystemRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateSystemRequestValidationError) Field

Field function returns field value.

func (UpdateSystemRequestValidationError) Key

Key function returns key value.

func (UpdateSystemRequestValidationError) Reason

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.

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 (*UserServiceHTTPClientImpl) DeleteUser

func (*UserServiceHTTPClientImpl) GetUser

func (*UserServiceHTTPClientImpl) ListUser

func (*UserServiceHTTPClientImpl) UpdateUser

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL