Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterConfigurationHTTPServer(s *http.Server, srv ConfigurationHTTPServer)
- func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
- 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 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) GetNameSpaceList(context.Context, *Req) (*GetNameSpaceListResp, error)
- func (UnimplementedConfigurationServer) PostSaveConfig(context.Context, *RegisterConfigReq) (*Result, error)
- func (UnimplementedConfigurationServer) RegisterConfig(context.Context, *RegisterConfigReq) (*RegisterConfigReq, error)
- type UnsafeConfigurationServer
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"
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, }, }, 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
Functions ¶
func RegisterConfigurationHTTPServer ¶
func RegisterConfigurationHTTPServer(s *http.Server, srv ConfigurationHTTPServer)
func RegisterConfigurationServer ¶
func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
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) }
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) // 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 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) 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 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.