Documentation
¶
Index ¶
- Variables
- type DataConfig
- func (*DataConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DataConfig) GetDatabase() *DataConfig_Database
- func (x *DataConfig) GetRedis() *DataConfig_Redis
- func (*DataConfig) ProtoMessage()
- func (x *DataConfig) ProtoReflect() protoreflect.Message
- func (x *DataConfig) Reset()
- func (x *DataConfig) String() string
- func (m *DataConfig) Validate() error
- func (m *DataConfig) ValidateAll() error
- type DataConfigMultiError
- type DataConfigValidationError
- type DataConfig_Database
- func (*DataConfig_Database) Descriptor() ([]byte, []int)deprecated
- func (x *DataConfig_Database) GetDriver() string
- func (x *DataConfig_Database) GetLevel() int32
- func (x *DataConfig_Database) GetMaxIdle() int32
- func (x *DataConfig_Database) GetMaxLifeTimeSeconds() int32
- func (x *DataConfig_Database) GetMaxOpen() int32
- func (x *DataConfig_Database) GetSource() string
- func (*DataConfig_Database) ProtoMessage()
- func (x *DataConfig_Database) ProtoReflect() protoreflect.Message
- func (x *DataConfig_Database) Reset()
- func (x *DataConfig_Database) String() string
- func (m *DataConfig_Database) Validate() error
- func (m *DataConfig_Database) ValidateAll() error
- type DataConfig_DatabaseMultiError
- type DataConfig_DatabaseValidationError
- func (e DataConfig_DatabaseValidationError) Cause() error
- func (e DataConfig_DatabaseValidationError) Error() string
- func (e DataConfig_DatabaseValidationError) ErrorName() string
- func (e DataConfig_DatabaseValidationError) Field() string
- func (e DataConfig_DatabaseValidationError) Key() bool
- func (e DataConfig_DatabaseValidationError) Reason() string
- type DataConfig_Redis
- func (*DataConfig_Redis) Descriptor() ([]byte, []int)deprecated
- func (x *DataConfig_Redis) GetAddress() string
- func (x *DataConfig_Redis) GetDb() int32
- func (x *DataConfig_Redis) GetMaxIdle() int32
- func (x *DataConfig_Redis) GetPassword() string
- func (x *DataConfig_Redis) GetReadTimeoutSeconds() int64
- func (x *DataConfig_Redis) GetWriteTimeoutSeconds() int64
- func (*DataConfig_Redis) ProtoMessage()
- func (x *DataConfig_Redis) ProtoReflect() protoreflect.Message
- func (x *DataConfig_Redis) Reset()
- func (x *DataConfig_Redis) String() string
- func (m *DataConfig_Redis) Validate() error
- func (m *DataConfig_Redis) ValidateAll() error
- type DataConfig_RedisMultiError
- type DataConfig_RedisValidationError
- func (e DataConfig_RedisValidationError) Cause() error
- func (e DataConfig_RedisValidationError) Error() string
- func (e DataConfig_RedisValidationError) ErrorName() string
- func (e DataConfig_RedisValidationError) Field() string
- func (e DataConfig_RedisValidationError) Key() bool
- func (e DataConfig_RedisValidationError) Reason() string
- type EmptyReply
- type EmptyReplyMultiError
- type EmptyReplyValidationError
- type EmptyRequest
- func (*EmptyRequest) Descriptor() ([]byte, []int)deprecated
- func (*EmptyRequest) ProtoMessage()
- func (x *EmptyRequest) ProtoReflect() protoreflect.Message
- func (x *EmptyRequest) Reset()
- func (x *EmptyRequest) String() string
- func (m *EmptyRequest) Validate() error
- func (m *EmptyRequest) ValidateAll() error
- type EmptyRequestMultiError
- type EmptyRequestValidationError
- func (e EmptyRequestValidationError) Cause() error
- func (e EmptyRequestValidationError) Error() string
- func (e EmptyRequestValidationError) ErrorName() string
- func (e EmptyRequestValidationError) Field() string
- func (e EmptyRequestValidationError) Key() bool
- func (e EmptyRequestValidationError) Reason() string
- type ErrorReply
- func (*ErrorReply) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorReply) GetCode() int32
- func (x *ErrorReply) GetMessage() string
- func (x *ErrorReply) GetReason() string
- func (x *ErrorReply) GetTime() int64
- func (*ErrorReply) ProtoMessage()
- func (x *ErrorReply) ProtoReflect() protoreflect.Message
- func (x *ErrorReply) Reset()
- func (x *ErrorReply) String() string
- func (m *ErrorReply) Validate() error
- func (m *ErrorReply) ValidateAll() error
- type ErrorReplyMultiError
- type ErrorReplyValidationError
- type GRPCClient
- func (*GRPCClient) Descriptor() ([]byte, []int)deprecated
- func (x *GRPCClient) GetEndpoint() string
- func (x *GRPCClient) GetTimeoutSeconds() int64
- func (*GRPCClient) ProtoMessage()
- func (x *GRPCClient) ProtoReflect() protoreflect.Message
- func (x *GRPCClient) Reset()
- func (x *GRPCClient) String() string
- func (m *GRPCClient) Validate() error
- func (m *GRPCClient) ValidateAll() error
- type GRPCClientMultiError
- type GRPCClientValidationError
- type HealthyReply
- func (*HealthyReply) Descriptor() ([]byte, []int)deprecated
- func (x *HealthyReply) GetStatus() HealthyStatus
- func (*HealthyReply) ProtoMessage()
- func (x *HealthyReply) ProtoReflect() protoreflect.Message
- func (x *HealthyReply) Reset()
- func (x *HealthyReply) String() string
- func (m *HealthyReply) Validate() error
- func (m *HealthyReply) ValidateAll() error
- type HealthyReplyMultiError
- type HealthyReplyValidationError
- func (e HealthyReplyValidationError) Cause() error
- func (e HealthyReplyValidationError) Error() string
- func (e HealthyReplyValidationError) ErrorName() string
- func (e HealthyReplyValidationError) Field() string
- func (e HealthyReplyValidationError) Key() bool
- func (e HealthyReplyValidationError) Reason() string
- type HealthyStatus
- func (HealthyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HealthyStatus) Enum() *HealthyStatus
- func (HealthyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthyStatus) Number() protoreflect.EnumNumber
- func (x HealthyStatus) String() string
- func (HealthyStatus) Type() protoreflect.EnumType
- type ServerConfig
- func (*ServerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConfig) GetGrpc() *ServerConfig_GRPC
- func (x *ServerConfig) GetHttp() *ServerConfig_HTTP
- func (x *ServerConfig) GetOssDomain() string
- func (x *ServerConfig) GetTrace() *ServerConfig_Trace
- func (*ServerConfig) ProtoMessage()
- func (x *ServerConfig) ProtoReflect() protoreflect.Message
- func (x *ServerConfig) Reset()
- func (x *ServerConfig) String() string
- func (m *ServerConfig) Validate() error
- func (m *ServerConfig) ValidateAll() error
- type ServerConfigMultiError
- type ServerConfigValidationError
- func (e ServerConfigValidationError) Cause() error
- func (e ServerConfigValidationError) Error() string
- func (e ServerConfigValidationError) ErrorName() string
- func (e ServerConfigValidationError) Field() string
- func (e ServerConfigValidationError) Key() bool
- func (e ServerConfigValidationError) Reason() string
- type ServerConfig_GRPC
- func (*ServerConfig_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConfig_GRPC) GetAddr() string
- func (x *ServerConfig_GRPC) GetNetwork() string
- func (x *ServerConfig_GRPC) GetTimeoutSeconds() int64
- func (*ServerConfig_GRPC) ProtoMessage()
- func (x *ServerConfig_GRPC) ProtoReflect() protoreflect.Message
- func (x *ServerConfig_GRPC) Reset()
- func (x *ServerConfig_GRPC) String() string
- func (m *ServerConfig_GRPC) Validate() error
- func (m *ServerConfig_GRPC) ValidateAll() error
- type ServerConfig_GRPCMultiError
- type ServerConfig_GRPCValidationError
- func (e ServerConfig_GRPCValidationError) Cause() error
- func (e ServerConfig_GRPCValidationError) Error() string
- func (e ServerConfig_GRPCValidationError) ErrorName() string
- func (e ServerConfig_GRPCValidationError) Field() string
- func (e ServerConfig_GRPCValidationError) Key() bool
- func (e ServerConfig_GRPCValidationError) Reason() string
- type ServerConfig_HTTP
- func (*ServerConfig_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConfig_HTTP) GetAddr() string
- func (x *ServerConfig_HTTP) GetNetwork() string
- func (x *ServerConfig_HTTP) GetTimeoutSeconds() int64
- func (*ServerConfig_HTTP) ProtoMessage()
- func (x *ServerConfig_HTTP) ProtoReflect() protoreflect.Message
- func (x *ServerConfig_HTTP) Reset()
- func (x *ServerConfig_HTTP) String() string
- func (m *ServerConfig_HTTP) Validate() error
- func (m *ServerConfig_HTTP) ValidateAll() error
- type ServerConfig_HTTPMultiError
- type ServerConfig_HTTPValidationError
- func (e ServerConfig_HTTPValidationError) Cause() error
- func (e ServerConfig_HTTPValidationError) Error() string
- func (e ServerConfig_HTTPValidationError) ErrorName() string
- func (e ServerConfig_HTTPValidationError) Field() string
- func (e ServerConfig_HTTPValidationError) Key() bool
- func (e ServerConfig_HTTPValidationError) Reason() string
- type ServerConfig_Trace
- func (*ServerConfig_Trace) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConfig_Trace) GetEndpoint() string
- func (x *ServerConfig_Trace) GetFraction() string
- func (x *ServerConfig_Trace) GetKind() string
- func (*ServerConfig_Trace) ProtoMessage()
- func (x *ServerConfig_Trace) ProtoReflect() protoreflect.Message
- func (x *ServerConfig_Trace) Reset()
- func (x *ServerConfig_Trace) String() string
- func (m *ServerConfig_Trace) Validate() error
- func (m *ServerConfig_Trace) ValidateAll() error
- type ServerConfig_TraceMultiError
- type ServerConfig_TraceValidationError
- func (e ServerConfig_TraceValidationError) Cause() error
- func (e ServerConfig_TraceValidationError) Error() string
- func (e ServerConfig_TraceValidationError) ErrorName() string
- func (e ServerConfig_TraceValidationError) Field() string
- func (e ServerConfig_TraceValidationError) Key() bool
- func (e ServerConfig_TraceValidationError) Reason() string
- type StringReply
- func (*StringReply) Descriptor() ([]byte, []int)deprecated
- func (x *StringReply) GetBody() string
- func (*StringReply) ProtoMessage()
- func (x *StringReply) ProtoReflect() protoreflect.Message
- func (x *StringReply) Reset()
- func (x *StringReply) String() string
- func (s *StringReply) StringReply() string
- func (m *StringReply) Validate() error
- func (m *StringReply) ValidateAll() error
- type StringReplyMultiError
- type StringReplyValidationError
- func (e StringReplyValidationError) Cause() error
- func (e StringReplyValidationError) Error() string
- func (e StringReplyValidationError) ErrorName() string
- func (e StringReplyValidationError) Field() string
- func (e StringReplyValidationError) Key() bool
- func (e StringReplyValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( HealthyStatus_name = map[int32]string{ 0: "HealthyStatusUNKNOWN", 1: "HealthyStatusSERVING", 2: "HealthyStatusNOTSERVING", } HealthyStatus_value = map[string]int32{ "HealthyStatusUNKNOWN": 0, "HealthyStatusSERVING": 1, "HealthyStatusNOTSERVING": 2, } )
Enum value maps for HealthyStatus.
var File_common_common_proto protoreflect.FileDescriptor
var File_common_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DataConfig ¶
type DataConfig struct { Database *DataConfig_Database `protobuf:"bytes,1,opt,name=database,json=database,proto3" json:"database"` Redis *DataConfig_Redis `protobuf:"bytes,2,opt,name=redis,json=redis,proto3" json:"redis"` // contains filtered or unexported fields }
func (*DataConfig) Descriptor
deprecated
func (*DataConfig) Descriptor() ([]byte, []int)
Deprecated: Use DataConfig.ProtoReflect.Descriptor instead.
func (*DataConfig) GetDatabase ¶
func (x *DataConfig) GetDatabase() *DataConfig_Database
func (*DataConfig) GetRedis ¶
func (x *DataConfig) GetRedis() *DataConfig_Redis
func (*DataConfig) ProtoMessage ¶
func (*DataConfig) ProtoMessage()
func (*DataConfig) ProtoReflect ¶
func (x *DataConfig) ProtoReflect() protoreflect.Message
func (*DataConfig) Reset ¶
func (x *DataConfig) Reset()
func (*DataConfig) String ¶
func (x *DataConfig) String() string
func (*DataConfig) Validate ¶
func (m *DataConfig) Validate() error
Validate checks the field values on DataConfig 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 (*DataConfig) ValidateAll ¶
func (m *DataConfig) ValidateAll() error
ValidateAll checks the field values on DataConfig 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 DataConfigMultiError, or nil if none found.
type DataConfigMultiError ¶
type DataConfigMultiError []error
DataConfigMultiError is an error wrapping multiple validation errors returned by DataConfig.ValidateAll() if the designated constraints aren't met.
func (DataConfigMultiError) AllErrors ¶
func (m DataConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DataConfigMultiError) Error ¶
func (m DataConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DataConfigValidationError ¶
type DataConfigValidationError struct {
// contains filtered or unexported fields
}
DataConfigValidationError is the validation error returned by DataConfig.Validate if the designated constraints aren't met.
func (DataConfigValidationError) Cause ¶
func (e DataConfigValidationError) Cause() error
Cause function returns cause value.
func (DataConfigValidationError) Error ¶
func (e DataConfigValidationError) Error() string
Error satisfies the builtin error interface
func (DataConfigValidationError) ErrorName ¶
func (e DataConfigValidationError) ErrorName() string
ErrorName returns error name.
func (DataConfigValidationError) Field ¶
func (e DataConfigValidationError) Field() string
Field function returns field value.
func (DataConfigValidationError) Key ¶
func (e DataConfigValidationError) Key() bool
Key function returns key value.
func (DataConfigValidationError) Reason ¶
func (e DataConfigValidationError) Reason() string
Reason function returns reason value.
type DataConfig_Database ¶
type DataConfig_Database struct { Driver string `protobuf:"bytes,1,opt,name=driver,json=driver,proto3" json:"driver"` Source string `protobuf:"bytes,2,opt,name=source,json=source,proto3" json:"source"` Level int32 `protobuf:"varint,3,opt,name=level,json=level,proto3" json:"level"` MaxOpen int32 `protobuf:"varint,4,opt,name=max_open,json=maxOpen,proto3" json:"max_open"` MaxIdle int32 `protobuf:"varint,5,opt,name=max_idle,json=maxIdle,proto3" json:"max_idle"` MaxLifeTimeSeconds int32 `protobuf:"varint,6,opt,name=max_life_time_seconds,json=maxLifeTimeSeconds,proto3" json:"max_life_time_seconds"` // contains filtered or unexported fields }
func (*DataConfig_Database) Descriptor
deprecated
func (*DataConfig_Database) Descriptor() ([]byte, []int)
Deprecated: Use DataConfig_Database.ProtoReflect.Descriptor instead.
func (*DataConfig_Database) GetDriver ¶
func (x *DataConfig_Database) GetDriver() string
func (*DataConfig_Database) GetLevel ¶
func (x *DataConfig_Database) GetLevel() int32
func (*DataConfig_Database) GetMaxIdle ¶
func (x *DataConfig_Database) GetMaxIdle() int32
func (*DataConfig_Database) GetMaxLifeTimeSeconds ¶
func (x *DataConfig_Database) GetMaxLifeTimeSeconds() int32
func (*DataConfig_Database) GetMaxOpen ¶
func (x *DataConfig_Database) GetMaxOpen() int32
func (*DataConfig_Database) GetSource ¶
func (x *DataConfig_Database) GetSource() string
func (*DataConfig_Database) ProtoMessage ¶
func (*DataConfig_Database) ProtoMessage()
func (*DataConfig_Database) ProtoReflect ¶
func (x *DataConfig_Database) ProtoReflect() protoreflect.Message
func (*DataConfig_Database) Reset ¶
func (x *DataConfig_Database) Reset()
func (*DataConfig_Database) String ¶
func (x *DataConfig_Database) String() string
func (*DataConfig_Database) Validate ¶
func (m *DataConfig_Database) Validate() error
Validate checks the field values on DataConfig_Database 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 (*DataConfig_Database) ValidateAll ¶
func (m *DataConfig_Database) ValidateAll() error
ValidateAll checks the field values on DataConfig_Database 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 DataConfig_DatabaseMultiError, or nil if none found.
type DataConfig_DatabaseMultiError ¶
type DataConfig_DatabaseMultiError []error
DataConfig_DatabaseMultiError is an error wrapping multiple validation errors returned by DataConfig_Database.ValidateAll() if the designated constraints aren't met.
func (DataConfig_DatabaseMultiError) AllErrors ¶
func (m DataConfig_DatabaseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DataConfig_DatabaseMultiError) Error ¶
func (m DataConfig_DatabaseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DataConfig_DatabaseValidationError ¶
type DataConfig_DatabaseValidationError struct {
// contains filtered or unexported fields
}
DataConfig_DatabaseValidationError is the validation error returned by DataConfig_Database.Validate if the designated constraints aren't met.
func (DataConfig_DatabaseValidationError) Cause ¶
func (e DataConfig_DatabaseValidationError) Cause() error
Cause function returns cause value.
func (DataConfig_DatabaseValidationError) Error ¶
func (e DataConfig_DatabaseValidationError) Error() string
Error satisfies the builtin error interface
func (DataConfig_DatabaseValidationError) ErrorName ¶
func (e DataConfig_DatabaseValidationError) ErrorName() string
ErrorName returns error name.
func (DataConfig_DatabaseValidationError) Field ¶
func (e DataConfig_DatabaseValidationError) Field() string
Field function returns field value.
func (DataConfig_DatabaseValidationError) Key ¶
func (e DataConfig_DatabaseValidationError) Key() bool
Key function returns key value.
func (DataConfig_DatabaseValidationError) Reason ¶
func (e DataConfig_DatabaseValidationError) Reason() string
Reason function returns reason value.
type DataConfig_Redis ¶
type DataConfig_Redis struct { Address string `protobuf:"bytes,1,opt,name=address,json=address,proto3" json:"address"` Password string `protobuf:"bytes,2,opt,name=password,json=password,proto3" json:"password"` Db int32 `protobuf:"varint,3,opt,name=db,json=db,proto3" json:"db"` MaxIdle int32 `protobuf:"varint,4,opt,name=max_idle,json=maxIdle,proto3" json:"max_idle"` ReadTimeoutSeconds int64 `protobuf:"varint,5,opt,name=read_timeout_seconds,json=readTimeoutSeconds,proto3" json:"read_timeout_seconds"` WriteTimeoutSeconds int64 `protobuf:"varint,6,opt,name=write_timeout_seconds,json=writeTimeoutSeconds,proto3" json:"write_timeout_seconds"` // contains filtered or unexported fields }
func (*DataConfig_Redis) Descriptor
deprecated
func (*DataConfig_Redis) Descriptor() ([]byte, []int)
Deprecated: Use DataConfig_Redis.ProtoReflect.Descriptor instead.
func (*DataConfig_Redis) GetAddress ¶
func (x *DataConfig_Redis) GetAddress() string
func (*DataConfig_Redis) GetDb ¶
func (x *DataConfig_Redis) GetDb() int32
func (*DataConfig_Redis) GetMaxIdle ¶
func (x *DataConfig_Redis) GetMaxIdle() int32
func (*DataConfig_Redis) GetPassword ¶
func (x *DataConfig_Redis) GetPassword() string
func (*DataConfig_Redis) GetReadTimeoutSeconds ¶
func (x *DataConfig_Redis) GetReadTimeoutSeconds() int64
func (*DataConfig_Redis) GetWriteTimeoutSeconds ¶
func (x *DataConfig_Redis) GetWriteTimeoutSeconds() int64
func (*DataConfig_Redis) ProtoMessage ¶
func (*DataConfig_Redis) ProtoMessage()
func (*DataConfig_Redis) ProtoReflect ¶
func (x *DataConfig_Redis) ProtoReflect() protoreflect.Message
func (*DataConfig_Redis) Reset ¶
func (x *DataConfig_Redis) Reset()
func (*DataConfig_Redis) String ¶
func (x *DataConfig_Redis) String() string
func (*DataConfig_Redis) Validate ¶
func (m *DataConfig_Redis) Validate() error
Validate checks the field values on DataConfig_Redis 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 (*DataConfig_Redis) ValidateAll ¶
func (m *DataConfig_Redis) ValidateAll() error
ValidateAll checks the field values on DataConfig_Redis 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 DataConfig_RedisMultiError, or nil if none found.
type DataConfig_RedisMultiError ¶
type DataConfig_RedisMultiError []error
DataConfig_RedisMultiError is an error wrapping multiple validation errors returned by DataConfig_Redis.ValidateAll() if the designated constraints aren't met.
func (DataConfig_RedisMultiError) AllErrors ¶
func (m DataConfig_RedisMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DataConfig_RedisMultiError) Error ¶
func (m DataConfig_RedisMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DataConfig_RedisValidationError ¶
type DataConfig_RedisValidationError struct {
// contains filtered or unexported fields
}
DataConfig_RedisValidationError is the validation error returned by DataConfig_Redis.Validate if the designated constraints aren't met.
func (DataConfig_RedisValidationError) Cause ¶
func (e DataConfig_RedisValidationError) Cause() error
Cause function returns cause value.
func (DataConfig_RedisValidationError) Error ¶
func (e DataConfig_RedisValidationError) Error() string
Error satisfies the builtin error interface
func (DataConfig_RedisValidationError) ErrorName ¶
func (e DataConfig_RedisValidationError) ErrorName() string
ErrorName returns error name.
func (DataConfig_RedisValidationError) Field ¶
func (e DataConfig_RedisValidationError) Field() string
Field function returns field value.
func (DataConfig_RedisValidationError) Key ¶
func (e DataConfig_RedisValidationError) Key() bool
Key function returns key value.
func (DataConfig_RedisValidationError) Reason ¶
func (e DataConfig_RedisValidationError) Reason() string
Reason function returns reason value.
type EmptyReply ¶
type EmptyReply struct {
// contains filtered or unexported fields
}
func (*EmptyReply) Descriptor
deprecated
func (*EmptyReply) Descriptor() ([]byte, []int)
Deprecated: Use EmptyReply.ProtoReflect.Descriptor instead.
func (*EmptyReply) ProtoMessage ¶
func (*EmptyReply) ProtoMessage()
func (*EmptyReply) ProtoReflect ¶
func (x *EmptyReply) ProtoReflect() protoreflect.Message
func (*EmptyReply) Reset ¶
func (x *EmptyReply) Reset()
func (*EmptyReply) String ¶
func (x *EmptyReply) String() string
func (*EmptyReply) Validate ¶
func (m *EmptyReply) Validate() error
Validate checks the field values on EmptyReply 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 (*EmptyReply) ValidateAll ¶
func (m *EmptyReply) ValidateAll() error
ValidateAll checks the field values on EmptyReply 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 EmptyReplyMultiError, or nil if none found.
type EmptyReplyMultiError ¶
type EmptyReplyMultiError []error
EmptyReplyMultiError is an error wrapping multiple validation errors returned by EmptyReply.ValidateAll() if the designated constraints aren't met.
func (EmptyReplyMultiError) AllErrors ¶
func (m EmptyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EmptyReplyMultiError) Error ¶
func (m EmptyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EmptyReplyValidationError ¶
type EmptyReplyValidationError struct {
// contains filtered or unexported fields
}
EmptyReplyValidationError is the validation error returned by EmptyReply.Validate if the designated constraints aren't met.
func (EmptyReplyValidationError) Cause ¶
func (e EmptyReplyValidationError) Cause() error
Cause function returns cause value.
func (EmptyReplyValidationError) Error ¶
func (e EmptyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (EmptyReplyValidationError) ErrorName ¶
func (e EmptyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (EmptyReplyValidationError) Field ¶
func (e EmptyReplyValidationError) Field() string
Field function returns field value.
func (EmptyReplyValidationError) Key ¶
func (e EmptyReplyValidationError) Key() bool
Key function returns key value.
func (EmptyReplyValidationError) Reason ¶
func (e EmptyReplyValidationError) Reason() string
Reason function returns reason value.
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
------ 空请求/空返回
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
func (*EmptyRequest) Validate ¶
func (m *EmptyRequest) Validate() error
Validate checks the field values on EmptyRequest 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 (*EmptyRequest) ValidateAll ¶
func (m *EmptyRequest) ValidateAll() error
ValidateAll checks the field values on EmptyRequest 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 EmptyRequestMultiError, or nil if none found.
type EmptyRequestMultiError ¶
type EmptyRequestMultiError []error
EmptyRequestMultiError is an error wrapping multiple validation errors returned by EmptyRequest.ValidateAll() if the designated constraints aren't met.
func (EmptyRequestMultiError) AllErrors ¶
func (m EmptyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EmptyRequestMultiError) Error ¶
func (m EmptyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EmptyRequestValidationError ¶
type EmptyRequestValidationError struct {
// contains filtered or unexported fields
}
EmptyRequestValidationError is the validation error returned by EmptyRequest.Validate if the designated constraints aren't met.
func (EmptyRequestValidationError) Cause ¶
func (e EmptyRequestValidationError) Cause() error
Cause function returns cause value.
func (EmptyRequestValidationError) Error ¶
func (e EmptyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (EmptyRequestValidationError) ErrorName ¶
func (e EmptyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (EmptyRequestValidationError) Field ¶
func (e EmptyRequestValidationError) Field() string
Field function returns field value.
func (EmptyRequestValidationError) Key ¶
func (e EmptyRequestValidationError) Key() bool
Key function returns key value.
func (EmptyRequestValidationError) Reason ¶
func (e EmptyRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReply ¶
type ErrorReply struct { Code int32 `protobuf:"varint,1,opt,name=code,json=code,proto3" json:"code"` Reason string `protobuf:"bytes,2,opt,name=reason,json=reason,proto3" json:"reason"` Message string `protobuf:"bytes,3,opt,name=message,json=message,proto3" json:"message"` Time int64 `protobuf:"varint,4,opt,name=time,json=time,proto3" json:"time"` // contains filtered or unexported fields }
------ 错误返回
func (*ErrorReply) Descriptor
deprecated
func (*ErrorReply) Descriptor() ([]byte, []int)
Deprecated: Use ErrorReply.ProtoReflect.Descriptor instead.
func (*ErrorReply) GetCode ¶
func (x *ErrorReply) GetCode() int32
func (*ErrorReply) GetMessage ¶
func (x *ErrorReply) GetMessage() string
func (*ErrorReply) GetReason ¶
func (x *ErrorReply) GetReason() string
func (*ErrorReply) GetTime ¶
func (x *ErrorReply) GetTime() int64
func (*ErrorReply) ProtoMessage ¶
func (*ErrorReply) ProtoMessage()
func (*ErrorReply) ProtoReflect ¶
func (x *ErrorReply) ProtoReflect() protoreflect.Message
func (*ErrorReply) Reset ¶
func (x *ErrorReply) Reset()
func (*ErrorReply) String ¶
func (x *ErrorReply) String() string
func (*ErrorReply) Validate ¶
func (m *ErrorReply) Validate() error
Validate checks the field values on ErrorReply 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 (*ErrorReply) ValidateAll ¶
func (m *ErrorReply) ValidateAll() error
ValidateAll checks the field values on ErrorReply 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 ErrorReplyMultiError, or nil if none found.
type ErrorReplyMultiError ¶
type ErrorReplyMultiError []error
ErrorReplyMultiError is an error wrapping multiple validation errors returned by ErrorReply.ValidateAll() if the designated constraints aren't met.
func (ErrorReplyMultiError) AllErrors ¶
func (m ErrorReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorReplyMultiError) Error ¶
func (m ErrorReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorReplyValidationError ¶
type ErrorReplyValidationError struct {
// contains filtered or unexported fields
}
ErrorReplyValidationError is the validation error returned by ErrorReply.Validate if the designated constraints aren't met.
func (ErrorReplyValidationError) Cause ¶
func (e ErrorReplyValidationError) Cause() error
Cause function returns cause value.
func (ErrorReplyValidationError) Error ¶
func (e ErrorReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorReplyValidationError) ErrorName ¶
func (e ErrorReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorReplyValidationError) Field ¶
func (e ErrorReplyValidationError) Field() string
Field function returns field value.
func (ErrorReplyValidationError) Key ¶
func (e ErrorReplyValidationError) Key() bool
Key function returns key value.
func (ErrorReplyValidationError) Reason ¶
func (e ErrorReplyValidationError) Reason() string
Reason function returns reason value.
type GRPCClient ¶
type GRPCClient struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,json=endpoint,proto3" json:"endpoint"` TimeoutSeconds int64 `protobuf:"varint,2,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds"` // contains filtered or unexported fields }
func (*GRPCClient) Descriptor
deprecated
func (*GRPCClient) Descriptor() ([]byte, []int)
Deprecated: Use GRPCClient.ProtoReflect.Descriptor instead.
func (*GRPCClient) GetEndpoint ¶
func (x *GRPCClient) GetEndpoint() string
func (*GRPCClient) GetTimeoutSeconds ¶
func (x *GRPCClient) GetTimeoutSeconds() int64
func (*GRPCClient) ProtoMessage ¶
func (*GRPCClient) ProtoMessage()
func (*GRPCClient) ProtoReflect ¶
func (x *GRPCClient) ProtoReflect() protoreflect.Message
func (*GRPCClient) Reset ¶
func (x *GRPCClient) Reset()
func (*GRPCClient) String ¶
func (x *GRPCClient) String() string
func (*GRPCClient) Validate ¶
func (m *GRPCClient) Validate() error
Validate checks the field values on GRPCClient 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 (*GRPCClient) ValidateAll ¶
func (m *GRPCClient) ValidateAll() error
ValidateAll checks the field values on GRPCClient 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 GRPCClientMultiError, or nil if none found.
type GRPCClientMultiError ¶
type GRPCClientMultiError []error
GRPCClientMultiError is an error wrapping multiple validation errors returned by GRPCClient.ValidateAll() if the designated constraints aren't met.
func (GRPCClientMultiError) AllErrors ¶
func (m GRPCClientMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GRPCClientMultiError) Error ¶
func (m GRPCClientMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GRPCClientValidationError ¶
type GRPCClientValidationError struct {
// contains filtered or unexported fields
}
GRPCClientValidationError is the validation error returned by GRPCClient.Validate if the designated constraints aren't met.
func (GRPCClientValidationError) Cause ¶
func (e GRPCClientValidationError) Cause() error
Cause function returns cause value.
func (GRPCClientValidationError) Error ¶
func (e GRPCClientValidationError) Error() string
Error satisfies the builtin error interface
func (GRPCClientValidationError) ErrorName ¶
func (e GRPCClientValidationError) ErrorName() string
ErrorName returns error name.
func (GRPCClientValidationError) Field ¶
func (e GRPCClientValidationError) Field() string
Field function returns field value.
func (GRPCClientValidationError) Key ¶
func (e GRPCClientValidationError) Key() bool
Key function returns key value.
func (GRPCClientValidationError) Reason ¶
func (e GRPCClientValidationError) Reason() string
Reason function returns reason value.
type HealthyReply ¶
type HealthyReply struct { Status HealthyStatus `protobuf:"varint,1,opt,name=status,json=status,proto3,enum=common.HealthyStatus" json:"status"` // contains filtered or unexported fields }
func (*HealthyReply) Descriptor
deprecated
func (*HealthyReply) Descriptor() ([]byte, []int)
Deprecated: Use HealthyReply.ProtoReflect.Descriptor instead.
func (*HealthyReply) GetStatus ¶
func (x *HealthyReply) GetStatus() HealthyStatus
func (*HealthyReply) ProtoMessage ¶
func (*HealthyReply) ProtoMessage()
func (*HealthyReply) ProtoReflect ¶
func (x *HealthyReply) ProtoReflect() protoreflect.Message
func (*HealthyReply) Reset ¶
func (x *HealthyReply) Reset()
func (*HealthyReply) String ¶
func (x *HealthyReply) String() string
func (*HealthyReply) Validate ¶
func (m *HealthyReply) Validate() error
Validate checks the field values on HealthyReply 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 (*HealthyReply) ValidateAll ¶
func (m *HealthyReply) ValidateAll() error
ValidateAll checks the field values on HealthyReply 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 HealthyReplyMultiError, or nil if none found.
type HealthyReplyMultiError ¶
type HealthyReplyMultiError []error
HealthyReplyMultiError is an error wrapping multiple validation errors returned by HealthyReply.ValidateAll() if the designated constraints aren't met.
func (HealthyReplyMultiError) AllErrors ¶
func (m HealthyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HealthyReplyMultiError) Error ¶
func (m HealthyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HealthyReplyValidationError ¶
type HealthyReplyValidationError struct {
// contains filtered or unexported fields
}
HealthyReplyValidationError is the validation error returned by HealthyReply.Validate if the designated constraints aren't met.
func (HealthyReplyValidationError) Cause ¶
func (e HealthyReplyValidationError) Cause() error
Cause function returns cause value.
func (HealthyReplyValidationError) Error ¶
func (e HealthyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (HealthyReplyValidationError) ErrorName ¶
func (e HealthyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (HealthyReplyValidationError) Field ¶
func (e HealthyReplyValidationError) Field() string
Field function returns field value.
func (HealthyReplyValidationError) Key ¶
func (e HealthyReplyValidationError) Key() bool
Key function returns key value.
func (HealthyReplyValidationError) Reason ¶
func (e HealthyReplyValidationError) Reason() string
Reason function returns reason value.
type HealthyStatus ¶
type HealthyStatus int32
------ 健康检查
const ( HealthyStatus_HealthyStatusUNKNOWN HealthyStatus = 0 HealthyStatus_HealthyStatusSERVING HealthyStatus = 1 HealthyStatus_HealthyStatusNOTSERVING HealthyStatus = 2 )
func (HealthyStatus) Descriptor ¶
func (HealthyStatus) Descriptor() protoreflect.EnumDescriptor
func (HealthyStatus) Enum ¶
func (x HealthyStatus) Enum() *HealthyStatus
func (HealthyStatus) EnumDescriptor
deprecated
func (HealthyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthyStatus.Descriptor instead.
func (HealthyStatus) Number ¶
func (x HealthyStatus) Number() protoreflect.EnumNumber
func (HealthyStatus) String ¶
func (x HealthyStatus) String() string
func (HealthyStatus) Type ¶
func (HealthyStatus) Type() protoreflect.EnumType
type ServerConfig ¶
type ServerConfig struct { Http *ServerConfig_HTTP `protobuf:"bytes,1,opt,name=http,json=http,proto3" json:"http"` // http信息 Grpc *ServerConfig_GRPC `protobuf:"bytes,2,opt,name=grpc,json=grpc,proto3" json:"grpc"` // grpc信息 Trace *ServerConfig_Trace `protobuf:"bytes,3,opt,name=trace,json=trace,proto3" json:"trace"` // 链路追踪信息 OssDomain string `protobuf:"bytes,4,opt,name=oss_domain,json=ossDomain,proto3" json:"oss_domain"` // 对象存储domain // contains filtered or unexported fields }
func (*ServerConfig) Descriptor
deprecated
func (*ServerConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
func (*ServerConfig) GetGrpc ¶
func (x *ServerConfig) GetGrpc() *ServerConfig_GRPC
func (*ServerConfig) GetHttp ¶
func (x *ServerConfig) GetHttp() *ServerConfig_HTTP
func (*ServerConfig) GetOssDomain ¶
func (x *ServerConfig) GetOssDomain() string
func (*ServerConfig) GetTrace ¶
func (x *ServerConfig) GetTrace() *ServerConfig_Trace
func (*ServerConfig) ProtoMessage ¶
func (*ServerConfig) ProtoMessage()
func (*ServerConfig) ProtoReflect ¶
func (x *ServerConfig) ProtoReflect() protoreflect.Message
func (*ServerConfig) Reset ¶
func (x *ServerConfig) Reset()
func (*ServerConfig) String ¶
func (x *ServerConfig) String() string
func (*ServerConfig) Validate ¶
func (m *ServerConfig) Validate() error
Validate checks the field values on ServerConfig 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 (*ServerConfig) ValidateAll ¶
func (m *ServerConfig) ValidateAll() error
ValidateAll checks the field values on ServerConfig 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 ServerConfigMultiError, or nil if none found.
type ServerConfigMultiError ¶
type ServerConfigMultiError []error
ServerConfigMultiError is an error wrapping multiple validation errors returned by ServerConfig.ValidateAll() if the designated constraints aren't met.
func (ServerConfigMultiError) AllErrors ¶
func (m ServerConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerConfigMultiError) Error ¶
func (m ServerConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerConfigValidationError ¶
type ServerConfigValidationError struct {
// contains filtered or unexported fields
}
ServerConfigValidationError is the validation error returned by ServerConfig.Validate if the designated constraints aren't met.
func (ServerConfigValidationError) Cause ¶
func (e ServerConfigValidationError) Cause() error
Cause function returns cause value.
func (ServerConfigValidationError) Error ¶
func (e ServerConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ServerConfigValidationError) ErrorName ¶
func (e ServerConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ServerConfigValidationError) Field ¶
func (e ServerConfigValidationError) Field() string
Field function returns field value.
func (ServerConfigValidationError) Key ¶
func (e ServerConfigValidationError) Key() bool
Key function returns key value.
func (ServerConfigValidationError) Reason ¶
func (e ServerConfigValidationError) Reason() string
Reason function returns reason value.
type ServerConfig_GRPC ¶
type ServerConfig_GRPC struct { Network string `protobuf:"bytes,1,opt,name=network,json=network,proto3" json:"network"` Addr string `protobuf:"bytes,2,opt,name=addr,json=addr,proto3" json:"addr"` TimeoutSeconds int64 `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds"` // contains filtered or unexported fields }
func (*ServerConfig_GRPC) Descriptor
deprecated
func (*ServerConfig_GRPC) Descriptor() ([]byte, []int)
Deprecated: Use ServerConfig_GRPC.ProtoReflect.Descriptor instead.
func (*ServerConfig_GRPC) GetAddr ¶
func (x *ServerConfig_GRPC) GetAddr() string
func (*ServerConfig_GRPC) GetNetwork ¶
func (x *ServerConfig_GRPC) GetNetwork() string
func (*ServerConfig_GRPC) GetTimeoutSeconds ¶
func (x *ServerConfig_GRPC) GetTimeoutSeconds() int64
func (*ServerConfig_GRPC) ProtoMessage ¶
func (*ServerConfig_GRPC) ProtoMessage()
func (*ServerConfig_GRPC) ProtoReflect ¶
func (x *ServerConfig_GRPC) ProtoReflect() protoreflect.Message
func (*ServerConfig_GRPC) Reset ¶
func (x *ServerConfig_GRPC) Reset()
func (*ServerConfig_GRPC) String ¶
func (x *ServerConfig_GRPC) String() string
func (*ServerConfig_GRPC) Validate ¶
func (m *ServerConfig_GRPC) Validate() error
Validate checks the field values on ServerConfig_GRPC 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 (*ServerConfig_GRPC) ValidateAll ¶
func (m *ServerConfig_GRPC) ValidateAll() error
ValidateAll checks the field values on ServerConfig_GRPC 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 ServerConfig_GRPCMultiError, or nil if none found.
type ServerConfig_GRPCMultiError ¶
type ServerConfig_GRPCMultiError []error
ServerConfig_GRPCMultiError is an error wrapping multiple validation errors returned by ServerConfig_GRPC.ValidateAll() if the designated constraints aren't met.
func (ServerConfig_GRPCMultiError) AllErrors ¶
func (m ServerConfig_GRPCMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerConfig_GRPCMultiError) Error ¶
func (m ServerConfig_GRPCMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerConfig_GRPCValidationError ¶
type ServerConfig_GRPCValidationError struct {
// contains filtered or unexported fields
}
ServerConfig_GRPCValidationError is the validation error returned by ServerConfig_GRPC.Validate if the designated constraints aren't met.
func (ServerConfig_GRPCValidationError) Cause ¶
func (e ServerConfig_GRPCValidationError) Cause() error
Cause function returns cause value.
func (ServerConfig_GRPCValidationError) Error ¶
func (e ServerConfig_GRPCValidationError) Error() string
Error satisfies the builtin error interface
func (ServerConfig_GRPCValidationError) ErrorName ¶
func (e ServerConfig_GRPCValidationError) ErrorName() string
ErrorName returns error name.
func (ServerConfig_GRPCValidationError) Field ¶
func (e ServerConfig_GRPCValidationError) Field() string
Field function returns field value.
func (ServerConfig_GRPCValidationError) Key ¶
func (e ServerConfig_GRPCValidationError) Key() bool
Key function returns key value.
func (ServerConfig_GRPCValidationError) Reason ¶
func (e ServerConfig_GRPCValidationError) Reason() string
Reason function returns reason value.
type ServerConfig_HTTP ¶
type ServerConfig_HTTP struct { Network string `protobuf:"bytes,1,opt,name=network,json=network,proto3" json:"network"` Addr string `protobuf:"bytes,2,opt,name=addr,json=addr,proto3" json:"addr"` TimeoutSeconds int64 `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds"` // contains filtered or unexported fields }
func (*ServerConfig_HTTP) Descriptor
deprecated
func (*ServerConfig_HTTP) Descriptor() ([]byte, []int)
Deprecated: Use ServerConfig_HTTP.ProtoReflect.Descriptor instead.
func (*ServerConfig_HTTP) GetAddr ¶
func (x *ServerConfig_HTTP) GetAddr() string
func (*ServerConfig_HTTP) GetNetwork ¶
func (x *ServerConfig_HTTP) GetNetwork() string
func (*ServerConfig_HTTP) GetTimeoutSeconds ¶
func (x *ServerConfig_HTTP) GetTimeoutSeconds() int64
func (*ServerConfig_HTTP) ProtoMessage ¶
func (*ServerConfig_HTTP) ProtoMessage()
func (*ServerConfig_HTTP) ProtoReflect ¶
func (x *ServerConfig_HTTP) ProtoReflect() protoreflect.Message
func (*ServerConfig_HTTP) Reset ¶
func (x *ServerConfig_HTTP) Reset()
func (*ServerConfig_HTTP) String ¶
func (x *ServerConfig_HTTP) String() string
func (*ServerConfig_HTTP) Validate ¶
func (m *ServerConfig_HTTP) Validate() error
Validate checks the field values on ServerConfig_HTTP 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 (*ServerConfig_HTTP) ValidateAll ¶
func (m *ServerConfig_HTTP) ValidateAll() error
ValidateAll checks the field values on ServerConfig_HTTP 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 ServerConfig_HTTPMultiError, or nil if none found.
type ServerConfig_HTTPMultiError ¶
type ServerConfig_HTTPMultiError []error
ServerConfig_HTTPMultiError is an error wrapping multiple validation errors returned by ServerConfig_HTTP.ValidateAll() if the designated constraints aren't met.
func (ServerConfig_HTTPMultiError) AllErrors ¶
func (m ServerConfig_HTTPMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerConfig_HTTPMultiError) Error ¶
func (m ServerConfig_HTTPMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerConfig_HTTPValidationError ¶
type ServerConfig_HTTPValidationError struct {
// contains filtered or unexported fields
}
ServerConfig_HTTPValidationError is the validation error returned by ServerConfig_HTTP.Validate if the designated constraints aren't met.
func (ServerConfig_HTTPValidationError) Cause ¶
func (e ServerConfig_HTTPValidationError) Cause() error
Cause function returns cause value.
func (ServerConfig_HTTPValidationError) Error ¶
func (e ServerConfig_HTTPValidationError) Error() string
Error satisfies the builtin error interface
func (ServerConfig_HTTPValidationError) ErrorName ¶
func (e ServerConfig_HTTPValidationError) ErrorName() string
ErrorName returns error name.
func (ServerConfig_HTTPValidationError) Field ¶
func (e ServerConfig_HTTPValidationError) Field() string
Field function returns field value.
func (ServerConfig_HTTPValidationError) Key ¶
func (e ServerConfig_HTTPValidationError) Key() bool
Key function returns key value.
func (ServerConfig_HTTPValidationError) Reason ¶
func (e ServerConfig_HTTPValidationError) Reason() string
Reason function returns reason value.
type ServerConfig_Trace ¶
type ServerConfig_Trace struct { Kind string `protobuf:"bytes,1,opt,name=kind,json=kind,proto3" json:"kind"` Endpoint string `protobuf:"bytes,2,opt,name=endpoint,json=endpoint,proto3" json:"endpoint"` Fraction string `protobuf:"bytes,3,opt,name=fraction,json=fraction,proto3" json:"fraction"` // contains filtered or unexported fields }
func (*ServerConfig_Trace) Descriptor
deprecated
func (*ServerConfig_Trace) Descriptor() ([]byte, []int)
Deprecated: Use ServerConfig_Trace.ProtoReflect.Descriptor instead.
func (*ServerConfig_Trace) GetEndpoint ¶
func (x *ServerConfig_Trace) GetEndpoint() string
func (*ServerConfig_Trace) GetFraction ¶
func (x *ServerConfig_Trace) GetFraction() string
func (*ServerConfig_Trace) GetKind ¶
func (x *ServerConfig_Trace) GetKind() string
func (*ServerConfig_Trace) ProtoMessage ¶
func (*ServerConfig_Trace) ProtoMessage()
func (*ServerConfig_Trace) ProtoReflect ¶
func (x *ServerConfig_Trace) ProtoReflect() protoreflect.Message
func (*ServerConfig_Trace) Reset ¶
func (x *ServerConfig_Trace) Reset()
func (*ServerConfig_Trace) String ¶
func (x *ServerConfig_Trace) String() string
func (*ServerConfig_Trace) Validate ¶
func (m *ServerConfig_Trace) Validate() error
Validate checks the field values on ServerConfig_Trace 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 (*ServerConfig_Trace) ValidateAll ¶
func (m *ServerConfig_Trace) ValidateAll() error
ValidateAll checks the field values on ServerConfig_Trace 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 ServerConfig_TraceMultiError, or nil if none found.
type ServerConfig_TraceMultiError ¶
type ServerConfig_TraceMultiError []error
ServerConfig_TraceMultiError is an error wrapping multiple validation errors returned by ServerConfig_Trace.ValidateAll() if the designated constraints aren't met.
func (ServerConfig_TraceMultiError) AllErrors ¶
func (m ServerConfig_TraceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerConfig_TraceMultiError) Error ¶
func (m ServerConfig_TraceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerConfig_TraceValidationError ¶
type ServerConfig_TraceValidationError struct {
// contains filtered or unexported fields
}
ServerConfig_TraceValidationError is the validation error returned by ServerConfig_Trace.Validate if the designated constraints aren't met.
func (ServerConfig_TraceValidationError) Cause ¶
func (e ServerConfig_TraceValidationError) Cause() error
Cause function returns cause value.
func (ServerConfig_TraceValidationError) Error ¶
func (e ServerConfig_TraceValidationError) Error() string
Error satisfies the builtin error interface
func (ServerConfig_TraceValidationError) ErrorName ¶
func (e ServerConfig_TraceValidationError) ErrorName() string
ErrorName returns error name.
func (ServerConfig_TraceValidationError) Field ¶
func (e ServerConfig_TraceValidationError) Field() string
Field function returns field value.
func (ServerConfig_TraceValidationError) Key ¶
func (e ServerConfig_TraceValidationError) Key() bool
Key function returns key value.
func (ServerConfig_TraceValidationError) Reason ¶
func (e ServerConfig_TraceValidationError) Reason() string
Reason function returns reason value.
type StringReply ¶
type StringReply struct { Body string `protobuf:"bytes,1,opt,name=body,json=body,proto3" json:"body"` // contains filtered or unexported fields }
------ 只返回字符串,用户三方回调
func (*StringReply) Descriptor
deprecated
func (*StringReply) Descriptor() ([]byte, []int)
Deprecated: Use StringReply.ProtoReflect.Descriptor instead.
func (*StringReply) GetBody ¶
func (x *StringReply) GetBody() string
func (*StringReply) ProtoMessage ¶
func (*StringReply) ProtoMessage()
func (*StringReply) ProtoReflect ¶
func (x *StringReply) ProtoReflect() protoreflect.Message
func (*StringReply) Reset ¶
func (x *StringReply) Reset()
func (*StringReply) String ¶
func (x *StringReply) String() string
func (*StringReply) StringReply ¶
func (s *StringReply) StringReply() string
func (*StringReply) Validate ¶
func (m *StringReply) Validate() error
Validate checks the field values on StringReply 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 (*StringReply) ValidateAll ¶
func (m *StringReply) ValidateAll() error
ValidateAll checks the field values on StringReply 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 StringReplyMultiError, or nil if none found.
type StringReplyMultiError ¶
type StringReplyMultiError []error
StringReplyMultiError is an error wrapping multiple validation errors returned by StringReply.ValidateAll() if the designated constraints aren't met.
func (StringReplyMultiError) AllErrors ¶
func (m StringReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StringReplyMultiError) Error ¶
func (m StringReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StringReplyValidationError ¶
type StringReplyValidationError struct {
// contains filtered or unexported fields
}
StringReplyValidationError is the validation error returned by StringReply.Validate if the designated constraints aren't met.
func (StringReplyValidationError) Cause ¶
func (e StringReplyValidationError) Cause() error
Cause function returns cause value.
func (StringReplyValidationError) Error ¶
func (e StringReplyValidationError) Error() string
Error satisfies the builtin error interface
func (StringReplyValidationError) ErrorName ¶
func (e StringReplyValidationError) ErrorName() string
ErrorName returns error name.
func (StringReplyValidationError) Field ¶
func (e StringReplyValidationError) Field() string
Field function returns field value.
func (StringReplyValidationError) Key ¶
func (e StringReplyValidationError) Key() bool
Key function returns key value.
func (StringReplyValidationError) Reason ¶
func (e StringReplyValidationError) Reason() string
Reason function returns reason value.