Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type CompareConfigureInfo
- func (*CompareConfigureInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CompareConfigureInfo) GetCur() string
- func (x *CompareConfigureInfo) GetKey() string
- func (x *CompareConfigureInfo) GetOld() string
- func (x *CompareConfigureInfo) GetType() string
- func (*CompareConfigureInfo) ProtoMessage()
- func (x *CompareConfigureInfo) ProtoReflect() protoreflect.Message
- func (x *CompareConfigureInfo) Reset()
- func (x *CompareConfigureInfo) String() string
- func (m *CompareConfigureInfo) Validate() error
- func (m *CompareConfigureInfo) ValidateAll() error
- type CompareConfigureInfoMultiError
- type CompareConfigureInfoValidationError
- func (e CompareConfigureInfoValidationError) Cause() error
- func (e CompareConfigureInfoValidationError) Error() string
- func (e CompareConfigureInfoValidationError) ErrorName() string
- func (e CompareConfigureInfoValidationError) Field() string
- func (e CompareConfigureInfoValidationError) Key() bool
- func (e CompareConfigureInfoValidationError) Reason() string
- type CompareConfigureReply
- func (*CompareConfigureReply) Descriptor() ([]byte, []int)deprecated
- func (x *CompareConfigureReply) GetList() []*CompareConfigureInfo
- func (*CompareConfigureReply) ProtoMessage()
- func (x *CompareConfigureReply) ProtoReflect() protoreflect.Message
- func (x *CompareConfigureReply) Reset()
- func (x *CompareConfigureReply) String() string
- func (m *CompareConfigureReply) Validate() error
- func (m *CompareConfigureReply) ValidateAll() error
- type CompareConfigureReplyMultiError
- type CompareConfigureReplyValidationError
- func (e CompareConfigureReplyValidationError) Cause() error
- func (e CompareConfigureReplyValidationError) Error() string
- func (e CompareConfigureReplyValidationError) ErrorName() string
- func (e CompareConfigureReplyValidationError) Field() string
- func (e CompareConfigureReplyValidationError) Key() bool
- func (e CompareConfigureReplyValidationError) Reason() string
- type CompareConfigureRequest
- func (*CompareConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompareConfigureRequest) GetEnvId() uint32
- func (x *CompareConfigureRequest) GetServerId() uint32
- func (*CompareConfigureRequest) ProtoMessage()
- func (x *CompareConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *CompareConfigureRequest) Reset()
- func (x *CompareConfigureRequest) String() string
- func (m *CompareConfigureRequest) Validate() error
- func (m *CompareConfigureRequest) ValidateAll() error
- type CompareConfigureRequestMultiError
- type CompareConfigureRequestValidationError
- func (e CompareConfigureRequestValidationError) Cause() error
- func (e CompareConfigureRequestValidationError) Error() string
- func (e CompareConfigureRequestValidationError) ErrorName() string
- func (e CompareConfigureRequestValidationError) Field() string
- func (e CompareConfigureRequestValidationError) Key() bool
- func (e CompareConfigureRequestValidationError) Reason() string
- type GetConfigureReply
- func (*GetConfigureReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigureReply) GetContent() string
- func (x *GetConfigureReply) GetCreatedAt() uint32
- func (x *GetConfigureReply) GetDescription() string
- func (x *GetConfigureReply) GetEnvId() uint32
- func (x *GetConfigureReply) GetFormat() string
- func (x *GetConfigureReply) GetId() uint32
- func (x *GetConfigureReply) GetServerId() uint32
- func (x *GetConfigureReply) GetVersion() string
- func (*GetConfigureReply) ProtoMessage()
- func (x *GetConfigureReply) ProtoReflect() protoreflect.Message
- func (x *GetConfigureReply) Reset()
- func (x *GetConfigureReply) String() string
- func (m *GetConfigureReply) Validate() error
- func (m *GetConfigureReply) ValidateAll() error
- type GetConfigureReplyMultiError
- type GetConfigureReplyValidationError
- func (e GetConfigureReplyValidationError) Cause() error
- func (e GetConfigureReplyValidationError) Error() string
- func (e GetConfigureReplyValidationError) ErrorName() string
- func (e GetConfigureReplyValidationError) Field() string
- func (e GetConfigureReplyValidationError) Key() bool
- func (e GetConfigureReplyValidationError) Reason() string
- type GetConfigureRequest
- func (*GetConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigureRequest) GetEnvId() uint32
- func (x *GetConfigureRequest) GetServerId() uint32
- func (*GetConfigureRequest) ProtoMessage()
- func (x *GetConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *GetConfigureRequest) Reset()
- func (x *GetConfigureRequest) String() string
- func (m *GetConfigureRequest) Validate() error
- func (m *GetConfigureRequest) ValidateAll() error
- type GetConfigureRequestMultiError
- type GetConfigureRequestValidationError
- func (e GetConfigureRequestValidationError) Cause() error
- func (e GetConfigureRequestValidationError) Error() string
- func (e GetConfigureRequestValidationError) ErrorName() string
- func (e GetConfigureRequestValidationError) Field() string
- func (e GetConfigureRequestValidationError) Key() bool
- func (e GetConfigureRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) CompareConfigure(ctx context.Context, in *CompareConfigureRequest, opts ...http.CallOption) (*CompareConfigureReply, error)
- func (c *ServiceHTTPClientImpl) GetConfigure(ctx context.Context, in *GetConfigureRequest, opts ...http.CallOption) (*GetConfigureReply, error)
- func (c *ServiceHTTPClientImpl) UpdateConfigure(ctx context.Context, in *UpdateConfigureRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type Service_WatchConfigureClient
- type Service_WatchConfigureServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) CompareConfigure(context.Context, *CompareConfigureRequest) (*CompareConfigureReply, error)
- func (UnimplementedServiceServer) GetConfigure(context.Context, *GetConfigureRequest) (*GetConfigureReply, error)
- func (UnimplementedServiceServer) UpdateConfigure(context.Context, *UpdateConfigureRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) WatchConfigure(*WatchConfigureRequest, Service_WatchConfigureServer) error
- type UnsafeServiceServer
- type UpdateConfigureRequest
- func (*UpdateConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateConfigureRequest) GetDescription() string
- func (x *UpdateConfigureRequest) GetEnvId() uint32
- func (x *UpdateConfigureRequest) GetServerId() uint32
- func (*UpdateConfigureRequest) ProtoMessage()
- func (x *UpdateConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateConfigureRequest) Reset()
- func (x *UpdateConfigureRequest) String() string
- func (m *UpdateConfigureRequest) Validate() error
- func (m *UpdateConfigureRequest) ValidateAll() error
- type UpdateConfigureRequestMultiError
- type UpdateConfigureRequestValidationError
- func (e UpdateConfigureRequestValidationError) Cause() error
- func (e UpdateConfigureRequestValidationError) Error() string
- func (e UpdateConfigureRequestValidationError) ErrorName() string
- func (e UpdateConfigureRequestValidationError) Field() string
- func (e UpdateConfigureRequestValidationError) Key() bool
- func (e UpdateConfigureRequestValidationError) Reason() string
- type WatchConfigureReply
- func (*WatchConfigureReply) Descriptor() ([]byte, []int)deprecated
- func (x *WatchConfigureReply) GetContent() string
- func (x *WatchConfigureReply) GetFormat() string
- func (*WatchConfigureReply) ProtoMessage()
- func (x *WatchConfigureReply) ProtoReflect() protoreflect.Message
- func (x *WatchConfigureReply) Reset()
- func (x *WatchConfigureReply) String() string
- func (m *WatchConfigureReply) Validate() error
- func (m *WatchConfigureReply) ValidateAll() error
- type WatchConfigureReplyMultiError
- type WatchConfigureReplyValidationError
- func (e WatchConfigureReplyValidationError) Cause() error
- func (e WatchConfigureReplyValidationError) Error() string
- func (e WatchConfigureReplyValidationError) ErrorName() string
- func (e WatchConfigureReplyValidationError) Field() string
- func (e WatchConfigureReplyValidationError) Key() bool
- func (e WatchConfigureReplyValidationError) Reason() string
- type WatchConfigureRequest
- func (*WatchConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchConfigureRequest) GetServer() string
- func (x *WatchConfigureRequest) GetToken() string
- func (*WatchConfigureRequest) ProtoMessage()
- func (x *WatchConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *WatchConfigureRequest) Reset()
- func (x *WatchConfigureRequest) String() string
- func (m *WatchConfigureRequest) Validate() error
- func (m *WatchConfigureRequest) ValidateAll() error
- type WatchConfigureRequestMultiError
- type WatchConfigureRequestValidationError
- func (e WatchConfigureRequestValidationError) Cause() error
- func (e WatchConfigureRequestValidationError) Error() string
- func (e WatchConfigureRequestValidationError) ErrorName() string
- func (e WatchConfigureRequestValidationError) Field() string
- func (e WatchConfigureRequestValidationError) Key() bool
- func (e WatchConfigureRequestValidationError) Reason() string
Constants ¶
const ( Service_GetConfigure_FullMethodName = "/configure_configure.Service/GetConfigure" Service_UpdateConfigure_FullMethodName = "/configure_configure.Service/UpdateConfigure" Service_CompareConfigure_FullMethodName = "/configure_configure.Service/CompareConfigure" Service_WatchConfigure_FullMethodName = "/configure_configure.Service/WatchConfigure" )
const OperationServiceCompareConfigure = "/configure_configure.Service/CompareConfigure"
const OperationServiceGetConfigure = "/configure_configure.Service/GetConfigure"
const OperationServiceUpdateConfigure = "/configure_configure.Service/UpdateConfigure"
Variables ¶
var File_configure_configure_proto protoreflect.FileDescriptor
var File_configure_configure_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "configure_configure.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfigure", Handler: _Service_GetConfigure_Handler, }, { MethodName: "UpdateConfigure", Handler: _Service_UpdateConfigure_Handler, }, { MethodName: "CompareConfigure", Handler: _Service_CompareConfigure_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchConfigure", Handler: _Service_WatchConfigure_Handler, ServerStreams: true, }, }, Metadata: "configure_configure_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type CompareConfigureInfo ¶
type CompareConfigureInfo struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Old string `protobuf:"bytes,3,opt,name=old,proto3" json:"old,omitempty"` Cur string `protobuf:"bytes,4,opt,name=cur,proto3" json:"cur,omitempty"` // contains filtered or unexported fields }
对比配置详情
func (*CompareConfigureInfo) Descriptor
deprecated
func (*CompareConfigureInfo) Descriptor() ([]byte, []int)
Deprecated: Use CompareConfigureInfo.ProtoReflect.Descriptor instead.
func (*CompareConfigureInfo) GetCur ¶
func (x *CompareConfigureInfo) GetCur() string
func (*CompareConfigureInfo) GetKey ¶
func (x *CompareConfigureInfo) GetKey() string
func (*CompareConfigureInfo) GetOld ¶
func (x *CompareConfigureInfo) GetOld() string
func (*CompareConfigureInfo) GetType ¶
func (x *CompareConfigureInfo) GetType() string
func (*CompareConfigureInfo) ProtoMessage ¶
func (*CompareConfigureInfo) ProtoMessage()
func (*CompareConfigureInfo) ProtoReflect ¶
func (x *CompareConfigureInfo) ProtoReflect() protoreflect.Message
func (*CompareConfigureInfo) Reset ¶
func (x *CompareConfigureInfo) Reset()
func (*CompareConfigureInfo) String ¶
func (x *CompareConfigureInfo) String() string
func (*CompareConfigureInfo) Validate ¶
func (m *CompareConfigureInfo) Validate() error
Validate checks the field values on CompareConfigureInfo 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 (*CompareConfigureInfo) ValidateAll ¶
func (m *CompareConfigureInfo) ValidateAll() error
ValidateAll checks the field values on CompareConfigureInfo 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 CompareConfigureInfoMultiError, or nil if none found.
type CompareConfigureInfoMultiError ¶
type CompareConfigureInfoMultiError []error
CompareConfigureInfoMultiError is an error wrapping multiple validation errors returned by CompareConfigureInfo.ValidateAll() if the designated constraints aren't met.
func (CompareConfigureInfoMultiError) AllErrors ¶
func (m CompareConfigureInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompareConfigureInfoMultiError) Error ¶
func (m CompareConfigureInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompareConfigureInfoValidationError ¶
type CompareConfigureInfoValidationError struct {
// contains filtered or unexported fields
}
CompareConfigureInfoValidationError is the validation error returned by CompareConfigureInfo.Validate if the designated constraints aren't met.
func (CompareConfigureInfoValidationError) Cause ¶
func (e CompareConfigureInfoValidationError) Cause() error
Cause function returns cause value.
func (CompareConfigureInfoValidationError) Error ¶
func (e CompareConfigureInfoValidationError) Error() string
Error satisfies the builtin error interface
func (CompareConfigureInfoValidationError) ErrorName ¶
func (e CompareConfigureInfoValidationError) ErrorName() string
ErrorName returns error name.
func (CompareConfigureInfoValidationError) Field ¶
func (e CompareConfigureInfoValidationError) Field() string
Field function returns field value.
func (CompareConfigureInfoValidationError) Key ¶
func (e CompareConfigureInfoValidationError) Key() bool
Key function returns key value.
func (CompareConfigureInfoValidationError) Reason ¶
func (e CompareConfigureInfoValidationError) Reason() string
Reason function returns reason value.
type CompareConfigureReply ¶
type CompareConfigureReply struct { List []*CompareConfigureInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*CompareConfigureReply) Descriptor
deprecated
func (*CompareConfigureReply) Descriptor() ([]byte, []int)
Deprecated: Use CompareConfigureReply.ProtoReflect.Descriptor instead.
func (*CompareConfigureReply) GetList ¶
func (x *CompareConfigureReply) GetList() []*CompareConfigureInfo
func (*CompareConfigureReply) ProtoMessage ¶
func (*CompareConfigureReply) ProtoMessage()
func (*CompareConfigureReply) ProtoReflect ¶
func (x *CompareConfigureReply) ProtoReflect() protoreflect.Message
func (*CompareConfigureReply) Reset ¶
func (x *CompareConfigureReply) Reset()
func (*CompareConfigureReply) String ¶
func (x *CompareConfigureReply) String() string
func (*CompareConfigureReply) Validate ¶
func (m *CompareConfigureReply) Validate() error
Validate checks the field values on CompareConfigureReply 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 (*CompareConfigureReply) ValidateAll ¶
func (m *CompareConfigureReply) ValidateAll() error
ValidateAll checks the field values on CompareConfigureReply 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 CompareConfigureReplyMultiError, or nil if none found.
type CompareConfigureReplyMultiError ¶
type CompareConfigureReplyMultiError []error
CompareConfigureReplyMultiError is an error wrapping multiple validation errors returned by CompareConfigureReply.ValidateAll() if the designated constraints aren't met.
func (CompareConfigureReplyMultiError) AllErrors ¶
func (m CompareConfigureReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompareConfigureReplyMultiError) Error ¶
func (m CompareConfigureReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompareConfigureReplyValidationError ¶
type CompareConfigureReplyValidationError struct {
// contains filtered or unexported fields
}
CompareConfigureReplyValidationError is the validation error returned by CompareConfigureReply.Validate if the designated constraints aren't met.
func (CompareConfigureReplyValidationError) Cause ¶
func (e CompareConfigureReplyValidationError) Cause() error
Cause function returns cause value.
func (CompareConfigureReplyValidationError) Error ¶
func (e CompareConfigureReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CompareConfigureReplyValidationError) ErrorName ¶
func (e CompareConfigureReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CompareConfigureReplyValidationError) Field ¶
func (e CompareConfigureReplyValidationError) Field() string
Field function returns field value.
func (CompareConfigureReplyValidationError) Key ¶
func (e CompareConfigureReplyValidationError) Key() bool
Key function returns key value.
func (CompareConfigureReplyValidationError) Reason ¶
func (e CompareConfigureReplyValidationError) Reason() string
Reason function returns reason value.
type CompareConfigureRequest ¶
type CompareConfigureRequest struct { ServerId uint32 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` EnvId uint32 `protobuf:"varint,2,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` // contains filtered or unexported fields }
对比配置
func (*CompareConfigureRequest) Descriptor
deprecated
func (*CompareConfigureRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompareConfigureRequest.ProtoReflect.Descriptor instead.
func (*CompareConfigureRequest) GetEnvId ¶
func (x *CompareConfigureRequest) GetEnvId() uint32
func (*CompareConfigureRequest) GetServerId ¶
func (x *CompareConfigureRequest) GetServerId() uint32
func (*CompareConfigureRequest) ProtoMessage ¶
func (*CompareConfigureRequest) ProtoMessage()
func (*CompareConfigureRequest) ProtoReflect ¶
func (x *CompareConfigureRequest) ProtoReflect() protoreflect.Message
func (*CompareConfigureRequest) Reset ¶
func (x *CompareConfigureRequest) Reset()
func (*CompareConfigureRequest) String ¶
func (x *CompareConfigureRequest) String() string
func (*CompareConfigureRequest) Validate ¶
func (m *CompareConfigureRequest) Validate() error
Validate checks the field values on CompareConfigureRequest 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 (*CompareConfigureRequest) ValidateAll ¶
func (m *CompareConfigureRequest) ValidateAll() error
ValidateAll checks the field values on CompareConfigureRequest 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 CompareConfigureRequestMultiError, or nil if none found.
type CompareConfigureRequestMultiError ¶
type CompareConfigureRequestMultiError []error
CompareConfigureRequestMultiError is an error wrapping multiple validation errors returned by CompareConfigureRequest.ValidateAll() if the designated constraints aren't met.
func (CompareConfigureRequestMultiError) AllErrors ¶
func (m CompareConfigureRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompareConfigureRequestMultiError) Error ¶
func (m CompareConfigureRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompareConfigureRequestValidationError ¶
type CompareConfigureRequestValidationError struct {
// contains filtered or unexported fields
}
CompareConfigureRequestValidationError is the validation error returned by CompareConfigureRequest.Validate if the designated constraints aren't met.
func (CompareConfigureRequestValidationError) Cause ¶
func (e CompareConfigureRequestValidationError) Cause() error
Cause function returns cause value.
func (CompareConfigureRequestValidationError) Error ¶
func (e CompareConfigureRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompareConfigureRequestValidationError) ErrorName ¶
func (e CompareConfigureRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompareConfigureRequestValidationError) Field ¶
func (e CompareConfigureRequestValidationError) Field() string
Field function returns field value.
func (CompareConfigureRequestValidationError) Key ¶
func (e CompareConfigureRequestValidationError) Key() bool
Key function returns key value.
func (CompareConfigureRequestValidationError) Reason ¶
func (e CompareConfigureRequestValidationError) Reason() string
Reason function returns reason value.
type GetConfigureReply ¶
type GetConfigureReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ServerId uint32 `protobuf:"varint,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` EnvId uint32 `protobuf:"varint,3,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` Format string `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"` CreatedAt uint32 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*GetConfigureReply) Descriptor
deprecated
func (*GetConfigureReply) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigureReply.ProtoReflect.Descriptor instead.
func (*GetConfigureReply) GetContent ¶
func (x *GetConfigureReply) GetContent() string
func (*GetConfigureReply) GetCreatedAt ¶
func (x *GetConfigureReply) GetCreatedAt() uint32
func (*GetConfigureReply) GetDescription ¶
func (x *GetConfigureReply) GetDescription() string
func (*GetConfigureReply) GetEnvId ¶
func (x *GetConfigureReply) GetEnvId() uint32
func (*GetConfigureReply) GetFormat ¶
func (x *GetConfigureReply) GetFormat() string
func (*GetConfigureReply) GetId ¶
func (x *GetConfigureReply) GetId() uint32
func (*GetConfigureReply) GetServerId ¶
func (x *GetConfigureReply) GetServerId() uint32
func (*GetConfigureReply) GetVersion ¶
func (x *GetConfigureReply) GetVersion() string
func (*GetConfigureReply) ProtoMessage ¶
func (*GetConfigureReply) ProtoMessage()
func (*GetConfigureReply) ProtoReflect ¶
func (x *GetConfigureReply) ProtoReflect() protoreflect.Message
func (*GetConfigureReply) Reset ¶
func (x *GetConfigureReply) Reset()
func (*GetConfigureReply) String ¶
func (x *GetConfigureReply) String() string
func (*GetConfigureReply) Validate ¶
func (m *GetConfigureReply) Validate() error
Validate checks the field values on GetConfigureReply 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 (*GetConfigureReply) ValidateAll ¶
func (m *GetConfigureReply) ValidateAll() error
ValidateAll checks the field values on GetConfigureReply 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 GetConfigureReplyMultiError, or nil if none found.
type GetConfigureReplyMultiError ¶
type GetConfigureReplyMultiError []error
GetConfigureReplyMultiError is an error wrapping multiple validation errors returned by GetConfigureReply.ValidateAll() if the designated constraints aren't met.
func (GetConfigureReplyMultiError) AllErrors ¶
func (m GetConfigureReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetConfigureReplyMultiError) Error ¶
func (m GetConfigureReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetConfigureReplyValidationError ¶
type GetConfigureReplyValidationError struct {
// contains filtered or unexported fields
}
GetConfigureReplyValidationError is the validation error returned by GetConfigureReply.Validate if the designated constraints aren't met.
func (GetConfigureReplyValidationError) Cause ¶
func (e GetConfigureReplyValidationError) Cause() error
Cause function returns cause value.
func (GetConfigureReplyValidationError) Error ¶
func (e GetConfigureReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetConfigureReplyValidationError) ErrorName ¶
func (e GetConfigureReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetConfigureReplyValidationError) Field ¶
func (e GetConfigureReplyValidationError) Field() string
Field function returns field value.
func (GetConfigureReplyValidationError) Key ¶
func (e GetConfigureReplyValidationError) Key() bool
Key function returns key value.
func (GetConfigureReplyValidationError) Reason ¶
func (e GetConfigureReplyValidationError) Reason() string
Reason function returns reason value.
type GetConfigureRequest ¶
type GetConfigureRequest struct { ServerId uint32 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` EnvId uint32 `protobuf:"varint,2,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` // contains filtered or unexported fields }
查询指定模板
func (*GetConfigureRequest) Descriptor
deprecated
func (*GetConfigureRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigureRequest.ProtoReflect.Descriptor instead.
func (*GetConfigureRequest) GetEnvId ¶
func (x *GetConfigureRequest) GetEnvId() uint32
func (*GetConfigureRequest) GetServerId ¶
func (x *GetConfigureRequest) GetServerId() uint32
func (*GetConfigureRequest) ProtoMessage ¶
func (*GetConfigureRequest) ProtoMessage()
func (*GetConfigureRequest) ProtoReflect ¶
func (x *GetConfigureRequest) ProtoReflect() protoreflect.Message
func (*GetConfigureRequest) Reset ¶
func (x *GetConfigureRequest) Reset()
func (*GetConfigureRequest) String ¶
func (x *GetConfigureRequest) String() string
func (*GetConfigureRequest) Validate ¶
func (m *GetConfigureRequest) Validate() error
Validate checks the field values on GetConfigureRequest 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 (*GetConfigureRequest) ValidateAll ¶
func (m *GetConfigureRequest) ValidateAll() error
ValidateAll checks the field values on GetConfigureRequest 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 GetConfigureRequestMultiError, or nil if none found.
type GetConfigureRequestMultiError ¶
type GetConfigureRequestMultiError []error
GetConfigureRequestMultiError is an error wrapping multiple validation errors returned by GetConfigureRequest.ValidateAll() if the designated constraints aren't met.
func (GetConfigureRequestMultiError) AllErrors ¶
func (m GetConfigureRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetConfigureRequestMultiError) Error ¶
func (m GetConfigureRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetConfigureRequestValidationError ¶
type GetConfigureRequestValidationError struct {
// contains filtered or unexported fields
}
GetConfigureRequestValidationError is the validation error returned by GetConfigureRequest.Validate if the designated constraints aren't met.
func (GetConfigureRequestValidationError) Cause ¶
func (e GetConfigureRequestValidationError) Cause() error
Cause function returns cause value.
func (GetConfigureRequestValidationError) Error ¶
func (e GetConfigureRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetConfigureRequestValidationError) ErrorName ¶
func (e GetConfigureRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetConfigureRequestValidationError) Field ¶
func (e GetConfigureRequestValidationError) Field() string
Field function returns field value.
func (GetConfigureRequestValidationError) Key ¶
func (e GetConfigureRequestValidationError) Key() bool
Key function returns key value.
func (GetConfigureRequestValidationError) Reason ¶
func (e GetConfigureRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { GetConfigure(ctx context.Context, in *GetConfigureRequest, opts ...grpc.CallOption) (*GetConfigureReply, error) UpdateConfigure(ctx context.Context, in *UpdateConfigureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CompareConfigure(ctx context.Context, in *CompareConfigureRequest, opts ...grpc.CallOption) (*CompareConfigureReply, error) WatchConfigure(ctx context.Context, in *WatchConfigureRequest, opts ...grpc.CallOption) (Service_WatchConfigureClient, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { CompareConfigure(ctx context.Context, req *CompareConfigureRequest, opts ...http.CallOption) (rsp *CompareConfigureReply, err error) GetConfigure(ctx context.Context, req *GetConfigureRequest, opts ...http.CallOption) (rsp *GetConfigureReply, err error) UpdateConfigure(ctx context.Context, req *UpdateConfigureRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) CompareConfigure ¶
func (c *ServiceHTTPClientImpl) CompareConfigure(ctx context.Context, in *CompareConfigureRequest, opts ...http.CallOption) (*CompareConfigureReply, error)
func (*ServiceHTTPClientImpl) GetConfigure ¶
func (c *ServiceHTTPClientImpl) GetConfigure(ctx context.Context, in *GetConfigureRequest, opts ...http.CallOption) (*GetConfigureReply, error)
func (*ServiceHTTPClientImpl) UpdateConfigure ¶
func (c *ServiceHTTPClientImpl) UpdateConfigure(ctx context.Context, in *UpdateConfigureRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { CompareConfigure(context.Context, *CompareConfigureRequest) (*CompareConfigureReply, error) GetConfigure(context.Context, *GetConfigureRequest) (*GetConfigureReply, error) UpdateConfigure(context.Context, *UpdateConfigureRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { GetConfigure(context.Context, *GetConfigureRequest) (*GetConfigureReply, error) UpdateConfigure(context.Context, *UpdateConfigureRequest) (*emptypb.Empty, error) CompareConfigure(context.Context, *CompareConfigureRequest) (*CompareConfigureReply, error) WatchConfigure(*WatchConfigureRequest, Service_WatchConfigureServer) error // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type Service_WatchConfigureClient ¶
type Service_WatchConfigureClient interface { Recv() (*WatchConfigureReply, error) grpc.ClientStream }
type Service_WatchConfigureServer ¶
type Service_WatchConfigureServer interface { Send(*WatchConfigureReply) error grpc.ServerStream }
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) CompareConfigure ¶
func (UnimplementedServiceServer) CompareConfigure(context.Context, *CompareConfigureRequest) (*CompareConfigureReply, error)
func (UnimplementedServiceServer) GetConfigure ¶
func (UnimplementedServiceServer) GetConfigure(context.Context, *GetConfigureRequest) (*GetConfigureReply, error)
func (UnimplementedServiceServer) UpdateConfigure ¶
func (UnimplementedServiceServer) UpdateConfigure(context.Context, *UpdateConfigureRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) WatchConfigure ¶
func (UnimplementedServiceServer) WatchConfigure(*WatchConfigureRequest, Service_WatchConfigureServer) error
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateConfigureRequest ¶
type UpdateConfigureRequest struct { ServerId uint32 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` EnvId uint32 `protobuf:"varint,2,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
新增配置
func (*UpdateConfigureRequest) Descriptor
deprecated
func (*UpdateConfigureRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateConfigureRequest.ProtoReflect.Descriptor instead.
func (*UpdateConfigureRequest) GetDescription ¶
func (x *UpdateConfigureRequest) GetDescription() string
func (*UpdateConfigureRequest) GetEnvId ¶
func (x *UpdateConfigureRequest) GetEnvId() uint32
func (*UpdateConfigureRequest) GetServerId ¶
func (x *UpdateConfigureRequest) GetServerId() uint32
func (*UpdateConfigureRequest) ProtoMessage ¶
func (*UpdateConfigureRequest) ProtoMessage()
func (*UpdateConfigureRequest) ProtoReflect ¶
func (x *UpdateConfigureRequest) ProtoReflect() protoreflect.Message
func (*UpdateConfigureRequest) Reset ¶
func (x *UpdateConfigureRequest) Reset()
func (*UpdateConfigureRequest) String ¶
func (x *UpdateConfigureRequest) String() string
func (*UpdateConfigureRequest) Validate ¶
func (m *UpdateConfigureRequest) Validate() error
Validate checks the field values on UpdateConfigureRequest 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 (*UpdateConfigureRequest) ValidateAll ¶
func (m *UpdateConfigureRequest) ValidateAll() error
ValidateAll checks the field values on UpdateConfigureRequest 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 UpdateConfigureRequestMultiError, or nil if none found.
type UpdateConfigureRequestMultiError ¶
type UpdateConfigureRequestMultiError []error
UpdateConfigureRequestMultiError is an error wrapping multiple validation errors returned by UpdateConfigureRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateConfigureRequestMultiError) AllErrors ¶
func (m UpdateConfigureRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateConfigureRequestMultiError) Error ¶
func (m UpdateConfigureRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateConfigureRequestValidationError ¶
type UpdateConfigureRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateConfigureRequestValidationError is the validation error returned by UpdateConfigureRequest.Validate if the designated constraints aren't met.
func (UpdateConfigureRequestValidationError) Cause ¶
func (e UpdateConfigureRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateConfigureRequestValidationError) Error ¶
func (e UpdateConfigureRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateConfigureRequestValidationError) ErrorName ¶
func (e UpdateConfigureRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateConfigureRequestValidationError) Field ¶
func (e UpdateConfigureRequestValidationError) Field() string
Field function returns field value.
func (UpdateConfigureRequestValidationError) Key ¶
func (e UpdateConfigureRequestValidationError) Key() bool
Key function returns key value.
func (UpdateConfigureRequestValidationError) Reason ¶
func (e UpdateConfigureRequestValidationError) Reason() string
Reason function returns reason value.
type WatchConfigureReply ¶
type WatchConfigureReply struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
func (*WatchConfigureReply) Descriptor
deprecated
func (*WatchConfigureReply) Descriptor() ([]byte, []int)
Deprecated: Use WatchConfigureReply.ProtoReflect.Descriptor instead.
func (*WatchConfigureReply) GetContent ¶
func (x *WatchConfigureReply) GetContent() string
func (*WatchConfigureReply) GetFormat ¶
func (x *WatchConfigureReply) GetFormat() string
func (*WatchConfigureReply) ProtoMessage ¶
func (*WatchConfigureReply) ProtoMessage()
func (*WatchConfigureReply) ProtoReflect ¶
func (x *WatchConfigureReply) ProtoReflect() protoreflect.Message
func (*WatchConfigureReply) Reset ¶
func (x *WatchConfigureReply) Reset()
func (*WatchConfigureReply) String ¶
func (x *WatchConfigureReply) String() string
func (*WatchConfigureReply) Validate ¶
func (m *WatchConfigureReply) Validate() error
Validate checks the field values on WatchConfigureReply 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 (*WatchConfigureReply) ValidateAll ¶
func (m *WatchConfigureReply) ValidateAll() error
ValidateAll checks the field values on WatchConfigureReply 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 WatchConfigureReplyMultiError, or nil if none found.
type WatchConfigureReplyMultiError ¶
type WatchConfigureReplyMultiError []error
WatchConfigureReplyMultiError is an error wrapping multiple validation errors returned by WatchConfigureReply.ValidateAll() if the designated constraints aren't met.
func (WatchConfigureReplyMultiError) AllErrors ¶
func (m WatchConfigureReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WatchConfigureReplyMultiError) Error ¶
func (m WatchConfigureReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WatchConfigureReplyValidationError ¶
type WatchConfigureReplyValidationError struct {
// contains filtered or unexported fields
}
WatchConfigureReplyValidationError is the validation error returned by WatchConfigureReply.Validate if the designated constraints aren't met.
func (WatchConfigureReplyValidationError) Cause ¶
func (e WatchConfigureReplyValidationError) Cause() error
Cause function returns cause value.
func (WatchConfigureReplyValidationError) Error ¶
func (e WatchConfigureReplyValidationError) Error() string
Error satisfies the builtin error interface
func (WatchConfigureReplyValidationError) ErrorName ¶
func (e WatchConfigureReplyValidationError) ErrorName() string
ErrorName returns error name.
func (WatchConfigureReplyValidationError) Field ¶
func (e WatchConfigureReplyValidationError) Field() string
Field function returns field value.
func (WatchConfigureReplyValidationError) Key ¶
func (e WatchConfigureReplyValidationError) Key() bool
Key function returns key value.
func (WatchConfigureReplyValidationError) Reason ¶
func (e WatchConfigureReplyValidationError) Reason() string
Reason function returns reason value.
type WatchConfigureRequest ¶
type WatchConfigureRequest struct { Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
监听获取配置
func (*WatchConfigureRequest) Descriptor
deprecated
func (*WatchConfigureRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchConfigureRequest.ProtoReflect.Descriptor instead.
func (*WatchConfigureRequest) GetServer ¶
func (x *WatchConfigureRequest) GetServer() string
func (*WatchConfigureRequest) GetToken ¶
func (x *WatchConfigureRequest) GetToken() string
func (*WatchConfigureRequest) ProtoMessage ¶
func (*WatchConfigureRequest) ProtoMessage()
func (*WatchConfigureRequest) ProtoReflect ¶
func (x *WatchConfigureRequest) ProtoReflect() protoreflect.Message
func (*WatchConfigureRequest) Reset ¶
func (x *WatchConfigureRequest) Reset()
func (*WatchConfigureRequest) String ¶
func (x *WatchConfigureRequest) String() string
func (*WatchConfigureRequest) Validate ¶
func (m *WatchConfigureRequest) Validate() error
Validate checks the field values on WatchConfigureRequest 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 (*WatchConfigureRequest) ValidateAll ¶
func (m *WatchConfigureRequest) ValidateAll() error
ValidateAll checks the field values on WatchConfigureRequest 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 WatchConfigureRequestMultiError, or nil if none found.
type WatchConfigureRequestMultiError ¶
type WatchConfigureRequestMultiError []error
WatchConfigureRequestMultiError is an error wrapping multiple validation errors returned by WatchConfigureRequest.ValidateAll() if the designated constraints aren't met.
func (WatchConfigureRequestMultiError) AllErrors ¶
func (m WatchConfigureRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WatchConfigureRequestMultiError) Error ¶
func (m WatchConfigureRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WatchConfigureRequestValidationError ¶
type WatchConfigureRequestValidationError struct {
// contains filtered or unexported fields
}
WatchConfigureRequestValidationError is the validation error returned by WatchConfigureRequest.Validate if the designated constraints aren't met.
func (WatchConfigureRequestValidationError) Cause ¶
func (e WatchConfigureRequestValidationError) Cause() error
Cause function returns cause value.
func (WatchConfigureRequestValidationError) Error ¶
func (e WatchConfigureRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WatchConfigureRequestValidationError) ErrorName ¶
func (e WatchConfigureRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WatchConfigureRequestValidationError) Field ¶
func (e WatchConfigureRequestValidationError) Field() string
Field function returns field value.
func (WatchConfigureRequestValidationError) Key ¶
func (e WatchConfigureRequestValidationError) Key() bool
Key function returns key value.
func (WatchConfigureRequestValidationError) Reason ¶
func (e WatchConfigureRequestValidationError) Reason() string
Reason function returns reason value.