Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddTemplateRequest
- func (*AddTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddTemplateRequest) GetContent() string
- func (x *AddTemplateRequest) GetDescription() string
- func (x *AddTemplateRequest) GetFormat() string
- func (x *AddTemplateRequest) GetServerId() uint32
- func (*AddTemplateRequest) ProtoMessage()
- func (x *AddTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *AddTemplateRequest) Reset()
- func (x *AddTemplateRequest) String() string
- func (m *AddTemplateRequest) Validate() error
- func (m *AddTemplateRequest) ValidateAll() error
- type AddTemplateRequestMultiError
- type AddTemplateRequestValidationError
- func (e AddTemplateRequestValidationError) Cause() error
- func (e AddTemplateRequestValidationError) Error() string
- func (e AddTemplateRequestValidationError) ErrorName() string
- func (e AddTemplateRequestValidationError) Field() string
- func (e AddTemplateRequestValidationError) Key() bool
- func (e AddTemplateRequestValidationError) Reason() string
- type CompareTemplateInfo
- func (*CompareTemplateInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CompareTemplateInfo) GetCur() string
- func (x *CompareTemplateInfo) GetKey() string
- func (x *CompareTemplateInfo) GetOld() string
- func (x *CompareTemplateInfo) GetType() string
- func (*CompareTemplateInfo) ProtoMessage()
- func (x *CompareTemplateInfo) ProtoReflect() protoreflect.Message
- func (x *CompareTemplateInfo) Reset()
- func (x *CompareTemplateInfo) String() string
- func (m *CompareTemplateInfo) Validate() error
- func (m *CompareTemplateInfo) ValidateAll() error
- type CompareTemplateInfoMultiError
- type CompareTemplateInfoValidationError
- func (e CompareTemplateInfoValidationError) Cause() error
- func (e CompareTemplateInfoValidationError) Error() string
- func (e CompareTemplateInfoValidationError) ErrorName() string
- func (e CompareTemplateInfoValidationError) Field() string
- func (e CompareTemplateInfoValidationError) Key() bool
- func (e CompareTemplateInfoValidationError) Reason() string
- type CompareTemplateReply
- func (*CompareTemplateReply) Descriptor() ([]byte, []int)deprecated
- func (x *CompareTemplateReply) GetList() []*CompareTemplateInfo
- func (*CompareTemplateReply) ProtoMessage()
- func (x *CompareTemplateReply) ProtoReflect() protoreflect.Message
- func (x *CompareTemplateReply) Reset()
- func (x *CompareTemplateReply) String() string
- func (m *CompareTemplateReply) Validate() error
- func (m *CompareTemplateReply) ValidateAll() error
- type CompareTemplateReplyMultiError
- type CompareTemplateReplyValidationError
- func (e CompareTemplateReplyValidationError) Cause() error
- func (e CompareTemplateReplyValidationError) Error() string
- func (e CompareTemplateReplyValidationError) ErrorName() string
- func (e CompareTemplateReplyValidationError) Field() string
- func (e CompareTemplateReplyValidationError) Key() bool
- func (e CompareTemplateReplyValidationError) Reason() string
- type CompareTemplateRequest
- func (*CompareTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompareTemplateRequest) GetContent() string
- func (x *CompareTemplateRequest) GetFormat() string
- func (x *CompareTemplateRequest) GetId() uint32
- func (*CompareTemplateRequest) ProtoMessage()
- func (x *CompareTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *CompareTemplateRequest) Reset()
- func (x *CompareTemplateRequest) String() string
- func (m *CompareTemplateRequest) Validate() error
- func (m *CompareTemplateRequest) ValidateAll() error
- type CompareTemplateRequestMultiError
- type CompareTemplateRequestValidationError
- func (e CompareTemplateRequestValidationError) Cause() error
- func (e CompareTemplateRequestValidationError) Error() string
- func (e CompareTemplateRequestValidationError) ErrorName() string
- func (e CompareTemplateRequestValidationError) Field() string
- func (e CompareTemplateRequestValidationError) Key() bool
- func (e CompareTemplateRequestValidationError) Reason() string
- type CurrentTemplateReply
- func (*CurrentTemplateReply) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentTemplateReply) GetCompare() string
- func (x *CurrentTemplateReply) GetContent() string
- func (x *CurrentTemplateReply) GetCreatedAt() uint32
- func (x *CurrentTemplateReply) GetDescription() string
- func (x *CurrentTemplateReply) GetFormat() string
- func (x *CurrentTemplateReply) GetId() uint32
- func (x *CurrentTemplateReply) GetIsUse() bool
- func (x *CurrentTemplateReply) GetServerId() uint32
- func (x *CurrentTemplateReply) GetVersion() string
- func (*CurrentTemplateReply) ProtoMessage()
- func (x *CurrentTemplateReply) ProtoReflect() protoreflect.Message
- func (x *CurrentTemplateReply) Reset()
- func (x *CurrentTemplateReply) String() string
- func (m *CurrentTemplateReply) Validate() error
- func (m *CurrentTemplateReply) ValidateAll() error
- type CurrentTemplateReplyMultiError
- type CurrentTemplateReplyValidationError
- func (e CurrentTemplateReplyValidationError) Cause() error
- func (e CurrentTemplateReplyValidationError) Error() string
- func (e CurrentTemplateReplyValidationError) ErrorName() string
- func (e CurrentTemplateReplyValidationError) Field() string
- func (e CurrentTemplateReplyValidationError) Key() bool
- func (e CurrentTemplateReplyValidationError) Reason() string
- type CurrentTemplateRequest
- func (*CurrentTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentTemplateRequest) GetServerId() uint32
- func (*CurrentTemplateRequest) ProtoMessage()
- func (x *CurrentTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *CurrentTemplateRequest) Reset()
- func (x *CurrentTemplateRequest) String() string
- func (m *CurrentTemplateRequest) Validate() error
- func (m *CurrentTemplateRequest) ValidateAll() error
- type CurrentTemplateRequestMultiError
- type CurrentTemplateRequestValidationError
- func (e CurrentTemplateRequestValidationError) Cause() error
- func (e CurrentTemplateRequestValidationError) Error() string
- func (e CurrentTemplateRequestValidationError) ErrorName() string
- func (e CurrentTemplateRequestValidationError) Field() string
- func (e CurrentTemplateRequestValidationError) Key() bool
- func (e CurrentTemplateRequestValidationError) Reason() string
- type GetTemplateReply
- func (*GetTemplateReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetTemplateReply) GetContent() string
- func (x *GetTemplateReply) GetDescription() string
- func (x *GetTemplateReply) GetId() uint32
- func (x *GetTemplateReply) GetIsUse() bool
- func (x *GetTemplateReply) GetOperator() string
- func (x *GetTemplateReply) GetOperatorId() uint32
- func (x *GetTemplateReply) GetServerId() uint32
- func (x *GetTemplateReply) GetVersion() string
- func (*GetTemplateReply) ProtoMessage()
- func (x *GetTemplateReply) ProtoReflect() protoreflect.Message
- func (x *GetTemplateReply) Reset()
- func (x *GetTemplateReply) String() string
- func (m *GetTemplateReply) Validate() error
- func (m *GetTemplateReply) ValidateAll() error
- type GetTemplateReplyMultiError
- type GetTemplateReplyValidationError
- func (e GetTemplateReplyValidationError) Cause() error
- func (e GetTemplateReplyValidationError) Error() string
- func (e GetTemplateReplyValidationError) ErrorName() string
- func (e GetTemplateReplyValidationError) Field() string
- func (e GetTemplateReplyValidationError) Key() bool
- func (e GetTemplateReplyValidationError) Reason() string
- type GetTemplateRequest
- func (*GetTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTemplateRequest) GetId() uint32
- func (*GetTemplateRequest) ProtoMessage()
- func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *GetTemplateRequest) Reset()
- func (x *GetTemplateRequest) String() string
- func (m *GetTemplateRequest) Validate() error
- func (m *GetTemplateRequest) ValidateAll() error
- type GetTemplateRequestMultiError
- type GetTemplateRequestValidationError
- func (e GetTemplateRequestValidationError) Cause() error
- func (e GetTemplateRequestValidationError) Error() string
- func (e GetTemplateRequestValidationError) ErrorName() string
- func (e GetTemplateRequestValidationError) Field() string
- func (e GetTemplateRequestValidationError) Key() bool
- func (e GetTemplateRequestValidationError) Reason() string
- type PageTemplateReply
- func (*PageTemplateReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageTemplateReply) GetList() []*Template
- func (x *PageTemplateReply) GetTotal() uint32
- func (*PageTemplateReply) ProtoMessage()
- func (x *PageTemplateReply) ProtoReflect() protoreflect.Message
- func (x *PageTemplateReply) Reset()
- func (x *PageTemplateReply) String() string
- func (m *PageTemplateReply) Validate() error
- func (m *PageTemplateReply) ValidateAll() error
- type PageTemplateReplyMultiError
- type PageTemplateReplyValidationError
- func (e PageTemplateReplyValidationError) Cause() error
- func (e PageTemplateReplyValidationError) Error() string
- func (e PageTemplateReplyValidationError) ErrorName() string
- func (e PageTemplateReplyValidationError) Field() string
- func (e PageTemplateReplyValidationError) Key() bool
- func (e PageTemplateReplyValidationError) Reason() string
- type PageTemplateRequest
- func (*PageTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageTemplateRequest) GetPage() uint32
- func (x *PageTemplateRequest) GetPageSize() uint32
- func (x *PageTemplateRequest) GetServerId() uint32
- func (*PageTemplateRequest) ProtoMessage()
- func (x *PageTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *PageTemplateRequest) Reset()
- func (x *PageTemplateRequest) String() string
- func (m *PageTemplateRequest) Validate() error
- func (m *PageTemplateRequest) ValidateAll() error
- type PageTemplateRequestMultiError
- type PageTemplateRequestValidationError
- func (e PageTemplateRequestValidationError) Cause() error
- func (e PageTemplateRequestValidationError) Error() string
- func (e PageTemplateRequestValidationError) ErrorName() string
- func (e PageTemplateRequestValidationError) Field() string
- func (e PageTemplateRequestValidationError) Key() bool
- func (e PageTemplateRequestValidationError) Reason() string
- type ParseTemplateReply
- func (*ParseTemplateReply) Descriptor() ([]byte, []int)deprecated
- func (x *ParseTemplateReply) GetContent() string
- func (x *ParseTemplateReply) GetFormat() string
- func (*ParseTemplateReply) ProtoMessage()
- func (x *ParseTemplateReply) ProtoReflect() protoreflect.Message
- func (x *ParseTemplateReply) Reset()
- func (x *ParseTemplateReply) String() string
- func (m *ParseTemplateReply) Validate() error
- func (m *ParseTemplateReply) ValidateAll() error
- type ParseTemplateReplyMultiError
- type ParseTemplateReplyValidationError
- func (e ParseTemplateReplyValidationError) Cause() error
- func (e ParseTemplateReplyValidationError) Error() string
- func (e ParseTemplateReplyValidationError) ErrorName() string
- func (e ParseTemplateReplyValidationError) Field() string
- func (e ParseTemplateReplyValidationError) Key() bool
- func (e ParseTemplateReplyValidationError) Reason() string
- type ParseTemplateRequest
- func (*ParseTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ParseTemplateRequest) GetEnvId() uint32
- func (x *ParseTemplateRequest) GetServerId() uint32
- func (*ParseTemplateRequest) ProtoMessage()
- func (x *ParseTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *ParseTemplateRequest) Reset()
- func (x *ParseTemplateRequest) String() string
- func (m *ParseTemplateRequest) Validate() error
- func (m *ParseTemplateRequest) ValidateAll() error
- type ParseTemplateRequestMultiError
- type ParseTemplateRequestValidationError
- func (e ParseTemplateRequestValidationError) Cause() error
- func (e ParseTemplateRequestValidationError) Error() string
- func (e ParseTemplateRequestValidationError) ErrorName() string
- func (e ParseTemplateRequestValidationError) Field() string
- func (e ParseTemplateRequestValidationError) Key() bool
- func (e ParseTemplateRequestValidationError) Reason() string
- type PreviewTemplateReply
- func (*PreviewTemplateReply) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewTemplateReply) GetContent() string
- func (*PreviewTemplateReply) ProtoMessage()
- func (x *PreviewTemplateReply) ProtoReflect() protoreflect.Message
- func (x *PreviewTemplateReply) Reset()
- func (x *PreviewTemplateReply) String() string
- func (m *PreviewTemplateReply) Validate() error
- func (m *PreviewTemplateReply) ValidateAll() error
- type PreviewTemplateReplyMultiError
- type PreviewTemplateReplyValidationError
- func (e PreviewTemplateReplyValidationError) Cause() error
- func (e PreviewTemplateReplyValidationError) Error() string
- func (e PreviewTemplateReplyValidationError) ErrorName() string
- func (e PreviewTemplateReplyValidationError) Field() string
- func (e PreviewTemplateReplyValidationError) Key() bool
- func (e PreviewTemplateReplyValidationError) Reason() string
- type PreviewTemplateRequest
- func (*PreviewTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewTemplateRequest) GetContent() string
- func (x *PreviewTemplateRequest) GetEnvId() uint32
- func (x *PreviewTemplateRequest) GetFormat() string
- func (x *PreviewTemplateRequest) GetServerId() uint32
- func (*PreviewTemplateRequest) ProtoMessage()
- func (x *PreviewTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewTemplateRequest) Reset()
- func (x *PreviewTemplateRequest) String() string
- func (m *PreviewTemplateRequest) Validate() error
- func (m *PreviewTemplateRequest) ValidateAll() error
- type PreviewTemplateRequestMultiError
- type PreviewTemplateRequestValidationError
- func (e PreviewTemplateRequestValidationError) Cause() error
- func (e PreviewTemplateRequestValidationError) Error() string
- func (e PreviewTemplateRequestValidationError) ErrorName() string
- func (e PreviewTemplateRequestValidationError) Field() string
- func (e PreviewTemplateRequestValidationError) Key() bool
- func (e PreviewTemplateRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddTemplate(ctx context.Context, in *AddTemplateRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) CompareTemplate(ctx context.Context, in *CompareTemplateRequest, opts ...http.CallOption) (*CompareTemplateReply, error)
- func (c *ServiceHTTPClientImpl) CurrentTemplate(ctx context.Context, in *CurrentTemplateRequest, opts ...http.CallOption) (*CurrentTemplateReply, error)
- func (c *ServiceHTTPClientImpl) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...http.CallOption) (*GetTemplateReply, error)
- func (c *ServiceHTTPClientImpl) PageTemplate(ctx context.Context, in *PageTemplateRequest, opts ...http.CallOption) (*PageTemplateReply, error)
- func (c *ServiceHTTPClientImpl) ParseTemplate(ctx context.Context, in *ParseTemplateRequest, opts ...http.CallOption) (*ParseTemplateReply, error)
- func (c *ServiceHTTPClientImpl) PreviewTemplate(ctx context.Context, in *PreviewTemplateRequest, opts ...http.CallOption) (*PreviewTemplateReply, error)
- func (c *ServiceHTTPClientImpl) SwitchTemplate(ctx context.Context, in *SwitchTemplateRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type SwitchTemplateRequest
- func (*SwitchTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchTemplateRequest) GetId() uint32
- func (x *SwitchTemplateRequest) GetServerId() uint32
- func (*SwitchTemplateRequest) ProtoMessage()
- func (x *SwitchTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *SwitchTemplateRequest) Reset()
- func (x *SwitchTemplateRequest) String() string
- func (m *SwitchTemplateRequest) Validate() error
- func (m *SwitchTemplateRequest) ValidateAll() error
- type SwitchTemplateRequestMultiError
- type SwitchTemplateRequestValidationError
- func (e SwitchTemplateRequestValidationError) Cause() error
- func (e SwitchTemplateRequestValidationError) Error() string
- func (e SwitchTemplateRequestValidationError) ErrorName() string
- func (e SwitchTemplateRequestValidationError) Field() string
- func (e SwitchTemplateRequestValidationError) Key() bool
- func (e SwitchTemplateRequestValidationError) Reason() string
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetCompare() string
- func (x *Template) GetContent() string
- func (x *Template) GetCreatedAt() uint32
- func (x *Template) GetDescription() string
- func (x *Template) GetFormat() string
- func (x *Template) GetId() uint32
- func (x *Template) GetIsUse() bool
- func (x *Template) GetServerId() uint32
- func (x *Template) GetVersion() string
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (x *Template) String() string
- func (m *Template) Validate() error
- func (m *Template) ValidateAll() error
- type TemplateMultiError
- type TemplateValidationError
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddTemplate(context.Context, *AddTemplateRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) CompareTemplate(context.Context, *CompareTemplateRequest) (*CompareTemplateReply, error)
- func (UnimplementedServiceServer) CurrentTemplate(context.Context, *CurrentTemplateRequest) (*CurrentTemplateReply, error)
- func (UnimplementedServiceServer) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateReply, error)
- func (UnimplementedServiceServer) PageTemplate(context.Context, *PageTemplateRequest) (*PageTemplateReply, error)
- func (UnimplementedServiceServer) ParseTemplate(context.Context, *ParseTemplateRequest) (*ParseTemplateReply, error)
- func (UnimplementedServiceServer) PreviewTemplate(context.Context, *PreviewTemplateRequest) (*PreviewTemplateReply, error)
- func (UnimplementedServiceServer) SwitchTemplate(context.Context, *SwitchTemplateRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
Constants ¶
const ( Service_PageTemplate_FullMethodName = "/configure_template.Service/PageTemplate" Service_GetTemplate_FullMethodName = "/configure_template.Service/GetTemplate" Service_CurrentTemplate_FullMethodName = "/configure_template.Service/CurrentTemplate" Service_AddTemplate_FullMethodName = "/configure_template.Service/AddTemplate" Service_SwitchTemplate_FullMethodName = "/configure_template.Service/SwitchTemplate" Service_CompareTemplate_FullMethodName = "/configure_template.Service/CompareTemplate" Service_PreviewTemplate_FullMethodName = "/configure_template.Service/PreviewTemplate" Service_ParseTemplate_FullMethodName = "/configure_template.Service/ParseTemplate" )
const OperationServiceAddTemplate = "/configure_template.Service/AddTemplate"
const OperationServiceCompareTemplate = "/configure_template.Service/CompareTemplate"
const OperationServiceCurrentTemplate = "/configure_template.Service/CurrentTemplate"
const OperationServiceGetTemplate = "/configure_template.Service/GetTemplate"
const OperationServicePageTemplate = "/configure_template.Service/PageTemplate"
const OperationServiceParseTemplate = "/configure_template.Service/ParseTemplate"
const OperationServicePreviewTemplate = "/configure_template.Service/PreviewTemplate"
const OperationServiceSwitchTemplate = "/configure_template.Service/SwitchTemplate"
Variables ¶
var File_configure_template_proto protoreflect.FileDescriptor
var File_configure_template_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "configure_template.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageTemplate", Handler: _Service_PageTemplate_Handler, }, { MethodName: "GetTemplate", Handler: _Service_GetTemplate_Handler, }, { MethodName: "CurrentTemplate", Handler: _Service_CurrentTemplate_Handler, }, { MethodName: "AddTemplate", Handler: _Service_AddTemplate_Handler, }, { MethodName: "SwitchTemplate", Handler: _Service_SwitchTemplate_Handler, }, { MethodName: "CompareTemplate", Handler: _Service_CompareTemplate_Handler, }, { MethodName: "PreviewTemplate", Handler: _Service_PreviewTemplate_Handler, }, { MethodName: "ParseTemplate", Handler: _Service_ParseTemplate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "configure_template_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 AddTemplateRequest ¶
type AddTemplateRequest struct { ServerId uint32 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
新增模板
func (*AddTemplateRequest) Descriptor
deprecated
func (*AddTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddTemplateRequest.ProtoReflect.Descriptor instead.
func (*AddTemplateRequest) GetContent ¶
func (x *AddTemplateRequest) GetContent() string
func (*AddTemplateRequest) GetDescription ¶
func (x *AddTemplateRequest) GetDescription() string
func (*AddTemplateRequest) GetFormat ¶
func (x *AddTemplateRequest) GetFormat() string
func (*AddTemplateRequest) GetServerId ¶
func (x *AddTemplateRequest) GetServerId() uint32
func (*AddTemplateRequest) ProtoMessage ¶
func (*AddTemplateRequest) ProtoMessage()
func (*AddTemplateRequest) ProtoReflect ¶
func (x *AddTemplateRequest) ProtoReflect() protoreflect.Message
func (*AddTemplateRequest) Reset ¶
func (x *AddTemplateRequest) Reset()
func (*AddTemplateRequest) String ¶
func (x *AddTemplateRequest) String() string
func (*AddTemplateRequest) Validate ¶
func (m *AddTemplateRequest) Validate() error
Validate checks the field values on AddTemplateRequest 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 (*AddTemplateRequest) ValidateAll ¶
func (m *AddTemplateRequest) ValidateAll() error
ValidateAll checks the field values on AddTemplateRequest 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 AddTemplateRequestMultiError, or nil if none found.
type AddTemplateRequestMultiError ¶
type AddTemplateRequestMultiError []error
AddTemplateRequestMultiError is an error wrapping multiple validation errors returned by AddTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (AddTemplateRequestMultiError) AllErrors ¶
func (m AddTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddTemplateRequestMultiError) Error ¶
func (m AddTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddTemplateRequestValidationError ¶
type AddTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
AddTemplateRequestValidationError is the validation error returned by AddTemplateRequest.Validate if the designated constraints aren't met.
func (AddTemplateRequestValidationError) Cause ¶
func (e AddTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (AddTemplateRequestValidationError) Error ¶
func (e AddTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddTemplateRequestValidationError) ErrorName ¶
func (e AddTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddTemplateRequestValidationError) Field ¶
func (e AddTemplateRequestValidationError) Field() string
Field function returns field value.
func (AddTemplateRequestValidationError) Key ¶
func (e AddTemplateRequestValidationError) Key() bool
Key function returns key value.
func (AddTemplateRequestValidationError) Reason ¶
func (e AddTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type CompareTemplateInfo ¶
type CompareTemplateInfo 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 (*CompareTemplateInfo) Descriptor
deprecated
func (*CompareTemplateInfo) Descriptor() ([]byte, []int)
Deprecated: Use CompareTemplateInfo.ProtoReflect.Descriptor instead.
func (*CompareTemplateInfo) GetCur ¶
func (x *CompareTemplateInfo) GetCur() string
func (*CompareTemplateInfo) GetKey ¶
func (x *CompareTemplateInfo) GetKey() string
func (*CompareTemplateInfo) GetOld ¶
func (x *CompareTemplateInfo) GetOld() string
func (*CompareTemplateInfo) GetType ¶
func (x *CompareTemplateInfo) GetType() string
func (*CompareTemplateInfo) ProtoMessage ¶
func (*CompareTemplateInfo) ProtoMessage()
func (*CompareTemplateInfo) ProtoReflect ¶
func (x *CompareTemplateInfo) ProtoReflect() protoreflect.Message
func (*CompareTemplateInfo) Reset ¶
func (x *CompareTemplateInfo) Reset()
func (*CompareTemplateInfo) String ¶
func (x *CompareTemplateInfo) String() string
func (*CompareTemplateInfo) Validate ¶
func (m *CompareTemplateInfo) Validate() error
Validate checks the field values on CompareTemplateInfo 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 (*CompareTemplateInfo) ValidateAll ¶
func (m *CompareTemplateInfo) ValidateAll() error
ValidateAll checks the field values on CompareTemplateInfo 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 CompareTemplateInfoMultiError, or nil if none found.
type CompareTemplateInfoMultiError ¶
type CompareTemplateInfoMultiError []error
CompareTemplateInfoMultiError is an error wrapping multiple validation errors returned by CompareTemplateInfo.ValidateAll() if the designated constraints aren't met.
func (CompareTemplateInfoMultiError) AllErrors ¶
func (m CompareTemplateInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompareTemplateInfoMultiError) Error ¶
func (m CompareTemplateInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompareTemplateInfoValidationError ¶
type CompareTemplateInfoValidationError struct {
// contains filtered or unexported fields
}
CompareTemplateInfoValidationError is the validation error returned by CompareTemplateInfo.Validate if the designated constraints aren't met.
func (CompareTemplateInfoValidationError) Cause ¶
func (e CompareTemplateInfoValidationError) Cause() error
Cause function returns cause value.
func (CompareTemplateInfoValidationError) Error ¶
func (e CompareTemplateInfoValidationError) Error() string
Error satisfies the builtin error interface
func (CompareTemplateInfoValidationError) ErrorName ¶
func (e CompareTemplateInfoValidationError) ErrorName() string
ErrorName returns error name.
func (CompareTemplateInfoValidationError) Field ¶
func (e CompareTemplateInfoValidationError) Field() string
Field function returns field value.
func (CompareTemplateInfoValidationError) Key ¶
func (e CompareTemplateInfoValidationError) Key() bool
Key function returns key value.
func (CompareTemplateInfoValidationError) Reason ¶
func (e CompareTemplateInfoValidationError) Reason() string
Reason function returns reason value.
type CompareTemplateReply ¶
type CompareTemplateReply struct { List []*CompareTemplateInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*CompareTemplateReply) Descriptor
deprecated
func (*CompareTemplateReply) Descriptor() ([]byte, []int)
Deprecated: Use CompareTemplateReply.ProtoReflect.Descriptor instead.
func (*CompareTemplateReply) GetList ¶
func (x *CompareTemplateReply) GetList() []*CompareTemplateInfo
func (*CompareTemplateReply) ProtoMessage ¶
func (*CompareTemplateReply) ProtoMessage()
func (*CompareTemplateReply) ProtoReflect ¶
func (x *CompareTemplateReply) ProtoReflect() protoreflect.Message
func (*CompareTemplateReply) Reset ¶
func (x *CompareTemplateReply) Reset()
func (*CompareTemplateReply) String ¶
func (x *CompareTemplateReply) String() string
func (*CompareTemplateReply) Validate ¶
func (m *CompareTemplateReply) Validate() error
Validate checks the field values on CompareTemplateReply 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 (*CompareTemplateReply) ValidateAll ¶
func (m *CompareTemplateReply) ValidateAll() error
ValidateAll checks the field values on CompareTemplateReply 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 CompareTemplateReplyMultiError, or nil if none found.
type CompareTemplateReplyMultiError ¶
type CompareTemplateReplyMultiError []error
CompareTemplateReplyMultiError is an error wrapping multiple validation errors returned by CompareTemplateReply.ValidateAll() if the designated constraints aren't met.
func (CompareTemplateReplyMultiError) AllErrors ¶
func (m CompareTemplateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompareTemplateReplyMultiError) Error ¶
func (m CompareTemplateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompareTemplateReplyValidationError ¶
type CompareTemplateReplyValidationError struct {
// contains filtered or unexported fields
}
CompareTemplateReplyValidationError is the validation error returned by CompareTemplateReply.Validate if the designated constraints aren't met.
func (CompareTemplateReplyValidationError) Cause ¶
func (e CompareTemplateReplyValidationError) Cause() error
Cause function returns cause value.
func (CompareTemplateReplyValidationError) Error ¶
func (e CompareTemplateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CompareTemplateReplyValidationError) ErrorName ¶
func (e CompareTemplateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CompareTemplateReplyValidationError) Field ¶
func (e CompareTemplateReplyValidationError) Field() string
Field function returns field value.
func (CompareTemplateReplyValidationError) Key ¶
func (e CompareTemplateReplyValidationError) Key() bool
Key function returns key value.
func (CompareTemplateReplyValidationError) Reason ¶
func (e CompareTemplateReplyValidationError) Reason() string
Reason function returns reason value.
type CompareTemplateRequest ¶
type CompareTemplateRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*CompareTemplateRequest) Descriptor
deprecated
func (*CompareTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompareTemplateRequest.ProtoReflect.Descriptor instead.
func (*CompareTemplateRequest) GetContent ¶
func (x *CompareTemplateRequest) GetContent() string
func (*CompareTemplateRequest) GetFormat ¶
func (x *CompareTemplateRequest) GetFormat() string
func (*CompareTemplateRequest) GetId ¶
func (x *CompareTemplateRequest) GetId() uint32
func (*CompareTemplateRequest) ProtoMessage ¶
func (*CompareTemplateRequest) ProtoMessage()
func (*CompareTemplateRequest) ProtoReflect ¶
func (x *CompareTemplateRequest) ProtoReflect() protoreflect.Message
func (*CompareTemplateRequest) Reset ¶
func (x *CompareTemplateRequest) Reset()
func (*CompareTemplateRequest) String ¶
func (x *CompareTemplateRequest) String() string
func (*CompareTemplateRequest) Validate ¶
func (m *CompareTemplateRequest) Validate() error
Validate checks the field values on CompareTemplateRequest 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 (*CompareTemplateRequest) ValidateAll ¶
func (m *CompareTemplateRequest) ValidateAll() error
ValidateAll checks the field values on CompareTemplateRequest 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 CompareTemplateRequestMultiError, or nil if none found.
type CompareTemplateRequestMultiError ¶
type CompareTemplateRequestMultiError []error
CompareTemplateRequestMultiError is an error wrapping multiple validation errors returned by CompareTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (CompareTemplateRequestMultiError) AllErrors ¶
func (m CompareTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompareTemplateRequestMultiError) Error ¶
func (m CompareTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompareTemplateRequestValidationError ¶
type CompareTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
CompareTemplateRequestValidationError is the validation error returned by CompareTemplateRequest.Validate if the designated constraints aren't met.
func (CompareTemplateRequestValidationError) Cause ¶
func (e CompareTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (CompareTemplateRequestValidationError) Error ¶
func (e CompareTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompareTemplateRequestValidationError) ErrorName ¶
func (e CompareTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompareTemplateRequestValidationError) Field ¶
func (e CompareTemplateRequestValidationError) Field() string
Field function returns field value.
func (CompareTemplateRequestValidationError) Key ¶
func (e CompareTemplateRequestValidationError) Key() bool
Key function returns key value.
func (CompareTemplateRequestValidationError) Reason ¶
func (e CompareTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type CurrentTemplateReply ¶
type CurrentTemplateReply 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` Format string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"` IsUse bool `protobuf:"varint,6,opt,name=is_use,json=isUse,proto3" json:"is_use,omitempty"` Compare string `protobuf:"bytes,7,opt,name=compare,proto3" json:"compare,omitempty"` Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` CreatedAt uint32 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*CurrentTemplateReply) Descriptor
deprecated
func (*CurrentTemplateReply) Descriptor() ([]byte, []int)
Deprecated: Use CurrentTemplateReply.ProtoReflect.Descriptor instead.
func (*CurrentTemplateReply) GetCompare ¶
func (x *CurrentTemplateReply) GetCompare() string
func (*CurrentTemplateReply) GetContent ¶
func (x *CurrentTemplateReply) GetContent() string
func (*CurrentTemplateReply) GetCreatedAt ¶
func (x *CurrentTemplateReply) GetCreatedAt() uint32
func (*CurrentTemplateReply) GetDescription ¶
func (x *CurrentTemplateReply) GetDescription() string
func (*CurrentTemplateReply) GetFormat ¶
func (x *CurrentTemplateReply) GetFormat() string
func (*CurrentTemplateReply) GetId ¶
func (x *CurrentTemplateReply) GetId() uint32
func (*CurrentTemplateReply) GetIsUse ¶
func (x *CurrentTemplateReply) GetIsUse() bool
func (*CurrentTemplateReply) GetServerId ¶
func (x *CurrentTemplateReply) GetServerId() uint32
func (*CurrentTemplateReply) GetVersion ¶
func (x *CurrentTemplateReply) GetVersion() string
func (*CurrentTemplateReply) ProtoMessage ¶
func (*CurrentTemplateReply) ProtoMessage()
func (*CurrentTemplateReply) ProtoReflect ¶
func (x *CurrentTemplateReply) ProtoReflect() protoreflect.Message
func (*CurrentTemplateReply) Reset ¶
func (x *CurrentTemplateReply) Reset()
func (*CurrentTemplateReply) String ¶
func (x *CurrentTemplateReply) String() string
func (*CurrentTemplateReply) Validate ¶
func (m *CurrentTemplateReply) Validate() error
Validate checks the field values on CurrentTemplateReply 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 (*CurrentTemplateReply) ValidateAll ¶
func (m *CurrentTemplateReply) ValidateAll() error
ValidateAll checks the field values on CurrentTemplateReply 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 CurrentTemplateReplyMultiError, or nil if none found.
type CurrentTemplateReplyMultiError ¶
type CurrentTemplateReplyMultiError []error
CurrentTemplateReplyMultiError is an error wrapping multiple validation errors returned by CurrentTemplateReply.ValidateAll() if the designated constraints aren't met.
func (CurrentTemplateReplyMultiError) AllErrors ¶
func (m CurrentTemplateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CurrentTemplateReplyMultiError) Error ¶
func (m CurrentTemplateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CurrentTemplateReplyValidationError ¶
type CurrentTemplateReplyValidationError struct {
// contains filtered or unexported fields
}
CurrentTemplateReplyValidationError is the validation error returned by CurrentTemplateReply.Validate if the designated constraints aren't met.
func (CurrentTemplateReplyValidationError) Cause ¶
func (e CurrentTemplateReplyValidationError) Cause() error
Cause function returns cause value.
func (CurrentTemplateReplyValidationError) Error ¶
func (e CurrentTemplateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CurrentTemplateReplyValidationError) ErrorName ¶
func (e CurrentTemplateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CurrentTemplateReplyValidationError) Field ¶
func (e CurrentTemplateReplyValidationError) Field() string
Field function returns field value.
func (CurrentTemplateReplyValidationError) Key ¶
func (e CurrentTemplateReplyValidationError) Key() bool
Key function returns key value.
func (CurrentTemplateReplyValidationError) Reason ¶
func (e CurrentTemplateReplyValidationError) Reason() string
Reason function returns reason value.
type CurrentTemplateRequest ¶
type CurrentTemplateRequest struct { ServerId uint32 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // contains filtered or unexported fields }
查询指定模板
func (*CurrentTemplateRequest) Descriptor
deprecated
func (*CurrentTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CurrentTemplateRequest.ProtoReflect.Descriptor instead.
func (*CurrentTemplateRequest) GetServerId ¶
func (x *CurrentTemplateRequest) GetServerId() uint32
func (*CurrentTemplateRequest) ProtoMessage ¶
func (*CurrentTemplateRequest) ProtoMessage()
func (*CurrentTemplateRequest) ProtoReflect ¶
func (x *CurrentTemplateRequest) ProtoReflect() protoreflect.Message
func (*CurrentTemplateRequest) Reset ¶
func (x *CurrentTemplateRequest) Reset()
func (*CurrentTemplateRequest) String ¶
func (x *CurrentTemplateRequest) String() string
func (*CurrentTemplateRequest) Validate ¶
func (m *CurrentTemplateRequest) Validate() error
Validate checks the field values on CurrentTemplateRequest 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 (*CurrentTemplateRequest) ValidateAll ¶
func (m *CurrentTemplateRequest) ValidateAll() error
ValidateAll checks the field values on CurrentTemplateRequest 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 CurrentTemplateRequestMultiError, or nil if none found.
type CurrentTemplateRequestMultiError ¶
type CurrentTemplateRequestMultiError []error
CurrentTemplateRequestMultiError is an error wrapping multiple validation errors returned by CurrentTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (CurrentTemplateRequestMultiError) AllErrors ¶
func (m CurrentTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CurrentTemplateRequestMultiError) Error ¶
func (m CurrentTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CurrentTemplateRequestValidationError ¶
type CurrentTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
CurrentTemplateRequestValidationError is the validation error returned by CurrentTemplateRequest.Validate if the designated constraints aren't met.
func (CurrentTemplateRequestValidationError) Cause ¶
func (e CurrentTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (CurrentTemplateRequestValidationError) Error ¶
func (e CurrentTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CurrentTemplateRequestValidationError) ErrorName ¶
func (e CurrentTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CurrentTemplateRequestValidationError) Field ¶
func (e CurrentTemplateRequestValidationError) Field() string
Field function returns field value.
func (CurrentTemplateRequestValidationError) Key ¶
func (e CurrentTemplateRequestValidationError) Key() bool
Key function returns key value.
func (CurrentTemplateRequestValidationError) Reason ¶
func (e CurrentTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type GetTemplateReply ¶
type GetTemplateReply 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"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` IsUse *bool `protobuf:"varint,6,opt,name=is_use,json=isUse,proto3,oneof" json:"is_use,omitempty"` Operator *string `protobuf:"bytes,7,opt,name=operator,proto3,oneof" json:"operator,omitempty"` OperatorId *uint32 `protobuf:"varint,8,opt,name=operator_id,json=operatorId,proto3,oneof" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*GetTemplateReply) Descriptor
deprecated
func (*GetTemplateReply) Descriptor() ([]byte, []int)
Deprecated: Use GetTemplateReply.ProtoReflect.Descriptor instead.
func (*GetTemplateReply) GetContent ¶
func (x *GetTemplateReply) GetContent() string
func (*GetTemplateReply) GetDescription ¶
func (x *GetTemplateReply) GetDescription() string
func (*GetTemplateReply) GetId ¶
func (x *GetTemplateReply) GetId() uint32
func (*GetTemplateReply) GetIsUse ¶
func (x *GetTemplateReply) GetIsUse() bool
func (*GetTemplateReply) GetOperator ¶
func (x *GetTemplateReply) GetOperator() string
func (*GetTemplateReply) GetOperatorId ¶
func (x *GetTemplateReply) GetOperatorId() uint32
func (*GetTemplateReply) GetServerId ¶
func (x *GetTemplateReply) GetServerId() uint32
func (*GetTemplateReply) GetVersion ¶
func (x *GetTemplateReply) GetVersion() string
func (*GetTemplateReply) ProtoMessage ¶
func (*GetTemplateReply) ProtoMessage()
func (*GetTemplateReply) ProtoReflect ¶
func (x *GetTemplateReply) ProtoReflect() protoreflect.Message
func (*GetTemplateReply) Reset ¶
func (x *GetTemplateReply) Reset()
func (*GetTemplateReply) String ¶
func (x *GetTemplateReply) String() string
func (*GetTemplateReply) Validate ¶
func (m *GetTemplateReply) Validate() error
Validate checks the field values on GetTemplateReply 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 (*GetTemplateReply) ValidateAll ¶
func (m *GetTemplateReply) ValidateAll() error
ValidateAll checks the field values on GetTemplateReply 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 GetTemplateReplyMultiError, or nil if none found.
type GetTemplateReplyMultiError ¶
type GetTemplateReplyMultiError []error
GetTemplateReplyMultiError is an error wrapping multiple validation errors returned by GetTemplateReply.ValidateAll() if the designated constraints aren't met.
func (GetTemplateReplyMultiError) AllErrors ¶
func (m GetTemplateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTemplateReplyMultiError) Error ¶
func (m GetTemplateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTemplateReplyValidationError ¶
type GetTemplateReplyValidationError struct {
// contains filtered or unexported fields
}
GetTemplateReplyValidationError is the validation error returned by GetTemplateReply.Validate if the designated constraints aren't met.
func (GetTemplateReplyValidationError) Cause ¶
func (e GetTemplateReplyValidationError) Cause() error
Cause function returns cause value.
func (GetTemplateReplyValidationError) Error ¶
func (e GetTemplateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetTemplateReplyValidationError) ErrorName ¶
func (e GetTemplateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetTemplateReplyValidationError) Field ¶
func (e GetTemplateReplyValidationError) Field() string
Field function returns field value.
func (GetTemplateReplyValidationError) Key ¶
func (e GetTemplateReplyValidationError) Key() bool
Key function returns key value.
func (GetTemplateReplyValidationError) Reason ¶
func (e GetTemplateReplyValidationError) Reason() string
Reason function returns reason value.
type GetTemplateRequest ¶
type GetTemplateRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
查询指定模板
func (*GetTemplateRequest) Descriptor
deprecated
func (*GetTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTemplateRequest.ProtoReflect.Descriptor instead.
func (*GetTemplateRequest) GetId ¶
func (x *GetTemplateRequest) GetId() uint32
func (*GetTemplateRequest) ProtoMessage ¶
func (*GetTemplateRequest) ProtoMessage()
func (*GetTemplateRequest) ProtoReflect ¶
func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message
func (*GetTemplateRequest) Reset ¶
func (x *GetTemplateRequest) Reset()
func (*GetTemplateRequest) String ¶
func (x *GetTemplateRequest) String() string
func (*GetTemplateRequest) Validate ¶
func (m *GetTemplateRequest) Validate() error
Validate checks the field values on GetTemplateRequest 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 (*GetTemplateRequest) ValidateAll ¶
func (m *GetTemplateRequest) ValidateAll() error
ValidateAll checks the field values on GetTemplateRequest 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 GetTemplateRequestMultiError, or nil if none found.
type GetTemplateRequestMultiError ¶
type GetTemplateRequestMultiError []error
GetTemplateRequestMultiError is an error wrapping multiple validation errors returned by GetTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (GetTemplateRequestMultiError) AllErrors ¶
func (m GetTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTemplateRequestMultiError) Error ¶
func (m GetTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTemplateRequestValidationError ¶
type GetTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
GetTemplateRequestValidationError is the validation error returned by GetTemplateRequest.Validate if the designated constraints aren't met.
func (GetTemplateRequestValidationError) Cause ¶
func (e GetTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTemplateRequestValidationError) Error ¶
func (e GetTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTemplateRequestValidationError) ErrorName ¶
func (e GetTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTemplateRequestValidationError) Field ¶
func (e GetTemplateRequestValidationError) Field() string
Field function returns field value.
func (GetTemplateRequestValidationError) Key ¶
func (e GetTemplateRequestValidationError) Key() bool
Key function returns key value.
func (GetTemplateRequestValidationError) Reason ¶
func (e GetTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type PageTemplateReply ¶
type PageTemplateReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Template `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageTemplateReply) Descriptor
deprecated
func (*PageTemplateReply) Descriptor() ([]byte, []int)
Deprecated: Use PageTemplateReply.ProtoReflect.Descriptor instead.
func (*PageTemplateReply) GetList ¶
func (x *PageTemplateReply) GetList() []*Template
func (*PageTemplateReply) GetTotal ¶
func (x *PageTemplateReply) GetTotal() uint32
func (*PageTemplateReply) ProtoMessage ¶
func (*PageTemplateReply) ProtoMessage()
func (*PageTemplateReply) ProtoReflect ¶
func (x *PageTemplateReply) ProtoReflect() protoreflect.Message
func (*PageTemplateReply) Reset ¶
func (x *PageTemplateReply) Reset()
func (*PageTemplateReply) String ¶
func (x *PageTemplateReply) String() string
func (*PageTemplateReply) Validate ¶
func (m *PageTemplateReply) Validate() error
Validate checks the field values on PageTemplateReply 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 (*PageTemplateReply) ValidateAll ¶
func (m *PageTemplateReply) ValidateAll() error
ValidateAll checks the field values on PageTemplateReply 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 PageTemplateReplyMultiError, or nil if none found.
type PageTemplateReplyMultiError ¶
type PageTemplateReplyMultiError []error
PageTemplateReplyMultiError is an error wrapping multiple validation errors returned by PageTemplateReply.ValidateAll() if the designated constraints aren't met.
func (PageTemplateReplyMultiError) AllErrors ¶
func (m PageTemplateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageTemplateReplyMultiError) Error ¶
func (m PageTemplateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageTemplateReplyValidationError ¶
type PageTemplateReplyValidationError struct {
// contains filtered or unexported fields
}
PageTemplateReplyValidationError is the validation error returned by PageTemplateReply.Validate if the designated constraints aren't met.
func (PageTemplateReplyValidationError) Cause ¶
func (e PageTemplateReplyValidationError) Cause() error
Cause function returns cause value.
func (PageTemplateReplyValidationError) Error ¶
func (e PageTemplateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageTemplateReplyValidationError) ErrorName ¶
func (e PageTemplateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageTemplateReplyValidationError) Field ¶
func (e PageTemplateReplyValidationError) Field() string
Field function returns field value.
func (PageTemplateReplyValidationError) Key ¶
func (e PageTemplateReplyValidationError) Key() bool
Key function returns key value.
func (PageTemplateReplyValidationError) Reason ¶
func (e PageTemplateReplyValidationError) Reason() string
Reason function returns reason value.
type PageTemplateRequest ¶
type PageTemplateRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` ServerId uint32 `protobuf:"varint,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // contains filtered or unexported fields }
func (*PageTemplateRequest) Descriptor
deprecated
func (*PageTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageTemplateRequest.ProtoReflect.Descriptor instead.
func (*PageTemplateRequest) GetPage ¶
func (x *PageTemplateRequest) GetPage() uint32
func (*PageTemplateRequest) GetPageSize ¶
func (x *PageTemplateRequest) GetPageSize() uint32
func (*PageTemplateRequest) GetServerId ¶
func (x *PageTemplateRequest) GetServerId() uint32
func (*PageTemplateRequest) ProtoMessage ¶
func (*PageTemplateRequest) ProtoMessage()
func (*PageTemplateRequest) ProtoReflect ¶
func (x *PageTemplateRequest) ProtoReflect() protoreflect.Message
func (*PageTemplateRequest) Reset ¶
func (x *PageTemplateRequest) Reset()
func (*PageTemplateRequest) String ¶
func (x *PageTemplateRequest) String() string
func (*PageTemplateRequest) Validate ¶
func (m *PageTemplateRequest) Validate() error
Validate checks the field values on PageTemplateRequest 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 (*PageTemplateRequest) ValidateAll ¶
func (m *PageTemplateRequest) ValidateAll() error
ValidateAll checks the field values on PageTemplateRequest 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 PageTemplateRequestMultiError, or nil if none found.
type PageTemplateRequestMultiError ¶
type PageTemplateRequestMultiError []error
PageTemplateRequestMultiError is an error wrapping multiple validation errors returned by PageTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (PageTemplateRequestMultiError) AllErrors ¶
func (m PageTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageTemplateRequestMultiError) Error ¶
func (m PageTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageTemplateRequestValidationError ¶
type PageTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
PageTemplateRequestValidationError is the validation error returned by PageTemplateRequest.Validate if the designated constraints aren't met.
func (PageTemplateRequestValidationError) Cause ¶
func (e PageTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (PageTemplateRequestValidationError) Error ¶
func (e PageTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageTemplateRequestValidationError) ErrorName ¶
func (e PageTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageTemplateRequestValidationError) Field ¶
func (e PageTemplateRequestValidationError) Field() string
Field function returns field value.
func (PageTemplateRequestValidationError) Key ¶
func (e PageTemplateRequestValidationError) Key() bool
Key function returns key value.
func (PageTemplateRequestValidationError) Reason ¶
func (e PageTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type ParseTemplateReply ¶
type ParseTemplateReply 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 (*ParseTemplateReply) Descriptor
deprecated
func (*ParseTemplateReply) Descriptor() ([]byte, []int)
Deprecated: Use ParseTemplateReply.ProtoReflect.Descriptor instead.
func (*ParseTemplateReply) GetContent ¶
func (x *ParseTemplateReply) GetContent() string
func (*ParseTemplateReply) GetFormat ¶
func (x *ParseTemplateReply) GetFormat() string
func (*ParseTemplateReply) ProtoMessage ¶
func (*ParseTemplateReply) ProtoMessage()
func (*ParseTemplateReply) ProtoReflect ¶
func (x *ParseTemplateReply) ProtoReflect() protoreflect.Message
func (*ParseTemplateReply) Reset ¶
func (x *ParseTemplateReply) Reset()
func (*ParseTemplateReply) String ¶
func (x *ParseTemplateReply) String() string
func (*ParseTemplateReply) Validate ¶
func (m *ParseTemplateReply) Validate() error
Validate checks the field values on ParseTemplateReply 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 (*ParseTemplateReply) ValidateAll ¶
func (m *ParseTemplateReply) ValidateAll() error
ValidateAll checks the field values on ParseTemplateReply 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 ParseTemplateReplyMultiError, or nil if none found.
type ParseTemplateReplyMultiError ¶
type ParseTemplateReplyMultiError []error
ParseTemplateReplyMultiError is an error wrapping multiple validation errors returned by ParseTemplateReply.ValidateAll() if the designated constraints aren't met.
func (ParseTemplateReplyMultiError) AllErrors ¶
func (m ParseTemplateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ParseTemplateReplyMultiError) Error ¶
func (m ParseTemplateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ParseTemplateReplyValidationError ¶
type ParseTemplateReplyValidationError struct {
// contains filtered or unexported fields
}
ParseTemplateReplyValidationError is the validation error returned by ParseTemplateReply.Validate if the designated constraints aren't met.
func (ParseTemplateReplyValidationError) Cause ¶
func (e ParseTemplateReplyValidationError) Cause() error
Cause function returns cause value.
func (ParseTemplateReplyValidationError) Error ¶
func (e ParseTemplateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ParseTemplateReplyValidationError) ErrorName ¶
func (e ParseTemplateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ParseTemplateReplyValidationError) Field ¶
func (e ParseTemplateReplyValidationError) Field() string
Field function returns field value.
func (ParseTemplateReplyValidationError) Key ¶
func (e ParseTemplateReplyValidationError) Key() bool
Key function returns key value.
func (ParseTemplateReplyValidationError) Reason ¶
func (e ParseTemplateReplyValidationError) Reason() string
Reason function returns reason value.
type ParseTemplateRequest ¶
type ParseTemplateRequest 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 (*ParseTemplateRequest) Descriptor
deprecated
func (*ParseTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParseTemplateRequest.ProtoReflect.Descriptor instead.
func (*ParseTemplateRequest) GetEnvId ¶
func (x *ParseTemplateRequest) GetEnvId() uint32
func (*ParseTemplateRequest) GetServerId ¶
func (x *ParseTemplateRequest) GetServerId() uint32
func (*ParseTemplateRequest) ProtoMessage ¶
func (*ParseTemplateRequest) ProtoMessage()
func (*ParseTemplateRequest) ProtoReflect ¶
func (x *ParseTemplateRequest) ProtoReflect() protoreflect.Message
func (*ParseTemplateRequest) Reset ¶
func (x *ParseTemplateRequest) Reset()
func (*ParseTemplateRequest) String ¶
func (x *ParseTemplateRequest) String() string
func (*ParseTemplateRequest) Validate ¶
func (m *ParseTemplateRequest) Validate() error
Validate checks the field values on ParseTemplateRequest 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 (*ParseTemplateRequest) ValidateAll ¶
func (m *ParseTemplateRequest) ValidateAll() error
ValidateAll checks the field values on ParseTemplateRequest 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 ParseTemplateRequestMultiError, or nil if none found.
type ParseTemplateRequestMultiError ¶
type ParseTemplateRequestMultiError []error
ParseTemplateRequestMultiError is an error wrapping multiple validation errors returned by ParseTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (ParseTemplateRequestMultiError) AllErrors ¶
func (m ParseTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ParseTemplateRequestMultiError) Error ¶
func (m ParseTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ParseTemplateRequestValidationError ¶
type ParseTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
ParseTemplateRequestValidationError is the validation error returned by ParseTemplateRequest.Validate if the designated constraints aren't met.
func (ParseTemplateRequestValidationError) Cause ¶
func (e ParseTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (ParseTemplateRequestValidationError) Error ¶
func (e ParseTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ParseTemplateRequestValidationError) ErrorName ¶
func (e ParseTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ParseTemplateRequestValidationError) Field ¶
func (e ParseTemplateRequestValidationError) Field() string
Field function returns field value.
func (ParseTemplateRequestValidationError) Key ¶
func (e ParseTemplateRequestValidationError) Key() bool
Key function returns key value.
func (ParseTemplateRequestValidationError) Reason ¶
func (e ParseTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type PreviewTemplateReply ¶
type PreviewTemplateReply struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*PreviewTemplateReply) Descriptor
deprecated
func (*PreviewTemplateReply) Descriptor() ([]byte, []int)
Deprecated: Use PreviewTemplateReply.ProtoReflect.Descriptor instead.
func (*PreviewTemplateReply) GetContent ¶
func (x *PreviewTemplateReply) GetContent() string
func (*PreviewTemplateReply) ProtoMessage ¶
func (*PreviewTemplateReply) ProtoMessage()
func (*PreviewTemplateReply) ProtoReflect ¶
func (x *PreviewTemplateReply) ProtoReflect() protoreflect.Message
func (*PreviewTemplateReply) Reset ¶
func (x *PreviewTemplateReply) Reset()
func (*PreviewTemplateReply) String ¶
func (x *PreviewTemplateReply) String() string
func (*PreviewTemplateReply) Validate ¶
func (m *PreviewTemplateReply) Validate() error
Validate checks the field values on PreviewTemplateReply 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 (*PreviewTemplateReply) ValidateAll ¶
func (m *PreviewTemplateReply) ValidateAll() error
ValidateAll checks the field values on PreviewTemplateReply 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 PreviewTemplateReplyMultiError, or nil if none found.
type PreviewTemplateReplyMultiError ¶
type PreviewTemplateReplyMultiError []error
PreviewTemplateReplyMultiError is an error wrapping multiple validation errors returned by PreviewTemplateReply.ValidateAll() if the designated constraints aren't met.
func (PreviewTemplateReplyMultiError) AllErrors ¶
func (m PreviewTemplateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreviewTemplateReplyMultiError) Error ¶
func (m PreviewTemplateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreviewTemplateReplyValidationError ¶
type PreviewTemplateReplyValidationError struct {
// contains filtered or unexported fields
}
PreviewTemplateReplyValidationError is the validation error returned by PreviewTemplateReply.Validate if the designated constraints aren't met.
func (PreviewTemplateReplyValidationError) Cause ¶
func (e PreviewTemplateReplyValidationError) Cause() error
Cause function returns cause value.
func (PreviewTemplateReplyValidationError) Error ¶
func (e PreviewTemplateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PreviewTemplateReplyValidationError) ErrorName ¶
func (e PreviewTemplateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PreviewTemplateReplyValidationError) Field ¶
func (e PreviewTemplateReplyValidationError) Field() string
Field function returns field value.
func (PreviewTemplateReplyValidationError) Key ¶
func (e PreviewTemplateReplyValidationError) Key() bool
Key function returns key value.
func (PreviewTemplateReplyValidationError) Reason ¶
func (e PreviewTemplateReplyValidationError) Reason() string
Reason function returns reason value.
type PreviewTemplateRequest ¶
type PreviewTemplateRequest struct { EnvId uint32 `protobuf:"varint,1,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` ServerId uint32 `protobuf:"varint,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
预览配置
func (*PreviewTemplateRequest) Descriptor
deprecated
func (*PreviewTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewTemplateRequest.ProtoReflect.Descriptor instead.
func (*PreviewTemplateRequest) GetContent ¶
func (x *PreviewTemplateRequest) GetContent() string
func (*PreviewTemplateRequest) GetEnvId ¶
func (x *PreviewTemplateRequest) GetEnvId() uint32
func (*PreviewTemplateRequest) GetFormat ¶
func (x *PreviewTemplateRequest) GetFormat() string
func (*PreviewTemplateRequest) GetServerId ¶
func (x *PreviewTemplateRequest) GetServerId() uint32
func (*PreviewTemplateRequest) ProtoMessage ¶
func (*PreviewTemplateRequest) ProtoMessage()
func (*PreviewTemplateRequest) ProtoReflect ¶
func (x *PreviewTemplateRequest) ProtoReflect() protoreflect.Message
func (*PreviewTemplateRequest) Reset ¶
func (x *PreviewTemplateRequest) Reset()
func (*PreviewTemplateRequest) String ¶
func (x *PreviewTemplateRequest) String() string
func (*PreviewTemplateRequest) Validate ¶
func (m *PreviewTemplateRequest) Validate() error
Validate checks the field values on PreviewTemplateRequest 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 (*PreviewTemplateRequest) ValidateAll ¶
func (m *PreviewTemplateRequest) ValidateAll() error
ValidateAll checks the field values on PreviewTemplateRequest 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 PreviewTemplateRequestMultiError, or nil if none found.
type PreviewTemplateRequestMultiError ¶
type PreviewTemplateRequestMultiError []error
PreviewTemplateRequestMultiError is an error wrapping multiple validation errors returned by PreviewTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (PreviewTemplateRequestMultiError) AllErrors ¶
func (m PreviewTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreviewTemplateRequestMultiError) Error ¶
func (m PreviewTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreviewTemplateRequestValidationError ¶
type PreviewTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
PreviewTemplateRequestValidationError is the validation error returned by PreviewTemplateRequest.Validate if the designated constraints aren't met.
func (PreviewTemplateRequestValidationError) Cause ¶
func (e PreviewTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (PreviewTemplateRequestValidationError) Error ¶
func (e PreviewTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PreviewTemplateRequestValidationError) ErrorName ¶
func (e PreviewTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PreviewTemplateRequestValidationError) Field ¶
func (e PreviewTemplateRequestValidationError) Field() string
Field function returns field value.
func (PreviewTemplateRequestValidationError) Key ¶
func (e PreviewTemplateRequestValidationError) Key() bool
Key function returns key value.
func (PreviewTemplateRequestValidationError) Reason ¶
func (e PreviewTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { PageTemplate(ctx context.Context, in *PageTemplateRequest, opts ...grpc.CallOption) (*PageTemplateReply, error) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateReply, error) CurrentTemplate(ctx context.Context, in *CurrentTemplateRequest, opts ...grpc.CallOption) (*CurrentTemplateReply, error) AddTemplate(ctx context.Context, in *AddTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SwitchTemplate(ctx context.Context, in *SwitchTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CompareTemplate(ctx context.Context, in *CompareTemplateRequest, opts ...grpc.CallOption) (*CompareTemplateReply, error) PreviewTemplate(ctx context.Context, in *PreviewTemplateRequest, opts ...grpc.CallOption) (*PreviewTemplateReply, error) ParseTemplate(ctx context.Context, in *ParseTemplateRequest, opts ...grpc.CallOption) (*ParseTemplateReply, 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 { AddTemplate(ctx context.Context, req *AddTemplateRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CompareTemplate(ctx context.Context, req *CompareTemplateRequest, opts ...http.CallOption) (rsp *CompareTemplateReply, err error) CurrentTemplate(ctx context.Context, req *CurrentTemplateRequest, opts ...http.CallOption) (rsp *CurrentTemplateReply, err error) GetTemplate(ctx context.Context, req *GetTemplateRequest, opts ...http.CallOption) (rsp *GetTemplateReply, err error) PageTemplate(ctx context.Context, req *PageTemplateRequest, opts ...http.CallOption) (rsp *PageTemplateReply, err error) ParseTemplate(ctx context.Context, req *ParseTemplateRequest, opts ...http.CallOption) (rsp *ParseTemplateReply, err error) PreviewTemplate(ctx context.Context, req *PreviewTemplateRequest, opts ...http.CallOption) (rsp *PreviewTemplateReply, err error) SwitchTemplate(ctx context.Context, req *SwitchTemplateRequest, 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) AddTemplate ¶
func (c *ServiceHTTPClientImpl) AddTemplate(ctx context.Context, in *AddTemplateRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) CompareTemplate ¶
func (c *ServiceHTTPClientImpl) CompareTemplate(ctx context.Context, in *CompareTemplateRequest, opts ...http.CallOption) (*CompareTemplateReply, error)
func (*ServiceHTTPClientImpl) CurrentTemplate ¶
func (c *ServiceHTTPClientImpl) CurrentTemplate(ctx context.Context, in *CurrentTemplateRequest, opts ...http.CallOption) (*CurrentTemplateReply, error)
func (*ServiceHTTPClientImpl) GetTemplate ¶
func (c *ServiceHTTPClientImpl) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...http.CallOption) (*GetTemplateReply, error)
func (*ServiceHTTPClientImpl) PageTemplate ¶
func (c *ServiceHTTPClientImpl) PageTemplate(ctx context.Context, in *PageTemplateRequest, opts ...http.CallOption) (*PageTemplateReply, error)
func (*ServiceHTTPClientImpl) ParseTemplate ¶
func (c *ServiceHTTPClientImpl) ParseTemplate(ctx context.Context, in *ParseTemplateRequest, opts ...http.CallOption) (*ParseTemplateReply, error)
func (*ServiceHTTPClientImpl) PreviewTemplate ¶
func (c *ServiceHTTPClientImpl) PreviewTemplate(ctx context.Context, in *PreviewTemplateRequest, opts ...http.CallOption) (*PreviewTemplateReply, error)
func (*ServiceHTTPClientImpl) SwitchTemplate ¶
func (c *ServiceHTTPClientImpl) SwitchTemplate(ctx context.Context, in *SwitchTemplateRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { AddTemplate(context.Context, *AddTemplateRequest) (*emptypb.Empty, error) CompareTemplate(context.Context, *CompareTemplateRequest) (*CompareTemplateReply, error) CurrentTemplate(context.Context, *CurrentTemplateRequest) (*CurrentTemplateReply, error) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateReply, error) PageTemplate(context.Context, *PageTemplateRequest) (*PageTemplateReply, error) ParseTemplate(context.Context, *ParseTemplateRequest) (*ParseTemplateReply, error) PreviewTemplate(context.Context, *PreviewTemplateRequest) (*PreviewTemplateReply, error) SwitchTemplate(context.Context, *SwitchTemplateRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { PageTemplate(context.Context, *PageTemplateRequest) (*PageTemplateReply, error) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateReply, error) CurrentTemplate(context.Context, *CurrentTemplateRequest) (*CurrentTemplateReply, error) AddTemplate(context.Context, *AddTemplateRequest) (*emptypb.Empty, error) SwitchTemplate(context.Context, *SwitchTemplateRequest) (*emptypb.Empty, error) CompareTemplate(context.Context, *CompareTemplateRequest) (*CompareTemplateReply, error) PreviewTemplate(context.Context, *PreviewTemplateRequest) (*PreviewTemplateReply, error) ParseTemplate(context.Context, *ParseTemplateRequest) (*ParseTemplateReply, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type SwitchTemplateRequest ¶
type SwitchTemplateRequest 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"` // contains filtered or unexported fields }
切换模板
func (*SwitchTemplateRequest) Descriptor
deprecated
func (*SwitchTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwitchTemplateRequest.ProtoReflect.Descriptor instead.
func (*SwitchTemplateRequest) GetId ¶
func (x *SwitchTemplateRequest) GetId() uint32
func (*SwitchTemplateRequest) GetServerId ¶
func (x *SwitchTemplateRequest) GetServerId() uint32
func (*SwitchTemplateRequest) ProtoMessage ¶
func (*SwitchTemplateRequest) ProtoMessage()
func (*SwitchTemplateRequest) ProtoReflect ¶
func (x *SwitchTemplateRequest) ProtoReflect() protoreflect.Message
func (*SwitchTemplateRequest) Reset ¶
func (x *SwitchTemplateRequest) Reset()
func (*SwitchTemplateRequest) String ¶
func (x *SwitchTemplateRequest) String() string
func (*SwitchTemplateRequest) Validate ¶
func (m *SwitchTemplateRequest) Validate() error
Validate checks the field values on SwitchTemplateRequest 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 (*SwitchTemplateRequest) ValidateAll ¶
func (m *SwitchTemplateRequest) ValidateAll() error
ValidateAll checks the field values on SwitchTemplateRequest 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 SwitchTemplateRequestMultiError, or nil if none found.
type SwitchTemplateRequestMultiError ¶
type SwitchTemplateRequestMultiError []error
SwitchTemplateRequestMultiError is an error wrapping multiple validation errors returned by SwitchTemplateRequest.ValidateAll() if the designated constraints aren't met.
func (SwitchTemplateRequestMultiError) AllErrors ¶
func (m SwitchTemplateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SwitchTemplateRequestMultiError) Error ¶
func (m SwitchTemplateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SwitchTemplateRequestValidationError ¶
type SwitchTemplateRequestValidationError struct {
// contains filtered or unexported fields
}
SwitchTemplateRequestValidationError is the validation error returned by SwitchTemplateRequest.Validate if the designated constraints aren't met.
func (SwitchTemplateRequestValidationError) Cause ¶
func (e SwitchTemplateRequestValidationError) Cause() error
Cause function returns cause value.
func (SwitchTemplateRequestValidationError) Error ¶
func (e SwitchTemplateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SwitchTemplateRequestValidationError) ErrorName ¶
func (e SwitchTemplateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SwitchTemplateRequestValidationError) Field ¶
func (e SwitchTemplateRequestValidationError) Field() string
Field function returns field value.
func (SwitchTemplateRequestValidationError) Key ¶
func (e SwitchTemplateRequestValidationError) Key() bool
Key function returns key value.
func (SwitchTemplateRequestValidationError) Reason ¶
func (e SwitchTemplateRequestValidationError) Reason() string
Reason function returns reason value.
type Template ¶
type Template 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` Format string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"` IsUse bool `protobuf:"varint,6,opt,name=is_use,json=isUse,proto3" json:"is_use,omitempty"` Compare string `protobuf:"bytes,7,opt,name=compare,proto3" json:"compare,omitempty"` Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` CreatedAt uint32 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Template) Descriptor
deprecated
func (*Template) GetCompare ¶
func (*Template) GetContent ¶
func (*Template) GetCreatedAt ¶
func (*Template) GetDescription ¶
func (*Template) GetServerId ¶
func (*Template) GetVersion ¶
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
func (*Template) Validate ¶
Validate checks the field values on Template 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 (*Template) ValidateAll ¶
ValidateAll checks the field values on Template 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 TemplateMultiError, or nil if none found.
type TemplateMultiError ¶
type TemplateMultiError []error
TemplateMultiError is an error wrapping multiple validation errors returned by Template.ValidateAll() if the designated constraints aren't met.
func (TemplateMultiError) AllErrors ¶
func (m TemplateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TemplateMultiError) Error ¶
func (m TemplateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TemplateValidationError ¶
type TemplateValidationError struct {
// contains filtered or unexported fields
}
TemplateValidationError is the validation error returned by Template.Validate if the designated constraints aren't met.
func (TemplateValidationError) Cause ¶
func (e TemplateValidationError) Cause() error
Cause function returns cause value.
func (TemplateValidationError) Error ¶
func (e TemplateValidationError) Error() string
Error satisfies the builtin error interface
func (TemplateValidationError) ErrorName ¶
func (e TemplateValidationError) ErrorName() string
ErrorName returns error name.
func (TemplateValidationError) Field ¶
func (e TemplateValidationError) Field() string
Field function returns field value.
func (TemplateValidationError) Key ¶
func (e TemplateValidationError) Key() bool
Key function returns key value.
func (TemplateValidationError) Reason ¶
func (e TemplateValidationError) Reason() string
Reason function returns reason value.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddTemplate ¶
func (UnimplementedServiceServer) AddTemplate(context.Context, *AddTemplateRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) CompareTemplate ¶
func (UnimplementedServiceServer) CompareTemplate(context.Context, *CompareTemplateRequest) (*CompareTemplateReply, error)
func (UnimplementedServiceServer) CurrentTemplate ¶
func (UnimplementedServiceServer) CurrentTemplate(context.Context, *CurrentTemplateRequest) (*CurrentTemplateReply, error)
func (UnimplementedServiceServer) GetTemplate ¶
func (UnimplementedServiceServer) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateReply, error)
func (UnimplementedServiceServer) PageTemplate ¶
func (UnimplementedServiceServer) PageTemplate(context.Context, *PageTemplateRequest) (*PageTemplateReply, error)
func (UnimplementedServiceServer) ParseTemplate ¶
func (UnimplementedServiceServer) ParseTemplate(context.Context, *ParseTemplateRequest) (*ParseTemplateReply, error)
func (UnimplementedServiceServer) PreviewTemplate ¶
func (UnimplementedServiceServer) PreviewTemplate(context.Context, *PreviewTemplateRequest) (*PreviewTemplateReply, error)
func (UnimplementedServiceServer) SwitchTemplate ¶
func (UnimplementedServiceServer) SwitchTemplate(context.Context, *SwitchTemplateRequest) (*emptypb.Empty, 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.