Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterConfigurationHTTPServer(s *http.Server, srv ConfigurationHTTPServer)
- func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
- func RegisterSystemHTTPServer(s *http.Server, srv SystemHTTPServer)
- func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)
- type ConfigurationClient
- type ConfigurationHTTPClient
- type ConfigurationHTTPClientImpl
- func (c *ConfigurationHTTPClientImpl) GetConfig(ctx context.Context, in *RegisterConfigReq, opts ...http.CallOption) (*RegisterConfigReq, error)
- func (c *ConfigurationHTTPClientImpl) GetConfigList(ctx context.Context, in *GetConfigListReq, opts ...http.CallOption) (*GetConfigListResp, error)
- func (c *ConfigurationHTTPClientImpl) GetConfigPath(ctx context.Context, in *Req, opts ...http.CallOption) (*GetConfigPathResp, error)
- func (c *ConfigurationHTTPClientImpl) GetNameSpaceList(ctx context.Context, in *Req, opts ...http.CallOption) (*GetNameSpaceListResp, error)
- func (c *ConfigurationHTTPClientImpl) PostSaveConfig(ctx context.Context, in *RegisterConfigReq, opts ...http.CallOption) (*Result, error)
- func (c *ConfigurationHTTPClientImpl) RegisterConfig(ctx context.Context, in *RegisterConfigReq, opts ...http.CallOption) (*RegisterConfigReq, error)
- type ConfigurationHTTPServer
- type ConfigurationServer
- type Empty
- type EmptyMultiError
- type EmptyValidationError
- type GetConfigListReq
- type GetConfigListResp
- func (*GetConfigListResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigListResp) GetList() []*RegisterConfigReq
- func (*GetConfigListResp) ProtoMessage()
- func (x *GetConfigListResp) ProtoReflect() protoreflect.Message
- func (x *GetConfigListResp) Reset()
- func (x *GetConfigListResp) String() string
- type GetConfigPathResp
- type GetNameSpaceListResp
- func (*GetNameSpaceListResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetNameSpaceListResp) GetList() []string
- func (*GetNameSpaceListResp) ProtoMessage()
- func (x *GetNameSpaceListResp) ProtoReflect() protoreflect.Message
- func (x *GetNameSpaceListResp) Reset()
- func (x *GetNameSpaceListResp) String() string
- type IdPageReq
- func (*IdPageReq) Descriptor() ([]byte, []int)deprecated
- func (x *IdPageReq) GetId() int64
- func (x *IdPageReq) GetPage() int32
- func (x *IdPageReq) GetPageSize() int32
- func (*IdPageReq) ProtoMessage()
- func (x *IdPageReq) ProtoReflect() protoreflect.Message
- func (x *IdPageReq) Reset()
- func (x *IdPageReq) String() string
- func (m *IdPageReq) Validate() error
- func (m *IdPageReq) ValidateAll() error
- type IdPageReqMultiError
- type IdPageReqValidationError
- type IdReq
- type IdReqMultiError
- type IdReqValidationError
- type IdsReq
- type IdsReqMultiError
- type IdsReqValidationError
- type RegisterConfigReq
- func (*RegisterConfigReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterConfigReq) GetAppId() string
- func (x *RegisterConfigReq) GetAppName() string
- func (x *RegisterConfigReq) GetConfigType() string
- func (x *RegisterConfigReq) GetFormData() string
- func (x *RegisterConfigReq) GetIsIgnorePublic() bool
- func (x *RegisterConfigReq) GetNameSpace() string
- func (x *RegisterConfigReq) GetSchema() string
- func (*RegisterConfigReq) ProtoMessage()
- func (x *RegisterConfigReq) ProtoReflect() protoreflect.Message
- func (x *RegisterConfigReq) Reset()
- func (x *RegisterConfigReq) String() string
- type RegisterConfigResp
- type Req
- type ReqMultiError
- type ReqValidationError
- type Result
- type ResultMultiError
- type ResultValidationError
- type Results
- func (*Results) Descriptor() ([]byte, []int)deprecated
- func (x *Results) GetIds() []int64
- func (*Results) ProtoMessage()
- func (x *Results) ProtoReflect() protoreflect.Message
- func (x *Results) Reset()
- func (x *Results) String() string
- func (m *Results) Validate() error
- func (m *Results) ValidateAll() error
- type ResultsMultiError
- type ResultsValidationError
- type ServerConnectionConfig
- func (*ServerConnectionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConnectionConfig) GetMinio() *ServerConnectionConfig_Minio
- func (x *ServerConnectionConfig) GetNsqEndpoint() string
- func (x *ServerConnectionConfig) GetPg() *ServerConnectionConfig_PostgreSQL
- func (x *ServerConnectionConfig) GetRedis() *ServerConnectionConfig_Redis
- func (*ServerConnectionConfig) ProtoMessage()
- func (x *ServerConnectionConfig) ProtoReflect() protoreflect.Message
- func (x *ServerConnectionConfig) Reset()
- func (x *ServerConnectionConfig) String() string
- type ServerConnectionConfig_Minio
- func (*ServerConnectionConfig_Minio) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConnectionConfig_Minio) GetMinioEndpoint() string
- func (x *ServerConnectionConfig_Minio) GetPassword() string
- func (x *ServerConnectionConfig_Minio) GetUserName() string
- func (*ServerConnectionConfig_Minio) ProtoMessage()
- func (x *ServerConnectionConfig_Minio) ProtoReflect() protoreflect.Message
- func (x *ServerConnectionConfig_Minio) Reset()
- func (x *ServerConnectionConfig_Minio) String() string
- type ServerConnectionConfig_PostgreSQL
- func (*ServerConnectionConfig_PostgreSQL) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConnectionConfig_PostgreSQL) GetPassword() string
- func (x *ServerConnectionConfig_PostgreSQL) GetPgEndpoint() string
- func (x *ServerConnectionConfig_PostgreSQL) GetPort() int32
- func (x *ServerConnectionConfig_PostgreSQL) GetUserName() string
- func (*ServerConnectionConfig_PostgreSQL) ProtoMessage()
- func (x *ServerConnectionConfig_PostgreSQL) ProtoReflect() protoreflect.Message
- func (x *ServerConnectionConfig_PostgreSQL) Reset()
- func (x *ServerConnectionConfig_PostgreSQL) String() string
- type ServerConnectionConfig_Redis
- func (*ServerConnectionConfig_Redis) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConnectionConfig_Redis) GetRedisEndpoint() string
- func (x *ServerConnectionConfig_Redis) GetRedisPassword() string
- func (*ServerConnectionConfig_Redis) ProtoMessage()
- func (x *ServerConnectionConfig_Redis) ProtoReflect() protoreflect.Message
- func (x *ServerConnectionConfig_Redis) Reset()
- func (x *ServerConnectionConfig_Redis) String() string
- type SystemClient
- type SystemHTTPClient
- type SystemHTTPClientImpl
- type SystemHTTPServer
- type SystemLoginReq
- func (*SystemLoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *SystemLoginReq) GetPassword() string
- func (x *SystemLoginReq) GetUsername() string
- func (*SystemLoginReq) ProtoMessage()
- func (x *SystemLoginReq) ProtoReflect() protoreflect.Message
- func (x *SystemLoginReq) Reset()
- func (x *SystemLoginReq) String() string
- type SystemLoginResp
- type SystemServer
- type UnimplementedConfigurationServer
- func (UnimplementedConfigurationServer) GetConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error)
- func (UnimplementedConfigurationServer) GetConfigList(context.Context, *GetConfigListReq) (*GetConfigListResp, error)
- func (UnimplementedConfigurationServer) GetConfigPath(context.Context, *Req) (*GetConfigPathResp, error)
- func (UnimplementedConfigurationServer) GetConnectionConfig(context.Context, *emptypb.Empty) (*ServerConnectionConfig, error)
- func (UnimplementedConfigurationServer) GetNameSpaceList(context.Context, *Req) (*GetNameSpaceListResp, error)
- func (UnimplementedConfigurationServer) PostSaveConfig(context.Context, *RegisterConfigReq) (*Result, error)
- func (UnimplementedConfigurationServer) RegisterConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error)
- type UnimplementedSystemServer
- type UnsafeConfigurationServer
- type UnsafeSystemServer
Constants ¶
const OperationConfigurationGetConfig = "/config.Configuration/GetConfig"
const OperationConfigurationGetConfigList = "/config.Configuration/GetConfigList"
const OperationConfigurationGetConfigPath = "/config.Configuration/GetConfigPath"
const OperationConfigurationGetNameSpaceList = "/config.Configuration/GetNameSpaceList"
const OperationConfigurationPostSaveConfig = "/config.Configuration/PostSaveConfig"
const OperationConfigurationRegisterConfig = "/config.Configuration/RegisterConfig"
const OperationSystemSystemLogin = "/config.System/SystemLogin"
Variables ¶
var Configuration_ServiceDesc = grpc.ServiceDesc{ ServiceName: "config.Configuration", HandlerType: (*ConfigurationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterConfig", Handler: _Configuration_RegisterConfig_Handler, }, { MethodName: "PostSaveConfig", Handler: _Configuration_PostSaveConfig_Handler, }, { MethodName: "GetConfig", Handler: _Configuration_GetConfig_Handler, }, { MethodName: "GetConfigList", Handler: _Configuration_GetConfigList_Handler, }, { MethodName: "GetNameSpaceList", Handler: _Configuration_GetNameSpaceList_Handler, }, { MethodName: "GetConfigPath", Handler: _Configuration_GetConfigPath_Handler, }, { MethodName: "GetConnectionConfig", Handler: _Configuration_GetConnectionConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/config/configuration.proto", }
Configuration_ServiceDesc is the grpc.ServiceDesc for Configuration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_config_base_proto protoreflect.FileDescriptor
var File_api_config_configuration_proto protoreflect.FileDescriptor
var File_api_config_system_proto protoreflect.FileDescriptor
var System_ServiceDesc = grpc.ServiceDesc{ ServiceName: "config.System", HandlerType: (*SystemServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SystemLogin", Handler: _System_SystemLogin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/config/system.proto", }
System_ServiceDesc is the grpc.ServiceDesc for System service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterConfigurationHTTPServer ¶
func RegisterConfigurationHTTPServer(s *http.Server, srv ConfigurationHTTPServer)
func RegisterConfigurationServer ¶
func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
func RegisterSystemHTTPServer ¶ added in v1.0.9
func RegisterSystemHTTPServer(s *http.Server, srv SystemHTTPServer)
func RegisterSystemServer ¶ added in v1.0.9
func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)
Types ¶
type ConfigurationClient ¶
type ConfigurationClient interface { // 所有配置的获取都从远端拿,注册配置。 // 注册的时候,如果远端没有该应用,则创建并返回对应的配置,如果远端有,则返回远端的配置。 RegisterConfig(ctx context.Context, in *RegisterConfigReq, opts ...grpc.CallOption) (*RegisterConfigReq, error) // 发布/保存。 PostSaveConfig(ctx context.Context, in *RegisterConfigReq, opts ...grpc.CallOption) (*Result, error) // 获取配置 GetConfig(ctx context.Context, in *RegisterConfigReq, opts ...grpc.CallOption) (*RegisterConfigReq, error) // 查询所有的配置。 GetConfigList(ctx context.Context, in *GetConfigListReq, opts ...grpc.CallOption) (*GetConfigListResp, error) // 获取所有的命名空间: GetNameSpaceList(ctx context.Context, in *Req, opts ...grpc.CallOption) (*GetNameSpaceListResp, error) // 配置存储位置: // // rpc SetConfigPath (RegisterConfigReq) returns (RegisterConfigReq) { // option (google.api.http) = { // post: "/manage/config/beta/path", // body: "*", // }; // option (openapiv2.operation) = { // summary: "配置存储位置"; // }; // } // // 获取存储位置: GetConfigPath(ctx context.Context, in *Req, opts ...grpc.CallOption) (*GetConfigPathResp, error) GetConnectionConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServerConnectionConfig, error) }
ConfigurationClient is the client API for Configuration service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConfigurationClient ¶
func NewConfigurationClient(cc grpc.ClientConnInterface) ConfigurationClient
type ConfigurationHTTPClient ¶
type ConfigurationHTTPClient interface { GetConfig(ctx context.Context, req *RegisterConfigReq, opts ...http.CallOption) (rsp *RegisterConfigReq, err error) GetConfigList(ctx context.Context, req *GetConfigListReq, opts ...http.CallOption) (rsp *GetConfigListResp, err error) GetConfigPath(ctx context.Context, req *Req, opts ...http.CallOption) (rsp *GetConfigPathResp, err error) GetNameSpaceList(ctx context.Context, req *Req, opts ...http.CallOption) (rsp *GetNameSpaceListResp, err error) PostSaveConfig(ctx context.Context, req *RegisterConfigReq, opts ...http.CallOption) (rsp *Result, err error) RegisterConfig(ctx context.Context, req *RegisterConfigReq, opts ...http.CallOption) (rsp *RegisterConfigReq, err error) }
func NewConfigurationHTTPClient ¶
func NewConfigurationHTTPClient(client *http.Client) ConfigurationHTTPClient
type ConfigurationHTTPClientImpl ¶
type ConfigurationHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ConfigurationHTTPClientImpl) GetConfig ¶
func (c *ConfigurationHTTPClientImpl) GetConfig(ctx context.Context, in *RegisterConfigReq, opts ...http.CallOption) (*RegisterConfigReq, error)
func (*ConfigurationHTTPClientImpl) GetConfigList ¶
func (c *ConfigurationHTTPClientImpl) GetConfigList(ctx context.Context, in *GetConfigListReq, opts ...http.CallOption) (*GetConfigListResp, error)
func (*ConfigurationHTTPClientImpl) GetConfigPath ¶
func (c *ConfigurationHTTPClientImpl) GetConfigPath(ctx context.Context, in *Req, opts ...http.CallOption) (*GetConfigPathResp, error)
func (*ConfigurationHTTPClientImpl) GetNameSpaceList ¶
func (c *ConfigurationHTTPClientImpl) GetNameSpaceList(ctx context.Context, in *Req, opts ...http.CallOption) (*GetNameSpaceListResp, error)
func (*ConfigurationHTTPClientImpl) PostSaveConfig ¶
func (c *ConfigurationHTTPClientImpl) PostSaveConfig(ctx context.Context, in *RegisterConfigReq, opts ...http.CallOption) (*Result, error)
func (*ConfigurationHTTPClientImpl) RegisterConfig ¶
func (c *ConfigurationHTTPClientImpl) RegisterConfig(ctx context.Context, in *RegisterConfigReq, opts ...http.CallOption) (*RegisterConfigReq, error)
type ConfigurationHTTPServer ¶
type ConfigurationHTTPServer interface { GetConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error) GetConfigList(context.Context, *GetConfigListReq) (*GetConfigListResp, error) GetConfigPath(context.Context, *Req) (*GetConfigPathResp, error) GetNameSpaceList(context.Context, *Req) (*GetNameSpaceListResp, error) PostSaveConfig(context.Context, *RegisterConfigReq) (*Result, error) RegisterConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error) }
type ConfigurationServer ¶
type ConfigurationServer interface { // 所有配置的获取都从远端拿,注册配置。 // 注册的时候,如果远端没有该应用,则创建并返回对应的配置,如果远端有,则返回远端的配置。 RegisterConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error) // 发布/保存。 PostSaveConfig(context.Context, *RegisterConfigReq) (*Result, error) // 获取配置 GetConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error) // 查询所有的配置。 GetConfigList(context.Context, *GetConfigListReq) (*GetConfigListResp, error) // 获取所有的命名空间: GetNameSpaceList(context.Context, *Req) (*GetNameSpaceListResp, error) // 配置存储位置: // // rpc SetConfigPath (RegisterConfigReq) returns (RegisterConfigReq) { // option (google.api.http) = { // post: "/manage/config/beta/path", // body: "*", // }; // option (openapiv2.operation) = { // summary: "配置存储位置"; // }; // } // // 获取存储位置: GetConfigPath(context.Context, *Req) (*GetConfigPathResp, error) GetConnectionConfig(context.Context, *emptypb.Empty) (*ServerConnectionConfig, error) // contains filtered or unexported methods }
ConfigurationServer is the server API for Configuration service. All implementations must embed UnimplementedConfigurationServer for forward compatibility
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
func (*Empty) Validate ¶
Validate checks the field values on Empty 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 (*Empty) ValidateAll ¶
ValidateAll checks the field values on Empty 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 EmptyMultiError, or nil if none found.
type EmptyMultiError ¶
type EmptyMultiError []error
EmptyMultiError is an error wrapping multiple validation errors returned by Empty.ValidateAll() if the designated constraints aren't met.
func (EmptyMultiError) AllErrors ¶
func (m EmptyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EmptyMultiError) Error ¶
func (m EmptyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EmptyValidationError ¶
type EmptyValidationError struct {
// contains filtered or unexported fields
}
EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.
func (EmptyValidationError) Cause ¶
func (e EmptyValidationError) Cause() error
Cause function returns cause value.
func (EmptyValidationError) Error ¶
func (e EmptyValidationError) Error() string
Error satisfies the builtin error interface
func (EmptyValidationError) ErrorName ¶
func (e EmptyValidationError) ErrorName() string
ErrorName returns error name.
func (EmptyValidationError) Field ¶
func (e EmptyValidationError) Field() string
Field function returns field value.
func (EmptyValidationError) Key ¶
func (e EmptyValidationError) Key() bool
Key function returns key value.
func (EmptyValidationError) Reason ¶
func (e EmptyValidationError) Reason() string
Reason function returns reason value.
type GetConfigListReq ¶
type GetConfigListReq struct { NameSpace string `protobuf:"bytes,1,opt,name=nameSpace,proto3" json:"nameSpace,omitempty"` // contains filtered or unexported fields }
func (*GetConfigListReq) Descriptor
deprecated
func (*GetConfigListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigListReq.ProtoReflect.Descriptor instead.
func (*GetConfigListReq) GetNameSpace ¶
func (x *GetConfigListReq) GetNameSpace() string
func (*GetConfigListReq) ProtoMessage ¶
func (*GetConfigListReq) ProtoMessage()
func (*GetConfigListReq) ProtoReflect ¶
func (x *GetConfigListReq) ProtoReflect() protoreflect.Message
func (*GetConfigListReq) Reset ¶
func (x *GetConfigListReq) Reset()
func (*GetConfigListReq) String ¶
func (x *GetConfigListReq) String() string
type GetConfigListResp ¶
type GetConfigListResp struct { List []*RegisterConfigReq `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetConfigListResp) Descriptor
deprecated
func (*GetConfigListResp) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigListResp.ProtoReflect.Descriptor instead.
func (*GetConfigListResp) GetList ¶
func (x *GetConfigListResp) GetList() []*RegisterConfigReq
func (*GetConfigListResp) ProtoMessage ¶
func (*GetConfigListResp) ProtoMessage()
func (*GetConfigListResp) ProtoReflect ¶
func (x *GetConfigListResp) ProtoReflect() protoreflect.Message
func (*GetConfigListResp) Reset ¶
func (x *GetConfigListResp) Reset()
func (*GetConfigListResp) String ¶
func (x *GetConfigListResp) String() string
type GetConfigPathResp ¶
type GetConfigPathResp struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*GetConfigPathResp) Descriptor
deprecated
func (*GetConfigPathResp) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigPathResp.ProtoReflect.Descriptor instead.
func (*GetConfigPathResp) GetPath ¶
func (x *GetConfigPathResp) GetPath() string
func (*GetConfigPathResp) ProtoMessage ¶
func (*GetConfigPathResp) ProtoMessage()
func (*GetConfigPathResp) ProtoReflect ¶
func (x *GetConfigPathResp) ProtoReflect() protoreflect.Message
func (*GetConfigPathResp) Reset ¶
func (x *GetConfigPathResp) Reset()
func (*GetConfigPathResp) String ¶
func (x *GetConfigPathResp) String() string
type GetNameSpaceListResp ¶
type GetNameSpaceListResp struct { List []string `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetNameSpaceListResp) Descriptor
deprecated
func (*GetNameSpaceListResp) Descriptor() ([]byte, []int)
Deprecated: Use GetNameSpaceListResp.ProtoReflect.Descriptor instead.
func (*GetNameSpaceListResp) GetList ¶
func (x *GetNameSpaceListResp) GetList() []string
func (*GetNameSpaceListResp) ProtoMessage ¶
func (*GetNameSpaceListResp) ProtoMessage()
func (*GetNameSpaceListResp) ProtoReflect ¶
func (x *GetNameSpaceListResp) ProtoReflect() protoreflect.Message
func (*GetNameSpaceListResp) Reset ¶
func (x *GetNameSpaceListResp) Reset()
func (*GetNameSpaceListResp) String ¶
func (x *GetNameSpaceListResp) String() string
type IdPageReq ¶
type IdPageReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*IdPageReq) Descriptor
deprecated
func (*IdPageReq) GetPageSize ¶
func (*IdPageReq) ProtoMessage ¶
func (*IdPageReq) ProtoMessage()
func (*IdPageReq) ProtoReflect ¶
func (x *IdPageReq) ProtoReflect() protoreflect.Message
func (*IdPageReq) Validate ¶
Validate checks the field values on IdPageReq 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 (*IdPageReq) ValidateAll ¶
ValidateAll checks the field values on IdPageReq 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 IdPageReqMultiError, or nil if none found.
type IdPageReqMultiError ¶
type IdPageReqMultiError []error
IdPageReqMultiError is an error wrapping multiple validation errors returned by IdPageReq.ValidateAll() if the designated constraints aren't met.
func (IdPageReqMultiError) AllErrors ¶
func (m IdPageReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdPageReqMultiError) Error ¶
func (m IdPageReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdPageReqValidationError ¶
type IdPageReqValidationError struct {
// contains filtered or unexported fields
}
IdPageReqValidationError is the validation error returned by IdPageReq.Validate if the designated constraints aren't met.
func (IdPageReqValidationError) Cause ¶
func (e IdPageReqValidationError) Cause() error
Cause function returns cause value.
func (IdPageReqValidationError) Error ¶
func (e IdPageReqValidationError) Error() string
Error satisfies the builtin error interface
func (IdPageReqValidationError) ErrorName ¶
func (e IdPageReqValidationError) ErrorName() string
ErrorName returns error name.
func (IdPageReqValidationError) Field ¶
func (e IdPageReqValidationError) Field() string
Field function returns field value.
func (IdPageReqValidationError) Key ¶
func (e IdPageReqValidationError) Key() bool
Key function returns key value.
func (IdPageReqValidationError) Reason ¶
func (e IdPageReqValidationError) Reason() string
Reason function returns reason value.
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
func (*IdReq) Validate ¶
Validate checks the field values on IdReq 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 (*IdReq) ValidateAll ¶
ValidateAll checks the field values on IdReq 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 IdReqMultiError, or nil if none found.
type IdReqMultiError ¶
type IdReqMultiError []error
IdReqMultiError is an error wrapping multiple validation errors returned by IdReq.ValidateAll() if the designated constraints aren't met.
func (IdReqMultiError) AllErrors ¶
func (m IdReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdReqMultiError) Error ¶
func (m IdReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdReqValidationError ¶
type IdReqValidationError struct {
// contains filtered or unexported fields
}
IdReqValidationError is the validation error returned by IdReq.Validate if the designated constraints aren't met.
func (IdReqValidationError) Cause ¶
func (e IdReqValidationError) Cause() error
Cause function returns cause value.
func (IdReqValidationError) Error ¶
func (e IdReqValidationError) Error() string
Error satisfies the builtin error interface
func (IdReqValidationError) ErrorName ¶
func (e IdReqValidationError) ErrorName() string
ErrorName returns error name.
func (IdReqValidationError) Field ¶
func (e IdReqValidationError) Field() string
Field function returns field value.
func (IdReqValidationError) Key ¶
func (e IdReqValidationError) Key() bool
Key function returns key value.
func (IdReqValidationError) Reason ¶
func (e IdReqValidationError) Reason() string
Reason function returns reason value.
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
func (*IdsReq) Validate ¶
Validate checks the field values on IdsReq 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 (*IdsReq) ValidateAll ¶
ValidateAll checks the field values on IdsReq 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 IdsReqMultiError, or nil if none found.
type IdsReqMultiError ¶
type IdsReqMultiError []error
IdsReqMultiError is an error wrapping multiple validation errors returned by IdsReq.ValidateAll() if the designated constraints aren't met.
func (IdsReqMultiError) AllErrors ¶
func (m IdsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdsReqMultiError) Error ¶
func (m IdsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdsReqValidationError ¶
type IdsReqValidationError struct {
// contains filtered or unexported fields
}
IdsReqValidationError is the validation error returned by IdsReq.Validate if the designated constraints aren't met.
func (IdsReqValidationError) Cause ¶
func (e IdsReqValidationError) Cause() error
Cause function returns cause value.
func (IdsReqValidationError) Error ¶
func (e IdsReqValidationError) Error() string
Error satisfies the builtin error interface
func (IdsReqValidationError) ErrorName ¶
func (e IdsReqValidationError) ErrorName() string
ErrorName returns error name.
func (IdsReqValidationError) Field ¶
func (e IdsReqValidationError) Field() string
Field function returns field value.
func (IdsReqValidationError) Key ¶
func (e IdsReqValidationError) Key() bool
Key function returns key value.
func (IdsReqValidationError) Reason ¶
func (e IdsReqValidationError) Reason() string
Reason function returns reason value.
type RegisterConfigReq ¶
type RegisterConfigReq struct { // tag: 前端还是后端。 // isIgnore: 是否忽略某些配置。公共配置。 AppId string `protobuf:"bytes,1,opt,name=appId,proto3" json:"appId,omitempty"` AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"` NameSpace string `protobuf:"bytes,3,opt,name=nameSpace,proto3" json:"nameSpace,omitempty"` ConfigType string `protobuf:"bytes,4,opt,name=configType,proto3" json:"configType,omitempty"` Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"` FormData string `protobuf:"bytes,6,opt,name=formData,proto3" json:"formData,omitempty"` // isIgnorePublic: 是否忽略公共配置。 IsIgnorePublic bool `protobuf:"varint,7,opt,name=isIgnorePublic,proto3" json:"isIgnorePublic,omitempty"` // contains filtered or unexported fields }
func (*RegisterConfigReq) Descriptor
deprecated
func (*RegisterConfigReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterConfigReq.ProtoReflect.Descriptor instead.
func (*RegisterConfigReq) GetAppId ¶
func (x *RegisterConfigReq) GetAppId() string
func (*RegisterConfigReq) GetAppName ¶
func (x *RegisterConfigReq) GetAppName() string
func (*RegisterConfigReq) GetConfigType ¶
func (x *RegisterConfigReq) GetConfigType() string
func (*RegisterConfigReq) GetFormData ¶
func (x *RegisterConfigReq) GetFormData() string
func (*RegisterConfigReq) GetIsIgnorePublic ¶
func (x *RegisterConfigReq) GetIsIgnorePublic() bool
func (*RegisterConfigReq) GetNameSpace ¶
func (x *RegisterConfigReq) GetNameSpace() string
func (*RegisterConfigReq) GetSchema ¶
func (x *RegisterConfigReq) GetSchema() string
func (*RegisterConfigReq) ProtoMessage ¶
func (*RegisterConfigReq) ProtoMessage()
func (*RegisterConfigReq) ProtoReflect ¶
func (x *RegisterConfigReq) ProtoReflect() protoreflect.Message
func (*RegisterConfigReq) Reset ¶
func (x *RegisterConfigReq) Reset()
func (*RegisterConfigReq) String ¶
func (x *RegisterConfigReq) String() string
type RegisterConfigResp ¶
type RegisterConfigResp struct {
// contains filtered or unexported fields
}
func (*RegisterConfigResp) Descriptor
deprecated
func (*RegisterConfigResp) Descriptor() ([]byte, []int)
Deprecated: Use RegisterConfigResp.ProtoReflect.Descriptor instead.
func (*RegisterConfigResp) ProtoMessage ¶
func (*RegisterConfigResp) ProtoMessage()
func (*RegisterConfigResp) ProtoReflect ¶
func (x *RegisterConfigResp) ProtoReflect() protoreflect.Message
func (*RegisterConfigResp) Reset ¶
func (x *RegisterConfigResp) Reset()
func (*RegisterConfigResp) String ¶
func (x *RegisterConfigResp) String() string
type Req ¶
type Req struct {
// contains filtered or unexported fields
}
func (*Req) Descriptor
deprecated
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
func (*Req) Validate ¶
Validate checks the field values on Req 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 (*Req) ValidateAll ¶
ValidateAll checks the field values on Req 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 ReqMultiError, or nil if none found.
type ReqMultiError ¶
type ReqMultiError []error
ReqMultiError is an error wrapping multiple validation errors returned by Req.ValidateAll() if the designated constraints aren't met.
func (ReqMultiError) AllErrors ¶
func (m ReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReqMultiError) Error ¶
func (m ReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReqValidationError ¶
type ReqValidationError struct {
// contains filtered or unexported fields
}
ReqValidationError is the validation error returned by Req.Validate if the designated constraints aren't met.
func (ReqValidationError) Cause ¶
func (e ReqValidationError) Cause() error
Cause function returns cause value.
func (ReqValidationError) Error ¶
func (e ReqValidationError) Error() string
Error satisfies the builtin error interface
func (ReqValidationError) ErrorName ¶
func (e ReqValidationError) ErrorName() string
ErrorName returns error name.
func (ReqValidationError) Field ¶
func (e ReqValidationError) Field() string
Field function returns field value.
func (ReqValidationError) Key ¶
func (e ReqValidationError) Key() bool
Key function returns key value.
func (ReqValidationError) Reason ¶
func (e ReqValidationError) Reason() string
Reason function returns reason value.
type Result ¶
type Result struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
func (*Result) Validate ¶
Validate checks the field values on Result 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 (*Result) ValidateAll ¶
ValidateAll checks the field values on Result 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 ResultMultiError, or nil if none found.
type ResultMultiError ¶
type ResultMultiError []error
ResultMultiError is an error wrapping multiple validation errors returned by Result.ValidateAll() if the designated constraints aren't met.
func (ResultMultiError) AllErrors ¶
func (m ResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResultMultiError) Error ¶
func (m ResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResultValidationError ¶
type ResultValidationError struct {
// contains filtered or unexported fields
}
ResultValidationError is the validation error returned by Result.Validate if the designated constraints aren't met.
func (ResultValidationError) Cause ¶
func (e ResultValidationError) Cause() error
Cause function returns cause value.
func (ResultValidationError) Error ¶
func (e ResultValidationError) Error() string
Error satisfies the builtin error interface
func (ResultValidationError) ErrorName ¶
func (e ResultValidationError) ErrorName() string
ErrorName returns error name.
func (ResultValidationError) Field ¶
func (e ResultValidationError) Field() string
Field function returns field value.
func (ResultValidationError) Key ¶
func (e ResultValidationError) Key() bool
Key function returns key value.
func (ResultValidationError) Reason ¶
func (e ResultValidationError) Reason() string
Reason function returns reason value.
type Results ¶
type Results struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*Results) Descriptor
deprecated
func (*Results) ProtoMessage ¶
func (*Results) ProtoMessage()
func (*Results) ProtoReflect ¶
func (x *Results) ProtoReflect() protoreflect.Message
func (*Results) Validate ¶
Validate checks the field values on Results 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 (*Results) ValidateAll ¶
ValidateAll checks the field values on Results 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 ResultsMultiError, or nil if none found.
type ResultsMultiError ¶
type ResultsMultiError []error
ResultsMultiError is an error wrapping multiple validation errors returned by Results.ValidateAll() if the designated constraints aren't met.
func (ResultsMultiError) AllErrors ¶
func (m ResultsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResultsMultiError) Error ¶
func (m ResultsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResultsValidationError ¶
type ResultsValidationError struct {
// contains filtered or unexported fields
}
ResultsValidationError is the validation error returned by Results.Validate if the designated constraints aren't met.
func (ResultsValidationError) Cause ¶
func (e ResultsValidationError) Cause() error
Cause function returns cause value.
func (ResultsValidationError) Error ¶
func (e ResultsValidationError) Error() string
Error satisfies the builtin error interface
func (ResultsValidationError) ErrorName ¶
func (e ResultsValidationError) ErrorName() string
ErrorName returns error name.
func (ResultsValidationError) Field ¶
func (e ResultsValidationError) Field() string
Field function returns field value.
func (ResultsValidationError) Key ¶
func (e ResultsValidationError) Key() bool
Key function returns key value.
func (ResultsValidationError) Reason ¶
func (e ResultsValidationError) Reason() string
Reason function returns reason value.
type ServerConnectionConfig ¶ added in v1.0.55
type ServerConnectionConfig struct { NsqEndpoint string `protobuf:"bytes,1,opt,name=nsqEndpoint,proto3" json:"nsqEndpoint,omitempty"` Redis *ServerConnectionConfig_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"` Pg *ServerConnectionConfig_PostgreSQL `protobuf:"bytes,3,opt,name=pg,proto3" json:"pg,omitempty"` Minio *ServerConnectionConfig_Minio `protobuf:"bytes,4,opt,name=minio,proto3" json:"minio,omitempty"` // contains filtered or unexported fields }
func (*ServerConnectionConfig) Descriptor
deprecated
added in
v1.0.55
func (*ServerConnectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServerConnectionConfig.ProtoReflect.Descriptor instead.
func (*ServerConnectionConfig) GetMinio ¶ added in v1.0.55
func (x *ServerConnectionConfig) GetMinio() *ServerConnectionConfig_Minio
func (*ServerConnectionConfig) GetNsqEndpoint ¶ added in v1.0.55
func (x *ServerConnectionConfig) GetNsqEndpoint() string
func (*ServerConnectionConfig) GetPg ¶ added in v1.0.55
func (x *ServerConnectionConfig) GetPg() *ServerConnectionConfig_PostgreSQL
func (*ServerConnectionConfig) GetRedis ¶ added in v1.0.55
func (x *ServerConnectionConfig) GetRedis() *ServerConnectionConfig_Redis
func (*ServerConnectionConfig) ProtoMessage ¶ added in v1.0.55
func (*ServerConnectionConfig) ProtoMessage()
func (*ServerConnectionConfig) ProtoReflect ¶ added in v1.0.55
func (x *ServerConnectionConfig) ProtoReflect() protoreflect.Message
func (*ServerConnectionConfig) Reset ¶ added in v1.0.55
func (x *ServerConnectionConfig) Reset()
func (*ServerConnectionConfig) String ¶ added in v1.0.55
func (x *ServerConnectionConfig) String() string
type ServerConnectionConfig_Minio ¶ added in v1.0.55
type ServerConnectionConfig_Minio struct { MinioEndpoint string `protobuf:"bytes,1,opt,name=minioEndpoint,proto3" json:"minioEndpoint,omitempty"` UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*ServerConnectionConfig_Minio) Descriptor
deprecated
added in
v1.0.55
func (*ServerConnectionConfig_Minio) Descriptor() ([]byte, []int)
Deprecated: Use ServerConnectionConfig_Minio.ProtoReflect.Descriptor instead.
func (*ServerConnectionConfig_Minio) GetMinioEndpoint ¶ added in v1.0.55
func (x *ServerConnectionConfig_Minio) GetMinioEndpoint() string
func (*ServerConnectionConfig_Minio) GetPassword ¶ added in v1.0.55
func (x *ServerConnectionConfig_Minio) GetPassword() string
func (*ServerConnectionConfig_Minio) GetUserName ¶ added in v1.0.55
func (x *ServerConnectionConfig_Minio) GetUserName() string
func (*ServerConnectionConfig_Minio) ProtoMessage ¶ added in v1.0.55
func (*ServerConnectionConfig_Minio) ProtoMessage()
func (*ServerConnectionConfig_Minio) ProtoReflect ¶ added in v1.0.55
func (x *ServerConnectionConfig_Minio) ProtoReflect() protoreflect.Message
func (*ServerConnectionConfig_Minio) Reset ¶ added in v1.0.55
func (x *ServerConnectionConfig_Minio) Reset()
func (*ServerConnectionConfig_Minio) String ¶ added in v1.0.55
func (x *ServerConnectionConfig_Minio) String() string
type ServerConnectionConfig_PostgreSQL ¶ added in v1.0.55
type ServerConnectionConfig_PostgreSQL struct { PgEndpoint string `protobuf:"bytes,1,opt,name=pgEndpoint,proto3" json:"pgEndpoint,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` UserName string `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*ServerConnectionConfig_PostgreSQL) Descriptor
deprecated
added in
v1.0.55
func (*ServerConnectionConfig_PostgreSQL) Descriptor() ([]byte, []int)
Deprecated: Use ServerConnectionConfig_PostgreSQL.ProtoReflect.Descriptor instead.
func (*ServerConnectionConfig_PostgreSQL) GetPassword ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) GetPassword() string
func (*ServerConnectionConfig_PostgreSQL) GetPgEndpoint ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) GetPgEndpoint() string
func (*ServerConnectionConfig_PostgreSQL) GetPort ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) GetPort() int32
func (*ServerConnectionConfig_PostgreSQL) GetUserName ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) GetUserName() string
func (*ServerConnectionConfig_PostgreSQL) ProtoMessage ¶ added in v1.0.55
func (*ServerConnectionConfig_PostgreSQL) ProtoMessage()
func (*ServerConnectionConfig_PostgreSQL) ProtoReflect ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) ProtoReflect() protoreflect.Message
func (*ServerConnectionConfig_PostgreSQL) Reset ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) Reset()
func (*ServerConnectionConfig_PostgreSQL) String ¶ added in v1.0.55
func (x *ServerConnectionConfig_PostgreSQL) String() string
type ServerConnectionConfig_Redis ¶ added in v1.0.55
type ServerConnectionConfig_Redis struct { RedisEndpoint string `protobuf:"bytes,2,opt,name=redisEndpoint,proto3" json:"redisEndpoint,omitempty"` RedisPassword string `protobuf:"bytes,3,opt,name=redisPassword,proto3" json:"redisPassword,omitempty"` // contains filtered or unexported fields }
func (*ServerConnectionConfig_Redis) Descriptor
deprecated
added in
v1.0.55
func (*ServerConnectionConfig_Redis) Descriptor() ([]byte, []int)
Deprecated: Use ServerConnectionConfig_Redis.ProtoReflect.Descriptor instead.
func (*ServerConnectionConfig_Redis) GetRedisEndpoint ¶ added in v1.0.55
func (x *ServerConnectionConfig_Redis) GetRedisEndpoint() string
func (*ServerConnectionConfig_Redis) GetRedisPassword ¶ added in v1.0.55
func (x *ServerConnectionConfig_Redis) GetRedisPassword() string
func (*ServerConnectionConfig_Redis) ProtoMessage ¶ added in v1.0.55
func (*ServerConnectionConfig_Redis) ProtoMessage()
func (*ServerConnectionConfig_Redis) ProtoReflect ¶ added in v1.0.55
func (x *ServerConnectionConfig_Redis) ProtoReflect() protoreflect.Message
func (*ServerConnectionConfig_Redis) Reset ¶ added in v1.0.55
func (x *ServerConnectionConfig_Redis) Reset()
func (*ServerConnectionConfig_Redis) String ¶ added in v1.0.55
func (x *ServerConnectionConfig_Redis) String() string
type SystemClient ¶ added in v1.0.9
type SystemClient interface { // 系统登录。 SystemLogin(ctx context.Context, in *SystemLoginReq, opts ...grpc.CallOption) (*SystemLoginResp, error) }
SystemClient is the client API for System service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSystemClient ¶ added in v1.0.9
func NewSystemClient(cc grpc.ClientConnInterface) SystemClient
type SystemHTTPClient ¶ added in v1.0.9
type SystemHTTPClient interface {
SystemLogin(ctx context.Context, req *SystemLoginReq, opts ...http.CallOption) (rsp *SystemLoginResp, err error)
}
func NewSystemHTTPClient ¶ added in v1.0.9
func NewSystemHTTPClient(client *http.Client) SystemHTTPClient
type SystemHTTPClientImpl ¶ added in v1.0.9
type SystemHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SystemHTTPClientImpl) SystemLogin ¶ added in v1.0.9
func (c *SystemHTTPClientImpl) SystemLogin(ctx context.Context, in *SystemLoginReq, opts ...http.CallOption) (*SystemLoginResp, error)
type SystemHTTPServer ¶ added in v1.0.9
type SystemHTTPServer interface {
SystemLogin(context.Context, *SystemLoginReq) (*SystemLoginResp, error)
}
type SystemLoginReq ¶ added in v1.0.9
type SystemLoginReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SystemLoginReq) Descriptor
deprecated
added in
v1.0.9
func (*SystemLoginReq) Descriptor() ([]byte, []int)
Deprecated: Use SystemLoginReq.ProtoReflect.Descriptor instead.
func (*SystemLoginReq) GetPassword ¶ added in v1.0.9
func (x *SystemLoginReq) GetPassword() string
func (*SystemLoginReq) GetUsername ¶ added in v1.0.9
func (x *SystemLoginReq) GetUsername() string
func (*SystemLoginReq) ProtoMessage ¶ added in v1.0.9
func (*SystemLoginReq) ProtoMessage()
func (*SystemLoginReq) ProtoReflect ¶ added in v1.0.9
func (x *SystemLoginReq) ProtoReflect() protoreflect.Message
func (*SystemLoginReq) Reset ¶ added in v1.0.9
func (x *SystemLoginReq) Reset()
func (*SystemLoginReq) String ¶ added in v1.0.9
func (x *SystemLoginReq) String() string
type SystemLoginResp ¶ added in v1.0.9
type SystemLoginResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SystemLoginResp) Descriptor
deprecated
added in
v1.0.9
func (*SystemLoginResp) Descriptor() ([]byte, []int)
Deprecated: Use SystemLoginResp.ProtoReflect.Descriptor instead.
func (*SystemLoginResp) GetToken ¶ added in v1.0.9
func (x *SystemLoginResp) GetToken() string
func (*SystemLoginResp) ProtoMessage ¶ added in v1.0.9
func (*SystemLoginResp) ProtoMessage()
func (*SystemLoginResp) ProtoReflect ¶ added in v1.0.9
func (x *SystemLoginResp) ProtoReflect() protoreflect.Message
func (*SystemLoginResp) Reset ¶ added in v1.0.9
func (x *SystemLoginResp) Reset()
func (*SystemLoginResp) String ¶ added in v1.0.9
func (x *SystemLoginResp) String() string
type SystemServer ¶ added in v1.0.9
type SystemServer interface { // 系统登录。 SystemLogin(context.Context, *SystemLoginReq) (*SystemLoginResp, error) // contains filtered or unexported methods }
SystemServer is the server API for System service. All implementations must embed UnimplementedSystemServer for forward compatibility
type UnimplementedConfigurationServer ¶
type UnimplementedConfigurationServer struct { }
UnimplementedConfigurationServer must be embedded to have forward compatible implementations.
func (UnimplementedConfigurationServer) GetConfig ¶
func (UnimplementedConfigurationServer) GetConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error)
func (UnimplementedConfigurationServer) GetConfigList ¶
func (UnimplementedConfigurationServer) GetConfigList(context.Context, *GetConfigListReq) (*GetConfigListResp, error)
func (UnimplementedConfigurationServer) GetConfigPath ¶
func (UnimplementedConfigurationServer) GetConfigPath(context.Context, *Req) (*GetConfigPathResp, error)
func (UnimplementedConfigurationServer) GetConnectionConfig ¶ added in v1.0.55
func (UnimplementedConfigurationServer) GetConnectionConfig(context.Context, *emptypb.Empty) (*ServerConnectionConfig, error)
func (UnimplementedConfigurationServer) GetNameSpaceList ¶
func (UnimplementedConfigurationServer) GetNameSpaceList(context.Context, *Req) (*GetNameSpaceListResp, error)
func (UnimplementedConfigurationServer) PostSaveConfig ¶
func (UnimplementedConfigurationServer) PostSaveConfig(context.Context, *RegisterConfigReq) (*Result, error)
func (UnimplementedConfigurationServer) RegisterConfig ¶
func (UnimplementedConfigurationServer) RegisterConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error)
type UnimplementedSystemServer ¶ added in v1.0.9
type UnimplementedSystemServer struct { }
UnimplementedSystemServer must be embedded to have forward compatible implementations.
func (UnimplementedSystemServer) SystemLogin ¶ added in v1.0.9
func (UnimplementedSystemServer) SystemLogin(context.Context, *SystemLoginReq) (*SystemLoginResp, error)
type UnsafeConfigurationServer ¶
type UnsafeConfigurationServer interface {
// contains filtered or unexported methods
}
UnsafeConfigurationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigurationServer will result in compilation errors.
type UnsafeSystemServer ¶ added in v1.0.9
type UnsafeSystemServer interface {
// contains filtered or unexported methods
}
UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemServer will result in compilation errors.