v1

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Template_ListTemplate_FullMethodName    = "/configure.api.configure.template.v1.Template/ListTemplate"
	Template_GetTemplate_FullMethodName     = "/configure.api.configure.template.v1.Template/GetTemplate"
	Template_CurrentTemplate_FullMethodName = "/configure.api.configure.template.v1.Template/CurrentTemplate"
	Template_CreateTemplate_FullMethodName  = "/configure.api.configure.template.v1.Template/CreateTemplate"
	Template_SwitchTemplate_FullMethodName  = "/configure.api.configure.template.v1.Template/SwitchTemplate"
	Template_CompareTemplate_FullMethodName = "/configure.api.configure.template.v1.Template/CompareTemplate"
	Template_PreviewTemplate_FullMethodName = "/configure.api.configure.template.v1.Template/PreviewTemplate"
	Template_ParseTemplate_FullMethodName   = "/configure.api.configure.template.v1.Template/ParseTemplate"
)
View Source
const OperationTemplateCompareTemplate = "/configure.api.configure.template.v1.Template/CompareTemplate"
View Source
const OperationTemplateCreateTemplate = "/configure.api.configure.template.v1.Template/CreateTemplate"
View Source
const OperationTemplateCurrentTemplate = "/configure.api.configure.template.v1.Template/CurrentTemplate"
View Source
const OperationTemplateGetTemplate = "/configure.api.configure.template.v1.Template/GetTemplate"
View Source
const OperationTemplateListTemplate = "/configure.api.configure.template.v1.Template/ListTemplate"
View Source
const OperationTemplateParseTemplate = "/configure.api.configure.template.v1.Template/ParseTemplate"
View Source
const OperationTemplatePreviewTemplate = "/configure.api.configure.template.v1.Template/PreviewTemplate"
View Source
const OperationTemplateSwitchTemplate = "/configure.api.configure.template.v1.Template/SwitchTemplate"

Variables

View Source
var File_api_configure_template_configure_template_proto protoreflect.FileDescriptor
View Source
var File_api_configure_template_configure_template_service_proto protoreflect.FileDescriptor
View Source
var Template_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "configure.api.configure.template.v1.Template",
	HandlerType: (*TemplateServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTemplate",
			Handler:    _Template_ListTemplate_Handler,
		},
		{
			MethodName: "GetTemplate",
			Handler:    _Template_GetTemplate_Handler,
		},
		{
			MethodName: "CurrentTemplate",
			Handler:    _Template_CurrentTemplate_Handler,
		},
		{
			MethodName: "CreateTemplate",
			Handler:    _Template_CreateTemplate_Handler,
		},
		{
			MethodName: "SwitchTemplate",
			Handler:    _Template_SwitchTemplate_Handler,
		},
		{
			MethodName: "CompareTemplate",
			Handler:    _Template_CompareTemplate_Handler,
		},
		{
			MethodName: "PreviewTemplate",
			Handler:    _Template_PreviewTemplate_Handler,
		},
		{
			MethodName: "ParseTemplate",
			Handler:    _Template_ParseTemplate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/configure/template/configure_template_service.proto",
}

Template_ServiceDesc is the grpc.ServiceDesc for Template service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTemplateHTTPServer

func RegisterTemplateHTTPServer(s *http.Server, srv TemplateHTTPServer)

func RegisterTemplateServer

func RegisterTemplateServer(s grpc.ServiceRegistrar, srv TemplateServer)

Types

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

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

Cause function returns cause value.

func (CompareTemplateInfoValidationError) Error

Error satisfies the builtin error interface

func (CompareTemplateInfoValidationError) ErrorName

ErrorName returns error name.

func (CompareTemplateInfoValidationError) Field

Field function returns field value.

func (CompareTemplateInfoValidationError) Key

Key function returns key value.

func (CompareTemplateInfoValidationError) Reason

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

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

Cause function returns cause value.

func (CompareTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (CompareTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (CompareTemplateReplyValidationError) Field

Field function returns field value.

func (CompareTemplateReplyValidationError) Key

Key function returns key value.

func (CompareTemplateReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CompareTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (CompareTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (CompareTemplateRequestValidationError) Field

Field function returns field value.

func (CompareTemplateRequestValidationError) Key

Key function returns key value.

func (CompareTemplateRequestValidationError) Reason

Reason function returns reason value.

type CreateTemplateReply

type CreateTemplateReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTemplateReply) Descriptor deprecated

func (*CreateTemplateReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateTemplateReply.ProtoReflect.Descriptor instead.

func (*CreateTemplateReply) GetId

func (x *CreateTemplateReply) GetId() uint32

func (*CreateTemplateReply) ProtoMessage

func (*CreateTemplateReply) ProtoMessage()

func (*CreateTemplateReply) ProtoReflect

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

func (*CreateTemplateReply) Reset

func (x *CreateTemplateReply) Reset()

func (*CreateTemplateReply) String

func (x *CreateTemplateReply) String() string

func (*CreateTemplateReply) Validate

func (m *CreateTemplateReply) Validate() error

Validate checks the field values on CreateTemplateReply 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 (*CreateTemplateReply) ValidateAll

func (m *CreateTemplateReply) ValidateAll() error

ValidateAll checks the field values on CreateTemplateReply 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 CreateTemplateReplyMultiError, or nil if none found.

type CreateTemplateReplyMultiError

type CreateTemplateReplyMultiError []error

CreateTemplateReplyMultiError is an error wrapping multiple validation errors returned by CreateTemplateReply.ValidateAll() if the designated constraints aren't met.

func (CreateTemplateReplyMultiError) AllErrors

func (m CreateTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTemplateReplyValidationError

type CreateTemplateReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateTemplateReplyValidationError is the validation error returned by CreateTemplateReply.Validate if the designated constraints aren't met.

func (CreateTemplateReplyValidationError) Cause

Cause function returns cause value.

func (CreateTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateTemplateReplyValidationError) Field

Field function returns field value.

func (CreateTemplateReplyValidationError) Key

Key function returns key value.

func (CreateTemplateReplyValidationError) Reason

Reason function returns reason value.

type CreateTemplateRequest

type CreateTemplateRequest struct {
	ServerId    uint32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,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 (*CreateTemplateRequest) Descriptor deprecated

func (*CreateTemplateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTemplateRequest.ProtoReflect.Descriptor instead.

func (*CreateTemplateRequest) GetContent

func (x *CreateTemplateRequest) GetContent() string

func (*CreateTemplateRequest) GetDescription

func (x *CreateTemplateRequest) GetDescription() string

func (*CreateTemplateRequest) GetFormat

func (x *CreateTemplateRequest) GetFormat() string

func (*CreateTemplateRequest) GetServerId

func (x *CreateTemplateRequest) GetServerId() uint32

func (*CreateTemplateRequest) ProtoMessage

func (*CreateTemplateRequest) ProtoMessage()

func (*CreateTemplateRequest) ProtoReflect

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

func (*CreateTemplateRequest) Reset

func (x *CreateTemplateRequest) Reset()

func (*CreateTemplateRequest) String

func (x *CreateTemplateRequest) String() string

func (*CreateTemplateRequest) Validate

func (m *CreateTemplateRequest) Validate() error

Validate checks the field values on CreateTemplateRequest 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 (*CreateTemplateRequest) ValidateAll

func (m *CreateTemplateRequest) ValidateAll() error

ValidateAll checks the field values on CreateTemplateRequest 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 CreateTemplateRequestMultiError, or nil if none found.

type CreateTemplateRequestMultiError

type CreateTemplateRequestMultiError []error

CreateTemplateRequestMultiError is an error wrapping multiple validation errors returned by CreateTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (CreateTemplateRequestMultiError) AllErrors

func (m CreateTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTemplateRequestValidationError

type CreateTemplateRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateTemplateRequestValidationError is the validation error returned by CreateTemplateRequest.Validate if the designated constraints aren't met.

func (CreateTemplateRequestValidationError) Cause

Cause function returns cause value.

func (CreateTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTemplateRequestValidationError) Field

Field function returns field value.

func (CreateTemplateRequestValidationError) Key

Key function returns key value.

func (CreateTemplateRequestValidationError) Reason

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=serverId,proto3" json:"serverId,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=isUse,proto3" json:"isUse,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=createdAt,proto3" json:"createdAt,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

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

Cause function returns cause value.

func (CurrentTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (CurrentTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (CurrentTemplateReplyValidationError) Field

Field function returns field value.

func (CurrentTemplateReplyValidationError) Key

Key function returns key value.

func (CurrentTemplateReplyValidationError) Reason

Reason function returns reason value.

type CurrentTemplateRequest

type CurrentTemplateRequest struct {
	ServerId uint32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,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

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

Cause function returns cause value.

func (CurrentTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (CurrentTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (CurrentTemplateRequestValidationError) Field

Field function returns field value.

func (CurrentTemplateRequestValidationError) Key

Key function returns key value.

func (CurrentTemplateRequestValidationError) Reason

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=serverId,proto3" json:"serverId,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=isUse,proto3" json:"isUse,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=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTemplateReply) Descriptor deprecated

func (*GetTemplateReply) Descriptor() ([]byte, []int)

Deprecated: Use GetTemplateReply.ProtoReflect.Descriptor instead.

func (*GetTemplateReply) GetCompare

func (x *GetTemplateReply) GetCompare() string

func (*GetTemplateReply) GetContent

func (x *GetTemplateReply) GetContent() string

func (*GetTemplateReply) GetCreatedAt

func (x *GetTemplateReply) GetCreatedAt() uint32

func (*GetTemplateReply) GetDescription

func (x *GetTemplateReply) GetDescription() string

func (*GetTemplateReply) GetFormat

func (x *GetTemplateReply) GetFormat() string

func (*GetTemplateReply) GetId

func (x *GetTemplateReply) GetId() uint32

func (*GetTemplateReply) GetIsUse

func (x *GetTemplateReply) GetIsUse() bool

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

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

Cause function returns cause value.

func (GetTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (GetTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (GetTemplateReplyValidationError) Field

Field function returns field value.

func (GetTemplateReplyValidationError) Key

Key function returns key value.

func (GetTemplateReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTemplateRequestValidationError) Field

Field function returns field value.

func (GetTemplateRequestValidationError) Key

Key function returns key value.

func (GetTemplateRequestValidationError) Reason

Reason function returns reason value.

type ListTemplateReply

type ListTemplateReply struct {
	Total uint32                        `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListTemplateReply_Template `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplateReply) Descriptor deprecated

func (*ListTemplateReply) Descriptor() ([]byte, []int)

Deprecated: Use ListTemplateReply.ProtoReflect.Descriptor instead.

func (*ListTemplateReply) GetList

func (*ListTemplateReply) GetTotal

func (x *ListTemplateReply) GetTotal() uint32

func (*ListTemplateReply) ProtoMessage

func (*ListTemplateReply) ProtoMessage()

func (*ListTemplateReply) ProtoReflect

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

func (*ListTemplateReply) Reset

func (x *ListTemplateReply) Reset()

func (*ListTemplateReply) String

func (x *ListTemplateReply) String() string

func (*ListTemplateReply) Validate

func (m *ListTemplateReply) Validate() error

Validate checks the field values on ListTemplateReply 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 (*ListTemplateReply) ValidateAll

func (m *ListTemplateReply) ValidateAll() error

ValidateAll checks the field values on ListTemplateReply 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 ListTemplateReplyMultiError, or nil if none found.

type ListTemplateReplyMultiError

type ListTemplateReplyMultiError []error

ListTemplateReplyMultiError is an error wrapping multiple validation errors returned by ListTemplateReply.ValidateAll() if the designated constraints aren't met.

func (ListTemplateReplyMultiError) AllErrors

func (m ListTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTemplateReplyValidationError

type ListTemplateReplyValidationError struct {
	// contains filtered or unexported fields
}

ListTemplateReplyValidationError is the validation error returned by ListTemplateReply.Validate if the designated constraints aren't met.

func (ListTemplateReplyValidationError) Cause

Cause function returns cause value.

func (ListTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (ListTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (ListTemplateReplyValidationError) Field

Field function returns field value.

func (ListTemplateReplyValidationError) Key

Key function returns key value.

func (ListTemplateReplyValidationError) Reason

Reason function returns reason value.

type ListTemplateReply_Template

type ListTemplateReply_Template struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ServerId    uint32 `protobuf:"varint,2,opt,name=serverId,proto3" json:"serverId,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=isUse,proto3" json:"isUse,omitempty"`
	Compare     string `protobuf:"bytes,7,opt,name=compare,proto3" json:"compare,omitempty"`
	CreatedAt   uint32 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplateReply_Template) Descriptor deprecated

func (*ListTemplateReply_Template) Descriptor() ([]byte, []int)

Deprecated: Use ListTemplateReply_Template.ProtoReflect.Descriptor instead.

func (*ListTemplateReply_Template) GetCompare added in v1.0.36

func (x *ListTemplateReply_Template) GetCompare() string

func (*ListTemplateReply_Template) GetCreatedAt

func (x *ListTemplateReply_Template) GetCreatedAt() uint32

func (*ListTemplateReply_Template) GetDescription

func (x *ListTemplateReply_Template) GetDescription() string

func (*ListTemplateReply_Template) GetFormat

func (x *ListTemplateReply_Template) GetFormat() string

func (*ListTemplateReply_Template) GetId

func (*ListTemplateReply_Template) GetIsUse

func (x *ListTemplateReply_Template) GetIsUse() bool

func (*ListTemplateReply_Template) GetServerId

func (x *ListTemplateReply_Template) GetServerId() uint32

func (*ListTemplateReply_Template) GetVersion

func (x *ListTemplateReply_Template) GetVersion() string

func (*ListTemplateReply_Template) ProtoMessage

func (*ListTemplateReply_Template) ProtoMessage()

func (*ListTemplateReply_Template) ProtoReflect

func (*ListTemplateReply_Template) Reset

func (x *ListTemplateReply_Template) Reset()

func (*ListTemplateReply_Template) String

func (x *ListTemplateReply_Template) String() string

func (*ListTemplateReply_Template) Validate

func (m *ListTemplateReply_Template) Validate() error

Validate checks the field values on ListTemplateReply_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 (*ListTemplateReply_Template) ValidateAll

func (m *ListTemplateReply_Template) ValidateAll() error

ValidateAll checks the field values on ListTemplateReply_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 ListTemplateReply_TemplateMultiError, or nil if none found.

type ListTemplateReply_TemplateMultiError

type ListTemplateReply_TemplateMultiError []error

ListTemplateReply_TemplateMultiError is an error wrapping multiple validation errors returned by ListTemplateReply_Template.ValidateAll() if the designated constraints aren't met.

func (ListTemplateReply_TemplateMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListTemplateReply_TemplateMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTemplateReply_TemplateValidationError

type ListTemplateReply_TemplateValidationError struct {
	// contains filtered or unexported fields
}

ListTemplateReply_TemplateValidationError is the validation error returned by ListTemplateReply_Template.Validate if the designated constraints aren't met.

func (ListTemplateReply_TemplateValidationError) Cause

Cause function returns cause value.

func (ListTemplateReply_TemplateValidationError) Error

Error satisfies the builtin error interface

func (ListTemplateReply_TemplateValidationError) ErrorName

ErrorName returns error name.

func (ListTemplateReply_TemplateValidationError) Field

Field function returns field value.

func (ListTemplateReply_TemplateValidationError) Key

Key function returns key value.

func (ListTemplateReply_TemplateValidationError) Reason

Reason function returns reason value.

type ListTemplateRequest

type ListTemplateRequest struct {
	Page     uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	ServerId uint32 `protobuf:"varint,3,opt,name=serverId,proto3" json:"serverId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplateRequest) Descriptor deprecated

func (*ListTemplateRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTemplateRequest.ProtoReflect.Descriptor instead.

func (*ListTemplateRequest) GetPage

func (x *ListTemplateRequest) GetPage() uint32

func (*ListTemplateRequest) GetPageSize

func (x *ListTemplateRequest) GetPageSize() uint32

func (*ListTemplateRequest) GetServerId

func (x *ListTemplateRequest) GetServerId() uint32

func (*ListTemplateRequest) ProtoMessage

func (*ListTemplateRequest) ProtoMessage()

func (*ListTemplateRequest) ProtoReflect

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

func (*ListTemplateRequest) Reset

func (x *ListTemplateRequest) Reset()

func (*ListTemplateRequest) String

func (x *ListTemplateRequest) String() string

func (*ListTemplateRequest) Validate

func (m *ListTemplateRequest) Validate() error

Validate checks the field values on ListTemplateRequest 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 (*ListTemplateRequest) ValidateAll

func (m *ListTemplateRequest) ValidateAll() error

ValidateAll checks the field values on ListTemplateRequest 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 ListTemplateRequestMultiError, or nil if none found.

type ListTemplateRequestMultiError

type ListTemplateRequestMultiError []error

ListTemplateRequestMultiError is an error wrapping multiple validation errors returned by ListTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (ListTemplateRequestMultiError) AllErrors

func (m ListTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTemplateRequestValidationError

type ListTemplateRequestValidationError struct {
	// contains filtered or unexported fields
}

ListTemplateRequestValidationError is the validation error returned by ListTemplateRequest.Validate if the designated constraints aren't met.

func (ListTemplateRequestValidationError) Cause

Cause function returns cause value.

func (ListTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTemplateRequestValidationError) Field

Field function returns field value.

func (ListTemplateRequestValidationError) Key

Key function returns key value.

func (ListTemplateRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ParseTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (ParseTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (ParseTemplateReplyValidationError) Field

Field function returns field value.

func (ParseTemplateReplyValidationError) Key

Key function returns key value.

func (ParseTemplateReplyValidationError) Reason

Reason function returns reason value.

type ParseTemplateRequest

type ParseTemplateRequest struct {
	ServerId uint32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
	EnvId    uint32 `protobuf:"varint,2,opt,name=envId,proto3" json:"envId,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

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

Cause function returns cause value.

func (ParseTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (ParseTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (ParseTemplateRequestValidationError) Field

Field function returns field value.

func (ParseTemplateRequestValidationError) Key

Key function returns key value.

func (ParseTemplateRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PreviewTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (PreviewTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (PreviewTemplateReplyValidationError) Field

Field function returns field value.

func (PreviewTemplateReplyValidationError) Key

Key function returns key value.

func (PreviewTemplateReplyValidationError) Reason

Reason function returns reason value.

type PreviewTemplateRequest

type PreviewTemplateRequest struct {
	EnvId    uint32 `protobuf:"varint,1,opt,name=envId,proto3" json:"envId,omitempty"`
	ServerId uint32 `protobuf:"varint,2,opt,name=serverId,proto3" json:"serverId,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

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

Cause function returns cause value.

func (PreviewTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (PreviewTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (PreviewTemplateRequestValidationError) Field

Field function returns field value.

func (PreviewTemplateRequestValidationError) Key

Key function returns key value.

func (PreviewTemplateRequestValidationError) Reason

Reason function returns reason value.

type SwitchTemplateReply

type SwitchTemplateReply struct {
	// contains filtered or unexported fields
}

func (*SwitchTemplateReply) Descriptor deprecated

func (*SwitchTemplateReply) Descriptor() ([]byte, []int)

Deprecated: Use SwitchTemplateReply.ProtoReflect.Descriptor instead.

func (*SwitchTemplateReply) ProtoMessage

func (*SwitchTemplateReply) ProtoMessage()

func (*SwitchTemplateReply) ProtoReflect

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

func (*SwitchTemplateReply) Reset

func (x *SwitchTemplateReply) Reset()

func (*SwitchTemplateReply) String

func (x *SwitchTemplateReply) String() string

func (*SwitchTemplateReply) Validate

func (m *SwitchTemplateReply) Validate() error

Validate checks the field values on SwitchTemplateReply 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 (*SwitchTemplateReply) ValidateAll

func (m *SwitchTemplateReply) ValidateAll() error

ValidateAll checks the field values on SwitchTemplateReply 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 SwitchTemplateReplyMultiError, or nil if none found.

type SwitchTemplateReplyMultiError

type SwitchTemplateReplyMultiError []error

SwitchTemplateReplyMultiError is an error wrapping multiple validation errors returned by SwitchTemplateReply.ValidateAll() if the designated constraints aren't met.

func (SwitchTemplateReplyMultiError) AllErrors

func (m SwitchTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SwitchTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SwitchTemplateReplyValidationError

type SwitchTemplateReplyValidationError struct {
	// contains filtered or unexported fields
}

SwitchTemplateReplyValidationError is the validation error returned by SwitchTemplateReply.Validate if the designated constraints aren't met.

func (SwitchTemplateReplyValidationError) Cause

Cause function returns cause value.

func (SwitchTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (SwitchTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (SwitchTemplateReplyValidationError) Field

Field function returns field value.

func (SwitchTemplateReplyValidationError) Key

Key function returns key value.

func (SwitchTemplateReplyValidationError) Reason

Reason function returns reason value.

type SwitchTemplateRequest

type SwitchTemplateRequest struct {
	Id       uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ServerId uint32 `protobuf:"varint,2,opt,name=serverId,proto3" json:"serverId,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

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

Cause function returns cause value.

func (SwitchTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (SwitchTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (SwitchTemplateRequestValidationError) Field

Field function returns field value.

func (SwitchTemplateRequestValidationError) Key

Key function returns key value.

func (SwitchTemplateRequestValidationError) Reason

Reason function returns reason value.

type TemplateClient

type TemplateClient interface {
	ListTemplate(ctx context.Context, in *ListTemplateRequest, opts ...grpc.CallOption) (*ListTemplateReply, error)
	GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateReply, error)
	CurrentTemplate(ctx context.Context, in *CurrentTemplateRequest, opts ...grpc.CallOption) (*CurrentTemplateReply, error)
	CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateReply, error)
	SwitchTemplate(ctx context.Context, in *SwitchTemplateRequest, opts ...grpc.CallOption) (*SwitchTemplateReply, 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)
}

TemplateClient is the client API for Template 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 NewTemplateClient

func NewTemplateClient(cc grpc.ClientConnInterface) TemplateClient

type TemplateHTTPClient

type TemplateHTTPClient interface {
	CompareTemplate(ctx context.Context, req *CompareTemplateRequest, opts ...http.CallOption) (rsp *CompareTemplateReply, err error)
	CreateTemplate(ctx context.Context, req *CreateTemplateRequest, opts ...http.CallOption) (rsp *CreateTemplateReply, 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)
	ListTemplate(ctx context.Context, req *ListTemplateRequest, opts ...http.CallOption) (rsp *ListTemplateReply, 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 *SwitchTemplateReply, err error)
}

func NewTemplateHTTPClient

func NewTemplateHTTPClient(client *http.Client) TemplateHTTPClient

type TemplateHTTPClientImpl

type TemplateHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*TemplateHTTPClientImpl) CompareTemplate

func (*TemplateHTTPClientImpl) CreateTemplate

func (*TemplateHTTPClientImpl) CurrentTemplate

func (*TemplateHTTPClientImpl) GetTemplate

func (*TemplateHTTPClientImpl) ListTemplate

func (*TemplateHTTPClientImpl) ParseTemplate

func (*TemplateHTTPClientImpl) PreviewTemplate

func (*TemplateHTTPClientImpl) SwitchTemplate

type TemplateServer

TemplateServer is the server API for Template service. All implementations must embed UnimplementedTemplateServer for forward compatibility

type UnimplementedTemplateServer

type UnimplementedTemplateServer struct {
}

UnimplementedTemplateServer must be embedded to have forward compatible implementations.

func (UnimplementedTemplateServer) CompareTemplate

func (UnimplementedTemplateServer) CreateTemplate

func (UnimplementedTemplateServer) CurrentTemplate

func (UnimplementedTemplateServer) GetTemplate

func (UnimplementedTemplateServer) ListTemplate

func (UnimplementedTemplateServer) ParseTemplate

func (UnimplementedTemplateServer) PreviewTemplate

func (UnimplementedTemplateServer) SwitchTemplate

type UnsafeTemplateServer

type UnsafeTemplateServer interface {
	// contains filtered or unexported methods
}

UnsafeTemplateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TemplateServer will result in compilation errors.

Jump to

Keyboard shortcuts

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