Documentation
¶
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetHealthCheck() *HealthCheck
- func (x *Backend) GetMetadata() map[string]string
- func (x *Backend) GetTarget() string
- func (x *Backend) GetTls() bool
- func (x *Backend) GetTlsConfigName() string
- func (x *Backend) GetWeight() int64
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- func (m *Backend) Validate() error
- func (m *Backend) ValidateAll() error
- type BackendMultiError
- type BackendValidationError
- type Cache
- func (*Cache) Descriptor() ([]byte, []int)deprecated
- func (x *Cache) GetCleanupInterval() int64
- func (x *Cache) GetDriver() string
- func (x *Cache) GetMemcached() *Memcached
- func (x *Cache) GetMemory() *Memory
- func (x *Cache) GetName() string
- func (x *Cache) GetRedis() *Redis
- func (*Cache) ProtoMessage()
- func (x *Cache) ProtoReflect() protoreflect.Message
- func (x *Cache) Reset()
- func (x *Cache) String() string
- func (m *Cache) Validate() error
- func (m *Cache) ValidateAll() error
- type CacheMultiError
- type CacheValidationError
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetEndpoint() string
- func (x *Client) GetSelector() *Selector
- func (x *Client) GetTimeout() *durationpb.Duration
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- func (m *Client) Validate() error
- func (m *Client) ValidateAll() error
- type ClientMultiError
- type ClientValidationError
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetByHeader() *Condition_Header
- func (x *Condition) GetByStatusCode() string
- func (x *Condition) GetCondition() isCondition_Condition
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- func (m *Condition) Validate() error
- func (m *Condition) ValidateAll() error
- type ConditionMultiError
- type ConditionValidationError
- type Condition_ByHeader
- type Condition_ByStatusCode
- type Condition_Header
- func (*Condition_Header) Descriptor() ([]byte, []int)deprecated
- func (x *Condition_Header) GetName() string
- func (x *Condition_Header) GetValue() string
- func (*Condition_Header) ProtoMessage()
- func (x *Condition_Header) ProtoReflect() protoreflect.Message
- func (x *Condition_Header) Reset()
- func (x *Condition_Header) String() string
- func (m *Condition_Header) Validate() error
- func (m *Condition_Header) ValidateAll() error
- type Condition_HeaderMultiError
- type Condition_HeaderValidationError
- func (e Condition_HeaderValidationError) Cause() error
- func (e Condition_HeaderValidationError) Error() string
- func (e Condition_HeaderValidationError) ErrorName() string
- func (e Condition_HeaderValidationError) Field() string
- func (e Condition_HeaderValidationError) Key() bool
- func (e Condition_HeaderValidationError) Reason() string
- type Database
- func (*Database) Descriptor() ([]byte, []int)deprecated
- func (x *Database) GetConnectionMaxIdleTime() int64
- func (x *Database) GetConnectionMaxLifetime() int64
- func (x *Database) GetDebug() bool
- func (x *Database) GetDialect() string
- func (x *Database) GetEnableMetrics() bool
- func (x *Database) GetEnableTrace() bool
- func (x *Database) GetMaxIdleConnections() int32
- func (x *Database) GetMaxOpenConnections() int32
- func (x *Database) GetMigration() *Migration
- func (x *Database) GetSource() string
- func (*Database) ProtoMessage()
- func (x *Database) ProtoReflect() protoreflect.Message
- func (x *Database) Reset()
- func (x *Database) String() string
- func (m *Database) Validate() error
- func (m *Database) ValidateAll() error
- type DatabaseMultiError
- type DatabaseValidationError
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetBackends() []*Backend
- func (x *Endpoint) GetDescription() string
- func (x *Endpoint) GetHost() string
- func (x *Endpoint) GetMetadata() map[string]string
- func (x *Endpoint) GetMethod() string
- func (x *Endpoint) GetMiddlewares() []*Middleware
- func (x *Endpoint) GetPath() string
- func (x *Endpoint) GetProtocol() Protocol
- func (x *Endpoint) GetRetry() *Retry
- func (x *Endpoint) GetTimeout() int64
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- func (m *Endpoint) Validate() error
- func (m *Endpoint) ValidateAll() error
- type EndpointMultiError
- type EndpointValidationError
- type FileLocal
- func (*FileLocal) Descriptor() ([]byte, []int)deprecated
- func (x *FileLocal) GetRoot() string
- func (*FileLocal) ProtoMessage()
- func (x *FileLocal) ProtoReflect() protoreflect.Message
- func (x *FileLocal) Reset()
- func (x *FileLocal) String() string
- func (m *FileLocal) Validate() error
- func (m *FileLocal) ValidateAll() error
- type FileLocalMultiError
- type FileLocalValidationError
- type FileStore
- func (*FileStore) Descriptor() ([]byte, []int)deprecated
- func (x *FileStore) GetChunkSize() int64
- func (x *FileStore) GetDriver() string
- func (x *FileStore) GetLocal() *FileLocal
- func (x *FileStore) GetOss() *Oss
- func (*FileStore) ProtoMessage()
- func (x *FileStore) ProtoReflect() protoreflect.Message
- func (x *FileStore) Reset()
- func (x *FileStore) String() string
- func (m *FileStore) Validate() error
- func (m *FileStore) ValidateAll() error
- type FileStoreMultiError
- type FileStoreValidationError
- type Gateway
- func (*Gateway) Descriptor() ([]byte, []int)deprecated
- func (x *Gateway) GetEndpoints() []*Endpoint
- func (x *Gateway) GetHosts() []stringdeprecated
- func (x *Gateway) GetMiddlewares() []*Middleware
- func (x *Gateway) GetName() string
- func (x *Gateway) GetTlsStore() map[string]*v1.TLSConfig
- func (x *Gateway) GetVersion() string
- func (*Gateway) ProtoMessage()
- func (x *Gateway) ProtoReflect() protoreflect.Message
- func (x *Gateway) Reset()
- func (x *Gateway) String() string
- func (m *Gateway) Validate() error
- func (m *Gateway) ValidateAll() error
- type GatewayMultiError
- type GatewayValidationError
- type HealthCheck
- func (*HealthCheck) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheck) GetEndpoint() string
- func (x *HealthCheck) GetType() HealthCheck_CheckType
- func (*HealthCheck) ProtoMessage()
- func (x *HealthCheck) ProtoReflect() protoreflect.Message
- func (x *HealthCheck) Reset()
- func (x *HealthCheck) String() string
- func (m *HealthCheck) Validate() error
- func (m *HealthCheck) ValidateAll() error
- type HealthCheckMultiError
- type HealthCheckValidationError
- func (e HealthCheckValidationError) Cause() error
- func (e HealthCheckValidationError) Error() string
- func (e HealthCheckValidationError) ErrorName() string
- func (e HealthCheckValidationError) Field() string
- func (e HealthCheckValidationError) Key() bool
- func (e HealthCheckValidationError) Reason() string
- type HealthCheck_CheckType
- func (HealthCheck_CheckType) Descriptor() protoreflect.EnumDescriptor
- func (x HealthCheck_CheckType) Enum() *HealthCheck_CheckType
- func (HealthCheck_CheckType) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthCheck_CheckType) Number() protoreflect.EnumNumber
- func (x HealthCheck_CheckType) String() string
- func (HealthCheck_CheckType) Type() protoreflect.EnumType
- type Memcached
- func (*Memcached) Descriptor() ([]byte, []int)deprecated
- func (x *Memcached) GetAddr() string
- func (x *Memcached) GetMaxIdle() int32
- func (x *Memcached) GetPassword() string
- func (x *Memcached) GetTimeout() int64
- func (x *Memcached) GetUsername() string
- func (*Memcached) ProtoMessage()
- func (x *Memcached) ProtoReflect() protoreflect.Message
- func (x *Memcached) Reset()
- func (x *Memcached) String() string
- func (m *Memcached) Validate() error
- func (m *Memcached) ValidateAll() error
- type MemcachedMultiError
- type MemcachedValidationError
- type Memory
- func (*Memory) Descriptor() ([]byte, []int)deprecated
- func (x *Memory) GetCapacity() int32
- func (x *Memory) GetCleanupInterval() int64
- func (x *Memory) GetExpiration() int64
- func (x *Memory) GetSize() int32
- func (*Memory) ProtoMessage()
- func (x *Memory) ProtoReflect() protoreflect.Message
- func (x *Memory) Reset()
- func (x *Memory) String() string
- func (m *Memory) Validate() error
- func (m *Memory) ValidateAll() error
- type MemoryMultiError
- type MemoryValidationError
- type Message
- type MessageMultiError
- type MessageValidationError
- type Middleware
- func (*Middleware) Descriptor() ([]byte, []int)deprecated
- func (x *Middleware) GetName() string
- func (x *Middleware) GetOptions() []byte
- func (x *Middleware) GetRequired() bool
- func (*Middleware) ProtoMessage()
- func (x *Middleware) ProtoReflect() protoreflect.Message
- func (x *Middleware) Reset()
- func (x *Middleware) String() string
- func (m *Middleware) Validate() error
- func (m *Middleware) ValidateAll() error
- type MiddlewareMultiError
- type MiddlewareValidationError
- type Migration
- func (*Migration) Descriptor() ([]byte, []int)deprecated
- func (x *Migration) GetEnabled() bool
- func (x *Migration) GetMode() string
- func (x *Migration) GetNames() []string
- func (x *Migration) GetPath() string
- func (x *Migration) GetVersion() string
- func (*Migration) ProtoMessage()
- func (x *Migration) ProtoReflect() protoreflect.Message
- func (x *Migration) Reset()
- func (x *Migration) String() string
- func (m *Migration) Validate() error
- func (m *Migration) ValidateAll() error
- type MigrationMultiError
- type MigrationValidationError
- type Mongo
- func (*Mongo) Descriptor() ([]byte, []int)deprecated
- func (x *Mongo) GetAuthSource() bool
- func (x *Mongo) GetConnectTimeout() int64
- func (x *Mongo) GetDatabase() string
- func (x *Mongo) GetMaxPoolSize() int32
- func (x *Mongo) GetMinPoolSize() int32
- func (x *Mongo) GetPassword() string
- func (x *Mongo) GetUri() string
- func (x *Mongo) GetUsername() string
- func (*Mongo) ProtoMessage()
- func (x *Mongo) ProtoReflect() protoreflect.Message
- func (x *Mongo) Reset()
- func (x *Mongo) String() string
- func (m *Mongo) Validate() error
- func (m *Mongo) ValidateAll() error
- type MongoMultiError
- type MongoValidationError
- type Oss
- func (*Oss) Descriptor() ([]byte, []int)deprecated
- func (x *Oss) GetAccessKeyId() string
- func (x *Oss) GetAccessKeySecret() string
- func (x *Oss) GetBucket() string
- func (x *Oss) GetConnectTimeout() int64
- func (x *Oss) GetEndpoint() string
- func (x *Oss) GetReadTimeout() int64
- func (x *Oss) GetRegion() string
- func (x *Oss) GetSsl() bool
- func (*Oss) ProtoMessage()
- func (x *Oss) ProtoReflect() protoreflect.Message
- func (x *Oss) Reset()
- func (x *Oss) String() string
- func (m *Oss) Validate() error
- func (m *Oss) ValidateAll() error
- type OssMultiError
- type OssValidationError
- type PriorityConfig
- func (*PriorityConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PriorityConfig) GetEndpoints() []*Endpoint
- func (x *PriorityConfig) GetName() string
- func (x *PriorityConfig) GetVersion() string
- func (*PriorityConfig) ProtoMessage()
- func (x *PriorityConfig) ProtoReflect() protoreflect.Message
- func (x *PriorityConfig) Reset()
- func (x *PriorityConfig) String() string
- func (m *PriorityConfig) Validate() error
- func (m *PriorityConfig) ValidateAll() error
- type PriorityConfigMultiError
- type PriorityConfigValidationError
- func (e PriorityConfigValidationError) Cause() error
- func (e PriorityConfigValidationError) Error() string
- func (e PriorityConfigValidationError) ErrorName() string
- func (e PriorityConfigValidationError) Field() string
- func (e PriorityConfigValidationError) Key() bool
- func (e PriorityConfigValidationError) Reason() string
- type Protocol
- type Redis
- func (*Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Redis) GetAddr() string
- func (x *Redis) GetDb() int32
- func (x *Redis) GetDialTimeout() int64
- func (x *Redis) GetNetwork() string
- func (x *Redis) GetPassword() string
- func (x *Redis) GetReadTimeout() int64
- func (x *Redis) GetWriteTimeout() int64
- func (*Redis) ProtoMessage()
- func (x *Redis) ProtoReflect() protoreflect.Message
- func (x *Redis) Reset()
- func (x *Redis) String() string
- func (m *Redis) Validate() error
- func (m *Redis) ValidateAll() error
- type RedisMultiError
- type RedisValidationError
- type Retry
- func (*Retry) Descriptor() ([]byte, []int)deprecated
- func (x *Retry) GetAttempts() uint32
- func (x *Retry) GetConditions() []*Condition
- func (x *Retry) GetPerTryTimeout() int64
- func (x *Retry) GetPriorities() []string
- func (*Retry) ProtoMessage()
- func (x *Retry) ProtoReflect() protoreflect.Message
- func (x *Retry) Reset()
- func (x *Retry) String() string
- func (m *Retry) Validate() error
- func (m *Retry) ValidateAll() error
- type RetryMultiError
- type RetryValidationError
- type Selector
- func (*Selector) Descriptor() ([]byte, []int)deprecated
- func (x *Selector) GetVersion() string
- func (*Selector) ProtoMessage()
- func (x *Selector) ProtoReflect() protoreflect.Message
- func (x *Selector) Reset()
- func (x *Selector) String() string
- func (m *Selector) Validate() error
- func (m *Selector) ValidateAll() error
- type SelectorMultiError
- type SelectorValidationError
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- func (m *Server) Validate() error
- func (m *Server) ValidateAll() error
- type ServerMultiError
- type ServerValidationError
- type Server_GRPC
- func (*Server_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *Server_GRPC) GetAddr() string
- func (x *Server_GRPC) GetEnableReflection() bool
- func (x *Server_GRPC) GetEndpoint() string
- func (x *Server_GRPC) GetMaxRecvMsgSize() int32
- func (x *Server_GRPC) GetMaxSendMsgSize() int32
- func (x *Server_GRPC) GetNetwork() string
- func (x *Server_GRPC) GetShutdownTimeout() *durationpb.Duration
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration
- func (x *Server_GRPC) GetTls() *v1.TLSConfig
- func (*Server_GRPC) ProtoMessage()
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message
- func (x *Server_GRPC) Reset()
- func (x *Server_GRPC) String() string
- func (m *Server_GRPC) Validate() error
- func (m *Server_GRPC) ValidateAll() error
- type Server_GRPCMultiError
- type Server_GRPCValidationError
- func (e Server_GRPCValidationError) Cause() error
- func (e Server_GRPCValidationError) Error() string
- func (e Server_GRPCValidationError) ErrorName() string
- func (e Server_GRPCValidationError) Field() string
- func (e Server_GRPCValidationError) Key() bool
- func (e Server_GRPCValidationError) Reason() string
- type Server_HTTP
- func (*Server_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *Server_HTTP) GetAddr() string
- func (x *Server_HTTP) GetEndpoint() string
- func (x *Server_HTTP) GetMaxRecvMsgSize() int32
- func (x *Server_HTTP) GetMaxSendMsgSize() int32
- func (x *Server_HTTP) GetNetwork() string
- func (x *Server_HTTP) GetShutdownTimeout() *durationpb.Duration
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration
- func (x *Server_HTTP) GetTls() *v1.TLSConfig
- func (*Server_HTTP) ProtoMessage()
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message
- func (x *Server_HTTP) Reset()
- func (x *Server_HTTP) String() string
- func (m *Server_HTTP) Validate() error
- func (m *Server_HTTP) ValidateAll() error
- type Server_HTTPMultiError
- type Server_HTTPValidationError
- func (e Server_HTTPValidationError) Cause() error
- func (e Server_HTTPValidationError) Error() string
- func (e Server_HTTPValidationError) ErrorName() string
- func (e Server_HTTPValidationError) Field() string
- func (e Server_HTTPValidationError) Key() bool
- func (e Server_HTTPValidationError) Reason() string
- type Storage
- func (*Storage) Descriptor() ([]byte, []int)deprecated
- func (x *Storage) GetCaches() map[string]*Cache
- func (x *Storage) GetDatabases() map[string]*Database
- func (x *Storage) GetDefaultCache() string
- func (x *Storage) GetDefaultDatabase() string
- func (x *Storage) GetDefaultFilestore() string
- func (x *Storage) GetFilestores() map[string]*FileStore
- func (*Storage) ProtoMessage()
- func (x *Storage) ProtoReflect() protoreflect.Message
- func (x *Storage) Reset()
- func (x *Storage) String() string
- func (m *Storage) Validate() error
- func (m *Storage) ValidateAll() error
- type StorageMultiError
- type StorageValidationError
- type Task
- type TaskMultiError
- type TaskValidationError
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)deprecated
- func (x *Trace) GetEndpoint() string
- func (x *Trace) GetName() string
- func (*Trace) ProtoMessage()
- func (x *Trace) ProtoReflect() protoreflect.Message
- func (x *Trace) Reset()
- func (x *Trace) String() string
- func (m *Trace) Validate() error
- func (m *Trace) ValidateAll() error
- type TraceMultiError
- type TraceValidationError
- type WebSocket
- func (*WebSocket) Descriptor() ([]byte, []int)deprecated
- func (x *WebSocket) GetAddr() string
- func (x *WebSocket) GetEndpoint() string
- func (x *WebSocket) GetNetwork() string
- func (x *WebSocket) GetTimeout() *durationpb.Duration
- func (*WebSocket) ProtoMessage()
- func (x *WebSocket) ProtoReflect() protoreflect.Message
- func (x *WebSocket) Reset()
- func (x *WebSocket) String() string
- func (m *WebSocket) Validate() error
- func (m *WebSocket) ValidateAll() error
- type WebSocketMultiError
- type WebSocketValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Protocol_name = map[int32]string{ 0: "PROTOCOL_UNSPECIFIED", 1: "PROTOCOL_HTTP", 2: "PROTOCOL_GRPC", 3: "PROTOCOL_CUSTOM", } Protocol_value = map[string]int32{ "PROTOCOL_UNSPECIFIED": 0, "PROTOCOL_HTTP": 1, "PROTOCOL_GRPC": 2, "PROTOCOL_CUSTOM": 3, } )
Enum value maps for Protocol.
var ( HealthCheck_CheckType_name = map[int32]string{ 0: "CHECK_TYPE_UNSPECIFIED", 1: "CHECK_TYPE_HTTP", 2: "CHECK_TYPE_TCP", } HealthCheck_CheckType_value = map[string]int32{ "CHECK_TYPE_UNSPECIFIED": 0, "CHECK_TYPE_HTTP": 1, "CHECK_TYPE_TCP": 2, } )
Enum value maps for HealthCheck_CheckType.
var File_runtime_config_v1_client_proto protoreflect.FileDescriptor
var File_runtime_config_v1_gateway_proto protoreflect.FileDescriptor
var File_runtime_config_v1_message_proto protoreflect.FileDescriptor
var File_runtime_config_v1_server_proto protoreflect.FileDescriptor
var File_runtime_config_v1_storage_proto protoreflect.FileDescriptor
var File_runtime_config_v1_task_proto protoreflect.FileDescriptor
var File_runtime_config_v1_tracer_proto protoreflect.FileDescriptor
var File_runtime_config_v1_websocket_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// localhost
// 127.0.0.1:8000
// discovery:///service_name
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
Weight *int64 `protobuf:"varint,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
HealthCheck *HealthCheck `protobuf:"bytes,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"`
Tls bool `protobuf:"varint,4,opt,name=tls,proto3" json:"tls,omitempty"`
TlsConfigName string `protobuf:"bytes,5,opt,name=tls_config_name,json=tlsConfigName,proto3" json:"tls_config_name,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Backend) Descriptor
deprecated
func (*Backend) GetHealthCheck ¶
func (x *Backend) GetHealthCheck() *HealthCheck
func (*Backend) GetMetadata ¶
func (*Backend) GetTlsConfigName ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
func (*Backend) Validate ¶
Validate checks the field values on Backend 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 (*Backend) ValidateAll ¶
ValidateAll checks the field values on Backend 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 BackendMultiError, or nil if none found.
type BackendMultiError ¶
type BackendMultiError []error
BackendMultiError is an error wrapping multiple validation errors returned by Backend.ValidateAll() if the designated constraints aren't met.
func (BackendMultiError) AllErrors ¶
func (m BackendMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BackendMultiError) Error ¶
func (m BackendMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BackendValidationError ¶
type BackendValidationError struct {
// contains filtered or unexported fields
}
BackendValidationError is the validation error returned by Backend.Validate if the designated constraints aren't met.
func (BackendValidationError) Cause ¶
func (e BackendValidationError) Cause() error
Cause function returns cause value.
func (BackendValidationError) Error ¶
func (e BackendValidationError) Error() string
Error satisfies the builtin error interface
func (BackendValidationError) ErrorName ¶
func (e BackendValidationError) ErrorName() string
ErrorName returns error name.
func (BackendValidationError) Field ¶
func (e BackendValidationError) Field() string
Field function returns field value.
func (BackendValidationError) Key ¶
func (e BackendValidationError) Key() bool
Key function returns key value.
func (BackendValidationError) Reason ¶
func (e BackendValidationError) Reason() string
Reason function returns reason value.
type Cache ¶
type Cache struct {
// Driver name: redis, memcached, etc.
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Memcached
Memcached *Memcached `protobuf:"bytes,10,opt,name=memcached,proto3" json:"memcached,omitempty"`
// Memory cache
Memory *Memory `protobuf:"bytes,11,opt,name=memory,proto3" json:"memory,omitempty"`
// Redis
Redis *Redis `protobuf:"bytes,12,opt,name=redis,proto3" json:"redis,omitempty"`
// Cleanup interval for memory cache in seconds.
// If 0 or not set, a default (e.g., 5 minutes) will be used.
CleanupInterval int64 `protobuf:"varint,13,opt,name=cleanup_interval,proto3" json:"cleanup_interval,omitempty"`
// contains filtered or unexported fields
}
Cache
func (*Cache) Descriptor
deprecated
func (*Cache) GetCleanupInterval ¶
func (*Cache) GetMemcached ¶
func (*Cache) ProtoMessage ¶
func (*Cache) ProtoMessage()
func (*Cache) ProtoReflect ¶
func (x *Cache) ProtoReflect() protoreflect.Message
func (*Cache) Validate ¶
Validate checks the field values on Cache 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 (*Cache) ValidateAll ¶
ValidateAll checks the field values on Cache 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 CacheMultiError, or nil if none found.
type CacheMultiError ¶
type CacheMultiError []error
CacheMultiError is an error wrapping multiple validation errors returned by Cache.ValidateAll() if the designated constraints aren't met.
func (CacheMultiError) AllErrors ¶
func (m CacheMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CacheMultiError) Error ¶
func (m CacheMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CacheValidationError ¶
type CacheValidationError struct {
// contains filtered or unexported fields
}
CacheValidationError is the validation error returned by Cache.Validate if the designated constraints aren't met.
func (CacheValidationError) Cause ¶
func (e CacheValidationError) Cause() error
Cause function returns cause value.
func (CacheValidationError) Error ¶
func (e CacheValidationError) Error() string
Error satisfies the builtin error interface
func (CacheValidationError) ErrorName ¶
func (e CacheValidationError) ErrorName() string
ErrorName returns error name.
func (CacheValidationError) Field ¶
func (e CacheValidationError) Field() string
Field function returns field value.
func (CacheValidationError) Key ¶
func (e CacheValidationError) Key() bool
Key function returns key value.
func (CacheValidationError) Reason ¶
func (e CacheValidationError) Reason() string
Reason function returns reason value.
type Client ¶
type Client struct {
// Endpoint for the client to connect to, e.g., "discovery:///user-service".
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Selector configuration for client-side service discovery.
Selector *Selector `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"`
// contains filtered or unexported fields
}
Client defines the configuration for connecting to a downstream service.
func (*Client) Descriptor
deprecated
func (*Client) GetEndpoint ¶
func (*Client) GetSelector ¶
func (*Client) GetTimeout ¶
func (x *Client) GetTimeout() *durationpb.Duration
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
func (*Client) Validate ¶
Validate checks the field values on Client 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 (*Client) ValidateAll ¶
ValidateAll checks the field values on Client 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 ClientMultiError, or nil if none found.
type ClientMultiError ¶
type ClientMultiError []error
ClientMultiError is an error wrapping multiple validation errors returned by Client.ValidateAll() if the designated constraints aren't met.
func (ClientMultiError) AllErrors ¶
func (m ClientMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClientMultiError) Error ¶
func (m ClientMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClientValidationError ¶
type ClientValidationError struct {
// contains filtered or unexported fields
}
ClientValidationError is the validation error returned by Client.Validate if the designated constraints aren't met.
func (ClientValidationError) Cause ¶
func (e ClientValidationError) Cause() error
Cause function returns cause value.
func (ClientValidationError) Error ¶
func (e ClientValidationError) Error() string
Error satisfies the builtin error interface
func (ClientValidationError) ErrorName ¶
func (e ClientValidationError) ErrorName() string
ErrorName returns error name.
func (ClientValidationError) Field ¶
func (e ClientValidationError) Field() string
Field function returns field value.
func (ClientValidationError) Key ¶
func (e ClientValidationError) Key() bool
Key function returns key value.
func (ClientValidationError) Reason ¶
func (e ClientValidationError) Reason() string
Reason function returns reason value.
type Condition ¶
type Condition struct {
// Types that are valid to be assigned to Condition:
//
// *Condition_ByStatusCode
// *Condition_ByHeader
Condition isCondition_Condition `protobuf_oneof:"condition"`
// contains filtered or unexported fields
}
func (*Condition) Descriptor
deprecated
func (*Condition) GetByHeader ¶
func (x *Condition) GetByHeader() *Condition_Header
func (*Condition) GetByStatusCode ¶
func (*Condition) GetCondition ¶
func (x *Condition) GetCondition() isCondition_Condition
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
func (*Condition) Validate ¶
Validate checks the field values on Condition 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 (*Condition) ValidateAll ¶
ValidateAll checks the field values on Condition 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 ConditionMultiError, or nil if none found.
type ConditionMultiError ¶
type ConditionMultiError []error
ConditionMultiError is an error wrapping multiple validation errors returned by Condition.ValidateAll() if the designated constraints aren't met.
func (ConditionMultiError) AllErrors ¶
func (m ConditionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConditionMultiError) Error ¶
func (m ConditionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConditionValidationError ¶
type ConditionValidationError struct {
// contains filtered or unexported fields
}
ConditionValidationError is the validation error returned by Condition.Validate if the designated constraints aren't met.
func (ConditionValidationError) Cause ¶
func (e ConditionValidationError) Cause() error
Cause function returns cause value.
func (ConditionValidationError) Error ¶
func (e ConditionValidationError) Error() string
Error satisfies the builtin error interface
func (ConditionValidationError) ErrorName ¶
func (e ConditionValidationError) ErrorName() string
ErrorName returns error name.
func (ConditionValidationError) Field ¶
func (e ConditionValidationError) Field() string
Field function returns field value.
func (ConditionValidationError) Key ¶
func (e ConditionValidationError) Key() bool
Key function returns key value.
func (ConditionValidationError) Reason ¶
func (e ConditionValidationError) Reason() string
Reason function returns reason value.
type Condition_ByHeader ¶
type Condition_ByHeader struct {
// {"name": "grpc-status", "value": "14"}
ByHeader *Condition_Header `protobuf:"bytes,2,opt,name=by_header,json=byHeader,proto3,oneof"`
}
type Condition_ByStatusCode ¶
type Condition_ByStatusCode struct {
// "500-599", "429"
ByStatusCode string `protobuf:"bytes,1,opt,name=by_status_code,json=byStatusCode,proto3,oneof"`
}
type Condition_Header ¶
type Condition_Header struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Condition_Header) Descriptor
deprecated
func (*Condition_Header) Descriptor() ([]byte, []int)
Deprecated: Use Condition_Header.ProtoReflect.Descriptor instead.
func (*Condition_Header) GetName ¶
func (x *Condition_Header) GetName() string
func (*Condition_Header) GetValue ¶
func (x *Condition_Header) GetValue() string
func (*Condition_Header) ProtoMessage ¶
func (*Condition_Header) ProtoMessage()
func (*Condition_Header) ProtoReflect ¶
func (x *Condition_Header) ProtoReflect() protoreflect.Message
func (*Condition_Header) Reset ¶
func (x *Condition_Header) Reset()
func (*Condition_Header) String ¶
func (x *Condition_Header) String() string
func (*Condition_Header) Validate ¶
func (m *Condition_Header) Validate() error
Validate checks the field values on Condition_Header 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 (*Condition_Header) ValidateAll ¶
func (m *Condition_Header) ValidateAll() error
ValidateAll checks the field values on Condition_Header 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 Condition_HeaderMultiError, or nil if none found.
type Condition_HeaderMultiError ¶
type Condition_HeaderMultiError []error
Condition_HeaderMultiError is an error wrapping multiple validation errors returned by Condition_Header.ValidateAll() if the designated constraints aren't met.
func (Condition_HeaderMultiError) AllErrors ¶
func (m Condition_HeaderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Condition_HeaderMultiError) Error ¶
func (m Condition_HeaderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Condition_HeaderValidationError ¶
type Condition_HeaderValidationError struct {
// contains filtered or unexported fields
}
Condition_HeaderValidationError is the validation error returned by Condition_Header.Validate if the designated constraints aren't met.
func (Condition_HeaderValidationError) Cause ¶
func (e Condition_HeaderValidationError) Cause() error
Cause function returns cause value.
func (Condition_HeaderValidationError) Error ¶
func (e Condition_HeaderValidationError) Error() string
Error satisfies the builtin error interface
func (Condition_HeaderValidationError) ErrorName ¶
func (e Condition_HeaderValidationError) ErrorName() string
ErrorName returns error name.
func (Condition_HeaderValidationError) Field ¶
func (e Condition_HeaderValidationError) Field() string
Field function returns field value.
func (Condition_HeaderValidationError) Key ¶
func (e Condition_HeaderValidationError) Key() bool
Key function returns key value.
func (Condition_HeaderValidationError) Reason ¶
func (e Condition_HeaderValidationError) Reason() string
Reason function returns reason value.
type Database ¶
type Database struct {
// Debugging
Debug bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"`
// Dialect name: mysql, postgresql, mongodb, sqlite......
Dialect string `protobuf:"bytes,2,opt,name=dialect,proto3" json:"dialect,omitempty"`
// Data source (DSN string)
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
// Data migration
Migration *Migration `protobuf:"bytes,10,opt,name=migration,proto3" json:"migration,omitempty"`
// Link tracking switch
EnableTrace bool `protobuf:"varint,12,opt,name=enable_trace,proto3" json:"enable_trace,omitempty"`
// Performance analysis switch
EnableMetrics bool `protobuf:"varint,13,opt,name=enable_metrics,proto3" json:"enable_metrics,omitempty"`
// Maximum number of free connections in the connection pool
MaxIdleConnections int32 `protobuf:"varint,20,opt,name=max_idle_connections,proto3" json:"max_idle_connections,omitempty"`
// Maximum number of open connections in the connection pool
MaxOpenConnections int32 `protobuf:"varint,21,opt,name=max_open_connections,proto3" json:"max_open_connections,omitempty"`
// Maximum length of time that the connection can be reused
ConnectionMaxLifetime int64 `protobuf:"varint,22,opt,name=connection_max_lifetime,proto3" json:"connection_max_lifetime,omitempty"`
// Maximum number of connections in the connection pool for reading
ConnectionMaxIdleTime int64 `protobuf:"varint,23,opt,name=connection_max_idle_time,proto3" json:"connection_max_idle_time,omitempty"`
// contains filtered or unexported fields
}
Database
func (*Database) Descriptor
deprecated
func (*Database) GetConnectionMaxIdleTime ¶
func (*Database) GetConnectionMaxLifetime ¶
func (*Database) GetDialect ¶
func (*Database) GetEnableMetrics ¶
func (*Database) GetEnableTrace ¶
func (*Database) GetMaxIdleConnections ¶
func (*Database) GetMaxOpenConnections ¶
func (*Database) GetMigration ¶
func (*Database) ProtoMessage ¶
func (*Database) ProtoMessage()
func (*Database) ProtoReflect ¶
func (x *Database) ProtoReflect() protoreflect.Message
func (*Database) Validate ¶
Validate checks the field values on 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 (*Database) ValidateAll ¶
ValidateAll checks the field values on 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 DatabaseMultiError, or nil if none found.
type DatabaseMultiError ¶
type DatabaseMultiError []error
DatabaseMultiError is an error wrapping multiple validation errors returned by Database.ValidateAll() if the designated constraints aren't met.
func (DatabaseMultiError) AllErrors ¶
func (m DatabaseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DatabaseMultiError) Error ¶
func (m DatabaseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DatabaseValidationError ¶
type DatabaseValidationError struct {
// contains filtered or unexported fields
}
DatabaseValidationError is the validation error returned by Database.Validate if the designated constraints aren't met.
func (DatabaseValidationError) Cause ¶
func (e DatabaseValidationError) Cause() error
Cause function returns cause value.
func (DatabaseValidationError) Error ¶
func (e DatabaseValidationError) Error() string
Error satisfies the builtin error interface
func (DatabaseValidationError) ErrorName ¶
func (e DatabaseValidationError) ErrorName() string
ErrorName returns error name.
func (DatabaseValidationError) Field ¶
func (e DatabaseValidationError) Field() string
Field function returns field value.
func (DatabaseValidationError) Key ¶
func (e DatabaseValidationError) Key() bool
Key function returns key value.
func (DatabaseValidationError) Reason ¶
func (e DatabaseValidationError) Reason() string
Reason function returns reason value.
type Endpoint ¶
type Endpoint struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Protocol Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=runtime.config.v1.Protocol" json:"protocol,omitempty"`
Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
Middlewares []*Middleware `protobuf:"bytes,6,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
Backends []*Backend `protobuf:"bytes,7,rep,name=backends,proto3" json:"backends,omitempty"`
Retry *Retry `protobuf:"bytes,8,opt,name=retry,proto3" json:"retry,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
Host string `protobuf:"bytes,10,opt,name=host,proto3" json:"host,omitempty"`
// contains filtered or unexported fields
}
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) GetBackends ¶
func (*Endpoint) GetDescription ¶
func (*Endpoint) GetMetadata ¶
func (*Endpoint) GetMiddlewares ¶
func (x *Endpoint) GetMiddlewares() []*Middleware
func (*Endpoint) GetProtocol ¶
func (*Endpoint) GetTimeout ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
func (*Endpoint) Validate ¶
Validate checks the field values on Endpoint 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 (*Endpoint) ValidateAll ¶
ValidateAll checks the field values on Endpoint 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 EndpointMultiError, or nil if none found.
type EndpointMultiError ¶
type EndpointMultiError []error
EndpointMultiError is an error wrapping multiple validation errors returned by Endpoint.ValidateAll() if the designated constraints aren't met.
func (EndpointMultiError) AllErrors ¶
func (m EndpointMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EndpointMultiError) Error ¶
func (m EndpointMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EndpointValidationError ¶
type EndpointValidationError struct {
// contains filtered or unexported fields
}
EndpointValidationError is the validation error returned by Endpoint.Validate if the designated constraints aren't met.
func (EndpointValidationError) Cause ¶
func (e EndpointValidationError) Cause() error
Cause function returns cause value.
func (EndpointValidationError) Error ¶
func (e EndpointValidationError) Error() string
Error satisfies the builtin error interface
func (EndpointValidationError) ErrorName ¶
func (e EndpointValidationError) ErrorName() string
ErrorName returns error name.
func (EndpointValidationError) Field ¶
func (e EndpointValidationError) Field() string
Field function returns field value.
func (EndpointValidationError) Key ¶
func (e EndpointValidationError) Key() bool
Key function returns key value.
func (EndpointValidationError) Reason ¶
func (e EndpointValidationError) Reason() string
Reason function returns reason value.
type FileLocal ¶
type FileLocal struct {
Root string `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
// contains filtered or unexported fields
}
FileLocal defines the configuration for local file system storage. Renamed from 'File' to avoid ambiguity.
func (*FileLocal) Descriptor
deprecated
func (*FileLocal) ProtoMessage ¶
func (*FileLocal) ProtoMessage()
func (*FileLocal) ProtoReflect ¶
func (x *FileLocal) ProtoReflect() protoreflect.Message
func (*FileLocal) Validate ¶
Validate checks the field values on FileLocal 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 (*FileLocal) ValidateAll ¶
ValidateAll checks the field values on FileLocal 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 FileLocalMultiError, or nil if none found.
type FileLocalMultiError ¶
type FileLocalMultiError []error
FileLocalMultiError is an error wrapping multiple validation errors returned by FileLocal.ValidateAll() if the designated constraints aren't met.
func (FileLocalMultiError) AllErrors ¶
func (m FileLocalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileLocalMultiError) Error ¶
func (m FileLocalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileLocalValidationError ¶
type FileLocalValidationError struct {
// contains filtered or unexported fields
}
FileLocalValidationError is the validation error returned by FileLocal.Validate if the designated constraints aren't met.
func (FileLocalValidationError) Cause ¶
func (e FileLocalValidationError) Cause() error
Cause function returns cause value.
func (FileLocalValidationError) Error ¶
func (e FileLocalValidationError) Error() string
Error satisfies the builtin error interface
func (FileLocalValidationError) ErrorName ¶
func (e FileLocalValidationError) ErrorName() string
ErrorName returns error name.
func (FileLocalValidationError) Field ¶
func (e FileLocalValidationError) Field() string
Field function returns field value.
func (FileLocalValidationError) Key ¶
func (e FileLocalValidationError) Key() bool
Key function returns key value.
func (FileLocalValidationError) Reason ¶
func (e FileLocalValidationError) Reason() string
Reason function returns reason value.
type FileStore ¶
type FileStore struct {
// The 'driver' field determines which configuration block (local or oss) to use.
// This field is crucial for ensuring JSON/YAML compatibility.
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
// Local file system configuration. Only effective when driver is "local".
// The optional keyword clearly indicates that this field may not be present.
Local *FileLocal `protobuf:"bytes,2,opt,name=local,proto3,oneof" json:"local,omitempty"`
// Cloud object storage configuration. Only effective when driver is "oss".
Oss *Oss `protobuf:"bytes,3,opt,name=oss,proto3,oneof" json:"oss,omitempty"`
// Chunk size in bytes for splitting large files.
// For OSS, this corresponds to the multipart upload part size.
// For local storage, it defines the size of individual blob files.
// If 0 or not set, a reasonable default (e.g., 4MB) will be used by the implementation.
ChunkSize int64 `protobuf:"varint,4,opt,name=chunk_size,proto3" json:"chunk_size,omitempty"`
// contains filtered or unexported fields
}
FileStore groups all "file/object storage" type backends into one category. It uses the 'driver' field to determine which specific implementation to use.
func (*FileStore) Descriptor
deprecated
func (*FileStore) GetChunkSize ¶
func (*FileStore) ProtoMessage ¶
func (*FileStore) ProtoMessage()
func (*FileStore) ProtoReflect ¶
func (x *FileStore) ProtoReflect() protoreflect.Message
func (*FileStore) Validate ¶
Validate checks the field values on FileStore 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 (*FileStore) ValidateAll ¶
ValidateAll checks the field values on FileStore 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 FileStoreMultiError, or nil if none found.
type FileStoreMultiError ¶
type FileStoreMultiError []error
FileStoreMultiError is an error wrapping multiple validation errors returned by FileStore.ValidateAll() if the designated constraints aren't met.
func (FileStoreMultiError) AllErrors ¶
func (m FileStoreMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileStoreMultiError) Error ¶
func (m FileStoreMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileStoreValidationError ¶
type FileStoreValidationError struct {
// contains filtered or unexported fields
}
FileStoreValidationError is the validation error returned by FileStore.Validate if the designated constraints aren't met.
func (FileStoreValidationError) Cause ¶
func (e FileStoreValidationError) Cause() error
Cause function returns cause value.
func (FileStoreValidationError) Error ¶
func (e FileStoreValidationError) Error() string
Error satisfies the builtin error interface
func (FileStoreValidationError) ErrorName ¶
func (e FileStoreValidationError) ErrorName() string
ErrorName returns error name.
func (FileStoreValidationError) Field ¶
func (e FileStoreValidationError) Field() string
Field function returns field value.
func (FileStoreValidationError) Key ¶
func (e FileStoreValidationError) Key() bool
Key function returns key value.
func (FileStoreValidationError) Reason ¶
func (e FileStoreValidationError) Reason() string
Reason function returns reason value.
type Gateway ¶
type Gateway struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Deprecated: Marked as deprecated in runtime/config/v1/gateway.proto.
Hosts []string `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"`
Endpoints []*Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
Middlewares []*Middleware `protobuf:"bytes,5,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
TlsStore map[string]*v1.TLSConfig `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Gateway) Descriptor
deprecated
func (*Gateway) GetEndpoints ¶
func (*Gateway) GetMiddlewares ¶
func (x *Gateway) GetMiddlewares() []*Middleware
func (*Gateway) GetVersion ¶
func (*Gateway) ProtoMessage ¶
func (*Gateway) ProtoMessage()
func (*Gateway) ProtoReflect ¶
func (x *Gateway) ProtoReflect() protoreflect.Message
func (*Gateway) Validate ¶
Validate checks the field values on Gateway 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 (*Gateway) ValidateAll ¶
ValidateAll checks the field values on Gateway 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 GatewayMultiError, or nil if none found.
type GatewayMultiError ¶
type GatewayMultiError []error
GatewayMultiError is an error wrapping multiple validation errors returned by Gateway.ValidateAll() if the designated constraints aren't met.
func (GatewayMultiError) AllErrors ¶
func (m GatewayMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GatewayMultiError) Error ¶
func (m GatewayMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GatewayValidationError ¶
type GatewayValidationError struct {
// contains filtered or unexported fields
}
GatewayValidationError is the validation error returned by Gateway.Validate if the designated constraints aren't met.
func (GatewayValidationError) Cause ¶
func (e GatewayValidationError) Cause() error
Cause function returns cause value.
func (GatewayValidationError) Error ¶
func (e GatewayValidationError) Error() string
Error satisfies the builtin error interface
func (GatewayValidationError) ErrorName ¶
func (e GatewayValidationError) ErrorName() string
ErrorName returns error name.
func (GatewayValidationError) Field ¶
func (e GatewayValidationError) Field() string
Field function returns field value.
func (GatewayValidationError) Key ¶
func (e GatewayValidationError) Key() bool
Key function returns key value.
func (GatewayValidationError) Reason ¶
func (e GatewayValidationError) Reason() string
Reason function returns reason value.
type HealthCheck ¶
type HealthCheck struct {
Type HealthCheck_CheckType `protobuf:"varint,1,opt,name=type,proto3,enum=runtime.config.v1.HealthCheck_CheckType" json:"type,omitempty"`
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) GetEndpoint ¶
func (x *HealthCheck) GetEndpoint() string
func (*HealthCheck) GetType ¶
func (x *HealthCheck) GetType() HealthCheck_CheckType
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) ProtoReflect ¶
func (x *HealthCheck) ProtoReflect() protoreflect.Message
func (*HealthCheck) Reset ¶
func (x *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (x *HealthCheck) String() string
func (*HealthCheck) Validate ¶
func (m *HealthCheck) Validate() error
Validate checks the field values on HealthCheck 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 (*HealthCheck) ValidateAll ¶
func (m *HealthCheck) ValidateAll() error
ValidateAll checks the field values on HealthCheck 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 HealthCheckMultiError, or nil if none found.
type HealthCheckMultiError ¶
type HealthCheckMultiError []error
HealthCheckMultiError is an error wrapping multiple validation errors returned by HealthCheck.ValidateAll() if the designated constraints aren't met.
func (HealthCheckMultiError) AllErrors ¶
func (m HealthCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HealthCheckMultiError) Error ¶
func (m HealthCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HealthCheckValidationError ¶
type HealthCheckValidationError struct {
// contains filtered or unexported fields
}
HealthCheckValidationError is the validation error returned by HealthCheck.Validate if the designated constraints aren't met.
func (HealthCheckValidationError) Cause ¶
func (e HealthCheckValidationError) Cause() error
Cause function returns cause value.
func (HealthCheckValidationError) Error ¶
func (e HealthCheckValidationError) Error() string
Error satisfies the builtin error interface
func (HealthCheckValidationError) ErrorName ¶
func (e HealthCheckValidationError) ErrorName() string
ErrorName returns error name.
func (HealthCheckValidationError) Field ¶
func (e HealthCheckValidationError) Field() string
Field function returns field value.
func (HealthCheckValidationError) Key ¶
func (e HealthCheckValidationError) Key() bool
Key function returns key value.
func (HealthCheckValidationError) Reason ¶
func (e HealthCheckValidationError) Reason() string
Reason function returns reason value.
type HealthCheck_CheckType ¶
type HealthCheck_CheckType int32
const ( HealthCheck_CHECK_TYPE_UNSPECIFIED HealthCheck_CheckType = 0 HealthCheck_CHECK_TYPE_HTTP HealthCheck_CheckType = 1 HealthCheck_CHECK_TYPE_TCP HealthCheck_CheckType = 2 )
func (HealthCheck_CheckType) Descriptor ¶
func (HealthCheck_CheckType) Descriptor() protoreflect.EnumDescriptor
func (HealthCheck_CheckType) Enum ¶
func (x HealthCheck_CheckType) Enum() *HealthCheck_CheckType
func (HealthCheck_CheckType) EnumDescriptor
deprecated
func (HealthCheck_CheckType) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthCheck_CheckType.Descriptor instead.
func (HealthCheck_CheckType) Number ¶
func (x HealthCheck_CheckType) Number() protoreflect.EnumNumber
func (HealthCheck_CheckType) String ¶
func (x HealthCheck_CheckType) String() string
func (HealthCheck_CheckType) Type ¶
func (HealthCheck_CheckType) Type() protoreflect.EnumType
type Memcached ¶
type Memcached struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
MaxIdle int32 `protobuf:"varint,4,opt,name=max_idle,proto3" json:"max_idle,omitempty"`
Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
Memcached
func (*Memcached) Descriptor
deprecated
func (*Memcached) GetMaxIdle ¶
func (*Memcached) GetPassword ¶
func (*Memcached) GetTimeout ¶
func (*Memcached) GetUsername ¶
func (*Memcached) ProtoMessage ¶
func (*Memcached) ProtoMessage()
func (*Memcached) ProtoReflect ¶
func (x *Memcached) ProtoReflect() protoreflect.Message
func (*Memcached) Validate ¶
Validate checks the field values on Memcached 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 (*Memcached) ValidateAll ¶
ValidateAll checks the field values on Memcached 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 MemcachedMultiError, or nil if none found.
type MemcachedMultiError ¶
type MemcachedMultiError []error
MemcachedMultiError is an error wrapping multiple validation errors returned by Memcached.ValidateAll() if the designated constraints aren't met.
func (MemcachedMultiError) AllErrors ¶
func (m MemcachedMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MemcachedMultiError) Error ¶
func (m MemcachedMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MemcachedValidationError ¶
type MemcachedValidationError struct {
// contains filtered or unexported fields
}
MemcachedValidationError is the validation error returned by Memcached.Validate if the designated constraints aren't met.
func (MemcachedValidationError) Cause ¶
func (e MemcachedValidationError) Cause() error
Cause function returns cause value.
func (MemcachedValidationError) Error ¶
func (e MemcachedValidationError) Error() string
Error satisfies the builtin error interface
func (MemcachedValidationError) ErrorName ¶
func (e MemcachedValidationError) ErrorName() string
ErrorName returns error name.
func (MemcachedValidationError) Field ¶
func (e MemcachedValidationError) Field() string
Field function returns field value.
func (MemcachedValidationError) Key ¶
func (e MemcachedValidationError) Key() bool
Key function returns key value.
func (MemcachedValidationError) Reason ¶
func (e MemcachedValidationError) Reason() string
Reason function returns reason value.
type Memory ¶
type Memory struct {
Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
Capacity int32 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
Expiration int64 `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
CleanupInterval int64 `protobuf:"varint,4,opt,name=cleanup_interval,proto3" json:"cleanup_interval,omitempty"`
// contains filtered or unexported fields
}
Memory
func (*Memory) Descriptor
deprecated
func (*Memory) GetCapacity ¶
func (*Memory) GetCleanupInterval ¶
func (*Memory) GetExpiration ¶
func (*Memory) ProtoMessage ¶
func (*Memory) ProtoMessage()
func (*Memory) ProtoReflect ¶
func (x *Memory) ProtoReflect() protoreflect.Message
func (*Memory) Validate ¶
Validate checks the field values on Memory 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 (*Memory) ValidateAll ¶
ValidateAll checks the field values on Memory 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 MemoryMultiError, or nil if none found.
type MemoryMultiError ¶
type MemoryMultiError []error
MemoryMultiError is an error wrapping multiple validation errors returned by Memory.ValidateAll() if the designated constraints aren't met.
func (MemoryMultiError) AllErrors ¶
func (m MemoryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MemoryMultiError) Error ¶
func (m MemoryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MemoryValidationError ¶
type MemoryValidationError struct {
// contains filtered or unexported fields
}
MemoryValidationError is the validation error returned by Memory.Validate if the designated constraints aren't met.
func (MemoryValidationError) Cause ¶
func (e MemoryValidationError) Cause() error
Cause function returns cause value.
func (MemoryValidationError) Error ¶
func (e MemoryValidationError) Error() string
Error satisfies the builtin error interface
func (MemoryValidationError) ErrorName ¶
func (e MemoryValidationError) ErrorName() string
ErrorName returns error name.
func (MemoryValidationError) Field ¶
func (e MemoryValidationError) Field() string
Field function returns field value.
func (MemoryValidationError) Key ¶
func (e MemoryValidationError) Key() bool
Key function returns key value.
func (MemoryValidationError) Reason ¶
func (e MemoryValidationError) Reason() string
Reason function returns reason value.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message defines the configuration for a message queue service consumer/producer.
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) Validate ¶
Validate checks the field values on Message 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 (*Message) ValidateAll ¶
ValidateAll checks the field values on Message 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 MessageMultiError, or nil if none found.
type MessageMultiError ¶
type MessageMultiError []error
MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.
func (MessageMultiError) AllErrors ¶
func (m MessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageMultiError) Error ¶
func (m MessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageValidationError ¶
type MessageValidationError struct {
// contains filtered or unexported fields
}
MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.
func (MessageValidationError) Cause ¶
func (e MessageValidationError) Cause() error
Cause function returns cause value.
func (MessageValidationError) Error ¶
func (e MessageValidationError) Error() string
Error satisfies the builtin error interface
func (MessageValidationError) ErrorName ¶
func (e MessageValidationError) ErrorName() string
ErrorName returns error name.
func (MessageValidationError) Field ¶
func (e MessageValidationError) Field() string
Field function returns field value.
func (MessageValidationError) Key ¶
func (e MessageValidationError) Key() bool
Key function returns key value.
func (MessageValidationError) Reason ¶
func (e MessageValidationError) Reason() string
Reason function returns reason value.
type Middleware ¶
type Middleware struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Options []byte `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
// contains filtered or unexported fields
}
func (*Middleware) Descriptor
deprecated
func (*Middleware) Descriptor() ([]byte, []int)
Deprecated: Use Middleware.ProtoReflect.Descriptor instead.
func (*Middleware) GetName ¶
func (x *Middleware) GetName() string
func (*Middleware) GetOptions ¶
func (x *Middleware) GetOptions() []byte
func (*Middleware) GetRequired ¶
func (x *Middleware) GetRequired() bool
func (*Middleware) ProtoMessage ¶
func (*Middleware) ProtoMessage()
func (*Middleware) ProtoReflect ¶
func (x *Middleware) ProtoReflect() protoreflect.Message
func (*Middleware) Reset ¶
func (x *Middleware) Reset()
func (*Middleware) String ¶
func (x *Middleware) String() string
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Validate checks the field values on Middleware 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 (*Middleware) ValidateAll ¶
func (m *Middleware) ValidateAll() error
ValidateAll checks the field values on Middleware 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 MiddlewareMultiError, or nil if none found.
type MiddlewareMultiError ¶
type MiddlewareMultiError []error
MiddlewareMultiError is an error wrapping multiple validation errors returned by Middleware.ValidateAll() if the designated constraints aren't met.
func (MiddlewareMultiError) AllErrors ¶
func (m MiddlewareMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MiddlewareMultiError) Error ¶
func (m MiddlewareMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MiddlewareValidationError ¶
type MiddlewareValidationError struct {
// contains filtered or unexported fields
}
MiddlewareValidationError is the validation error returned by Middleware.Validate if the designated constraints aren't met.
func (MiddlewareValidationError) Cause ¶
func (e MiddlewareValidationError) Cause() error
Cause function returns cause value.
func (MiddlewareValidationError) Error ¶
func (e MiddlewareValidationError) Error() string
Error satisfies the builtin error interface
func (MiddlewareValidationError) ErrorName ¶
func (e MiddlewareValidationError) ErrorName() string
ErrorName returns error name.
func (MiddlewareValidationError) Field ¶
func (e MiddlewareValidationError) Field() string
Field function returns field value.
func (MiddlewareValidationError) Key ¶
func (e MiddlewareValidationError) Key() bool
Key function returns key value.
func (MiddlewareValidationError) Reason ¶
func (e MiddlewareValidationError) Reason() string
Reason function returns reason value.
type Migration ¶
type Migration struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
Mode string `protobuf:"bytes,5,opt,name=mode,proto3" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*Migration) Descriptor
deprecated
func (*Migration) GetEnabled ¶
func (*Migration) GetVersion ¶
func (*Migration) ProtoMessage ¶
func (*Migration) ProtoMessage()
func (*Migration) ProtoReflect ¶
func (x *Migration) ProtoReflect() protoreflect.Message
func (*Migration) Validate ¶
Validate checks the field values on Migration 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 (*Migration) ValidateAll ¶
ValidateAll checks the field values on Migration 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 MigrationMultiError, or nil if none found.
type MigrationMultiError ¶
type MigrationMultiError []error
MigrationMultiError is an error wrapping multiple validation errors returned by Migration.ValidateAll() if the designated constraints aren't met.
func (MigrationMultiError) AllErrors ¶
func (m MigrationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MigrationMultiError) Error ¶
func (m MigrationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MigrationValidationError ¶
type MigrationValidationError struct {
// contains filtered or unexported fields
}
MigrationValidationError is the validation error returned by Migration.Validate if the designated constraints aren't met.
func (MigrationValidationError) Cause ¶
func (e MigrationValidationError) Cause() error
Cause function returns cause value.
func (MigrationValidationError) Error ¶
func (e MigrationValidationError) Error() string
Error satisfies the builtin error interface
func (MigrationValidationError) ErrorName ¶
func (e MigrationValidationError) ErrorName() string
ErrorName returns error name.
func (MigrationValidationError) Field ¶
func (e MigrationValidationError) Field() string
Field function returns field value.
func (MigrationValidationError) Key ¶
func (e MigrationValidationError) Key() bool
Key function returns key value.
func (MigrationValidationError) Reason ¶
func (e MigrationValidationError) Reason() string
Reason function returns reason value.
type Mongo ¶
type Mongo struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
AuthSource bool `protobuf:"varint,5,opt,name=auth_source,proto3" json:"auth_source,omitempty"`
MaxPoolSize int32 `protobuf:"varint,6,opt,name=max_pool_size,proto3" json:"max_pool_size,omitempty"`
MinPoolSize int32 `protobuf:"varint,7,opt,name=min_pool_size,proto3" json:"min_pool_size,omitempty"`
ConnectTimeout int64 `protobuf:"varint,8,opt,name=connect_timeout,proto3" json:"connect_timeout,omitempty"`
// contains filtered or unexported fields
}
Mongo
func (*Mongo) Descriptor
deprecated
func (*Mongo) GetAuthSource ¶
func (*Mongo) GetConnectTimeout ¶
func (*Mongo) GetDatabase ¶
func (*Mongo) GetMaxPoolSize ¶
func (*Mongo) GetMinPoolSize ¶
func (*Mongo) GetPassword ¶
func (*Mongo) GetUsername ¶
func (*Mongo) ProtoMessage ¶
func (*Mongo) ProtoMessage()
func (*Mongo) ProtoReflect ¶
func (x *Mongo) ProtoReflect() protoreflect.Message
func (*Mongo) Validate ¶
Validate checks the field values on Mongo 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 (*Mongo) ValidateAll ¶
ValidateAll checks the field values on Mongo 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 MongoMultiError, or nil if none found.
type MongoMultiError ¶
type MongoMultiError []error
MongoMultiError is an error wrapping multiple validation errors returned by Mongo.ValidateAll() if the designated constraints aren't met.
func (MongoMultiError) AllErrors ¶
func (m MongoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MongoMultiError) Error ¶
func (m MongoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MongoValidationError ¶
type MongoValidationError struct {
// contains filtered or unexported fields
}
MongoValidationError is the validation error returned by Mongo.Validate if the designated constraints aren't met.
func (MongoValidationError) Cause ¶
func (e MongoValidationError) Cause() error
Cause function returns cause value.
func (MongoValidationError) Error ¶
func (e MongoValidationError) Error() string
Error satisfies the builtin error interface
func (MongoValidationError) ErrorName ¶
func (e MongoValidationError) ErrorName() string
ErrorName returns error name.
func (MongoValidationError) Field ¶
func (e MongoValidationError) Field() string
Field function returns field value.
func (MongoValidationError) Key ¶
func (e MongoValidationError) Key() bool
Key function returns key value.
func (MongoValidationError) Reason ¶
func (e MongoValidationError) Reason() string
Reason function returns reason value.
type Oss ¶
type Oss struct {
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
AccessKeyId string `protobuf:"bytes,2,opt,name=access_key_id,proto3" json:"access_key_id,omitempty"`
AccessKeySecret string `protobuf:"bytes,3,opt,name=access_key_secret,proto3" json:"access_key_secret,omitempty"`
Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
Ssl bool `protobuf:"varint,6,opt,name=ssl,proto3" json:"ssl,omitempty"`
ConnectTimeout int64 `protobuf:"varint,7,opt,name=connect_timeout,proto3" json:"connect_timeout,omitempty"`
ReadTimeout int64 `protobuf:"varint,8,opt,name=read_timeout,proto3" json:"read_timeout,omitempty"`
// contains filtered or unexported fields
}
OSS defines the configuration for cloud object storage.
func (*Oss) Descriptor
deprecated
func (*Oss) GetAccessKeyId ¶
func (*Oss) GetAccessKeySecret ¶
func (*Oss) GetConnectTimeout ¶
func (*Oss) GetEndpoint ¶
func (*Oss) GetReadTimeout ¶
func (*Oss) ProtoMessage ¶
func (*Oss) ProtoMessage()
func (*Oss) ProtoReflect ¶
func (x *Oss) ProtoReflect() protoreflect.Message
func (*Oss) Validate ¶
Validate checks the field values on Oss 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 (*Oss) ValidateAll ¶
ValidateAll checks the field values on Oss 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 OssMultiError, or nil if none found.
type OssMultiError ¶
type OssMultiError []error
OssMultiError is an error wrapping multiple validation errors returned by Oss.ValidateAll() if the designated constraints aren't met.
func (OssMultiError) AllErrors ¶
func (m OssMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OssMultiError) Error ¶
func (m OssMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OssValidationError ¶
type OssValidationError struct {
// contains filtered or unexported fields
}
OssValidationError is the validation error returned by Oss.Validate if the designated constraints aren't met.
func (OssValidationError) Cause ¶
func (e OssValidationError) Cause() error
Cause function returns cause value.
func (OssValidationError) Error ¶
func (e OssValidationError) Error() string
Error satisfies the builtin error interface
func (OssValidationError) ErrorName ¶
func (e OssValidationError) ErrorName() string
ErrorName returns error name.
func (OssValidationError) Field ¶
func (e OssValidationError) Field() string
Field function returns field value.
func (OssValidationError) Key ¶
func (e OssValidationError) Key() bool
Key function returns key value.
func (OssValidationError) Reason ¶
func (e OssValidationError) Reason() string
Reason function returns reason value.
type PriorityConfig ¶
type PriorityConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// contains filtered or unexported fields
}
func (*PriorityConfig) Descriptor
deprecated
func (*PriorityConfig) Descriptor() ([]byte, []int)
Deprecated: Use PriorityConfig.ProtoReflect.Descriptor instead.
func (*PriorityConfig) GetEndpoints ¶
func (x *PriorityConfig) GetEndpoints() []*Endpoint
func (*PriorityConfig) GetName ¶
func (x *PriorityConfig) GetName() string
func (*PriorityConfig) GetVersion ¶
func (x *PriorityConfig) GetVersion() string
func (*PriorityConfig) ProtoMessage ¶
func (*PriorityConfig) ProtoMessage()
func (*PriorityConfig) ProtoReflect ¶
func (x *PriorityConfig) ProtoReflect() protoreflect.Message
func (*PriorityConfig) Reset ¶
func (x *PriorityConfig) Reset()
func (*PriorityConfig) String ¶
func (x *PriorityConfig) String() string
func (*PriorityConfig) Validate ¶
func (m *PriorityConfig) Validate() error
Validate checks the field values on PriorityConfig 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 (*PriorityConfig) ValidateAll ¶
func (m *PriorityConfig) ValidateAll() error
ValidateAll checks the field values on PriorityConfig 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 PriorityConfigMultiError, or nil if none found.
type PriorityConfigMultiError ¶
type PriorityConfigMultiError []error
PriorityConfigMultiError is an error wrapping multiple validation errors returned by PriorityConfig.ValidateAll() if the designated constraints aren't met.
func (PriorityConfigMultiError) AllErrors ¶
func (m PriorityConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PriorityConfigMultiError) Error ¶
func (m PriorityConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PriorityConfigValidationError ¶
type PriorityConfigValidationError struct {
// contains filtered or unexported fields
}
PriorityConfigValidationError is the validation error returned by PriorityConfig.Validate if the designated constraints aren't met.
func (PriorityConfigValidationError) Cause ¶
func (e PriorityConfigValidationError) Cause() error
Cause function returns cause value.
func (PriorityConfigValidationError) Error ¶
func (e PriorityConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PriorityConfigValidationError) ErrorName ¶
func (e PriorityConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PriorityConfigValidationError) Field ¶
func (e PriorityConfigValidationError) Field() string
Field function returns field value.
func (PriorityConfigValidationError) Key ¶
func (e PriorityConfigValidationError) Key() bool
Key function returns key value.
func (PriorityConfigValidationError) Reason ¶
func (e PriorityConfigValidationError) Reason() string
Reason function returns reason value.
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type Redis ¶
type Redis struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Db int32 `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"`
DialTimeout int64 `protobuf:"varint,5,opt,name=dial_timeout,proto3" json:"dial_timeout,omitempty"`
ReadTimeout int64 `protobuf:"varint,6,opt,name=read_timeout,proto3" json:"read_timeout,omitempty"`
WriteTimeout int64 `protobuf:"varint,7,opt,name=write_timeout,proto3" json:"write_timeout,omitempty"`
// contains filtered or unexported fields
}
Redis
func (*Redis) Descriptor
deprecated
func (*Redis) GetDialTimeout ¶
func (*Redis) GetNetwork ¶
func (*Redis) GetPassword ¶
func (*Redis) GetReadTimeout ¶
func (*Redis) GetWriteTimeout ¶
func (*Redis) ProtoMessage ¶
func (*Redis) ProtoMessage()
func (*Redis) ProtoReflect ¶
func (x *Redis) ProtoReflect() protoreflect.Message
func (*Redis) Validate ¶
Validate checks the field values on 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 (*Redis) ValidateAll ¶
ValidateAll checks the field values on 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 RedisMultiError, or nil if none found.
type RedisMultiError ¶
type RedisMultiError []error
RedisMultiError is an error wrapping multiple validation errors returned by Redis.ValidateAll() if the designated constraints aren't met.
func (RedisMultiError) AllErrors ¶
func (m RedisMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RedisMultiError) Error ¶
func (m RedisMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RedisValidationError ¶
type RedisValidationError struct {
// contains filtered or unexported fields
}
RedisValidationError is the validation error returned by Redis.Validate if the designated constraints aren't met.
func (RedisValidationError) Cause ¶
func (e RedisValidationError) Cause() error
Cause function returns cause value.
func (RedisValidationError) Error ¶
func (e RedisValidationError) Error() string
Error satisfies the builtin error interface
func (RedisValidationError) ErrorName ¶
func (e RedisValidationError) ErrorName() string
ErrorName returns error name.
func (RedisValidationError) Field ¶
func (e RedisValidationError) Field() string
Field function returns field value.
func (RedisValidationError) Key ¶
func (e RedisValidationError) Key() bool
Key function returns key value.
func (RedisValidationError) Reason ¶
func (e RedisValidationError) Reason() string
Reason function returns reason value.
type Retry ¶
type Retry struct {
// default attempts is 1
Attempts uint32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
PerTryTimeout int64 `protobuf:"varint,2,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
Conditions []*Condition `protobuf:"bytes,3,rep,name=conditions,proto3" json:"conditions,omitempty"`
// primary,secondary
Priorities []string `protobuf:"bytes,4,rep,name=priorities,proto3" json:"priorities,omitempty"`
// contains filtered or unexported fields
}
func (*Retry) Descriptor
deprecated
func (*Retry) GetAttempts ¶
func (*Retry) GetConditions ¶
func (*Retry) GetPerTryTimeout ¶
func (*Retry) GetPriorities ¶
func (*Retry) ProtoMessage ¶
func (*Retry) ProtoMessage()
func (*Retry) ProtoReflect ¶
func (x *Retry) ProtoReflect() protoreflect.Message
func (*Retry) Validate ¶
Validate checks the field values on Retry 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 (*Retry) ValidateAll ¶
ValidateAll checks the field values on Retry 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 RetryMultiError, or nil if none found.
type RetryMultiError ¶
type RetryMultiError []error
RetryMultiError is an error wrapping multiple validation errors returned by Retry.ValidateAll() if the designated constraints aren't met.
func (RetryMultiError) AllErrors ¶
func (m RetryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RetryMultiError) Error ¶
func (m RetryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RetryValidationError ¶
type RetryValidationError struct {
// contains filtered or unexported fields
}
RetryValidationError is the validation error returned by Retry.Validate if the designated constraints aren't met.
func (RetryValidationError) Cause ¶
func (e RetryValidationError) Cause() error
Cause function returns cause value.
func (RetryValidationError) Error ¶
func (e RetryValidationError) Error() string
Error satisfies the builtin error interface
func (RetryValidationError) ErrorName ¶
func (e RetryValidationError) ErrorName() string
ErrorName returns error name.
func (RetryValidationError) Field ¶
func (e RetryValidationError) Field() string
Field function returns field value.
func (RetryValidationError) Key ¶
func (e RetryValidationError) Key() bool
Key function returns key value.
func (RetryValidationError) Reason ¶
func (e RetryValidationError) Reason() string
Reason function returns reason value.
type Selector ¶
type Selector struct {
// version is used for version-based routing.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
Selector defines the client-side node selection strategy.
func (*Selector) Descriptor
deprecated
func (*Selector) GetVersion ¶
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) ProtoReflect ¶
func (x *Selector) ProtoReflect() protoreflect.Message
func (*Selector) Validate ¶
Validate checks the field values on Selector 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 (*Selector) ValidateAll ¶
ValidateAll checks the field values on Selector 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 SelectorMultiError, or nil if none found.
type SelectorMultiError ¶
type SelectorMultiError []error
SelectorMultiError is an error wrapping multiple validation errors returned by Selector.ValidateAll() if the designated constraints aren't met.
func (SelectorMultiError) AllErrors ¶
func (m SelectorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SelectorMultiError) Error ¶
func (m SelectorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SelectorValidationError ¶
type SelectorValidationError struct {
// contains filtered or unexported fields
}
SelectorValidationError is the validation error returned by Selector.Validate if the designated constraints aren't met.
func (SelectorValidationError) Cause ¶
func (e SelectorValidationError) Cause() error
Cause function returns cause value.
func (SelectorValidationError) Error ¶
func (e SelectorValidationError) Error() string
Error satisfies the builtin error interface
func (SelectorValidationError) ErrorName ¶
func (e SelectorValidationError) ErrorName() string
ErrorName returns error name.
func (SelectorValidationError) Field ¶
func (e SelectorValidationError) Field() string
Field function returns field value.
func (SelectorValidationError) Key ¶
func (e SelectorValidationError) Key() bool
Key function returns key value.
func (SelectorValidationError) Reason ¶
func (e SelectorValidationError) Reason() string
Reason function returns reason value.
type Server ¶
type Server struct {
Grpc *Server_GRPC `protobuf:"bytes,1,opt,name=grpc,proto3" json:"grpc,omitempty"`
Http *Server_HTTP `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"`
// contains filtered or unexported fields
}
Server defines the server-side configuration for the service.
func (*Server) Descriptor
deprecated
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_GRPC
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_HTTP
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
func (*Server) Validate ¶
Validate checks the field values on Server 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 (*Server) ValidateAll ¶
ValidateAll checks the field values on Server 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 ServerMultiError, or nil if none found.
type ServerMultiError ¶
type ServerMultiError []error
ServerMultiError is an error wrapping multiple validation errors returned by Server.ValidateAll() if the designated constraints aren't met.
func (ServerMultiError) AllErrors ¶
func (m ServerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerMultiError) Error ¶
func (m ServerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerValidationError ¶
type ServerValidationError struct {
// contains filtered or unexported fields
}
ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.
func (ServerValidationError) Cause ¶
func (e ServerValidationError) Cause() error
Cause function returns cause value.
func (ServerValidationError) Error ¶
func (e ServerValidationError) Error() string
Error satisfies the builtin error interface
func (ServerValidationError) ErrorName ¶
func (e ServerValidationError) ErrorName() string
ErrorName returns error name.
func (ServerValidationError) Field ¶
func (e ServerValidationError) Field() string
Field function returns field value.
func (ServerValidationError) Key ¶
func (e ServerValidationError) Key() bool
Key function returns key value.
func (ServerValidationError) Reason ¶
func (e ServerValidationError) Reason() string
Reason function returns reason value.
type Server_GRPC ¶
type Server_GRPC struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
ShutdownTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=shutdown_timeout,json=shutdownTimeout,proto3" json:"shutdown_timeout,omitempty"`
// The endpoint that this server advertises to the service registry.
Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
EnableReflection bool `protobuf:"varint,6,opt,name=enable_reflection,json=enableReflection,proto3" json:"enable_reflection,omitempty"`
MaxRecvMsgSize int32 `protobuf:"varint,7,opt,name=max_recv_msg_size,json=maxRecvMsgSize,proto3" json:"max_recv_msg_size,omitempty"`
MaxSendMsgSize int32 `protobuf:"varint,8,opt,name=max_send_msg_size,json=maxSendMsgSize,proto3" json:"max_send_msg_size,omitempty"`
Tls *v1.TLSConfig `protobuf:"bytes,9,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
GRPC server configuration.
func (*Server_GRPC) Descriptor
deprecated
func (*Server_GRPC) Descriptor() ([]byte, []int)
Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
func (*Server_GRPC) GetAddr ¶
func (x *Server_GRPC) GetAddr() string
func (*Server_GRPC) GetEnableReflection ¶
func (x *Server_GRPC) GetEnableReflection() bool
func (*Server_GRPC) GetEndpoint ¶
func (x *Server_GRPC) GetEndpoint() string
func (*Server_GRPC) GetMaxRecvMsgSize ¶
func (x *Server_GRPC) GetMaxRecvMsgSize() int32
func (*Server_GRPC) GetMaxSendMsgSize ¶
func (x *Server_GRPC) GetMaxSendMsgSize() int32
func (*Server_GRPC) GetNetwork ¶
func (x *Server_GRPC) GetNetwork() string
func (*Server_GRPC) GetShutdownTimeout ¶
func (x *Server_GRPC) GetShutdownTimeout() *durationpb.Duration
func (*Server_GRPC) GetTimeout ¶
func (x *Server_GRPC) GetTimeout() *durationpb.Duration
func (*Server_GRPC) GetTls ¶
func (x *Server_GRPC) GetTls() *v1.TLSConfig
func (*Server_GRPC) ProtoMessage ¶
func (*Server_GRPC) ProtoMessage()
func (*Server_GRPC) ProtoReflect ¶
func (x *Server_GRPC) ProtoReflect() protoreflect.Message
func (*Server_GRPC) Reset ¶
func (x *Server_GRPC) Reset()
func (*Server_GRPC) String ¶
func (x *Server_GRPC) String() string
func (*Server_GRPC) Validate ¶
func (m *Server_GRPC) Validate() error
Validate checks the field values on Server_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 (*Server_GRPC) ValidateAll ¶
func (m *Server_GRPC) ValidateAll() error
ValidateAll checks the field values on Server_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 Server_GRPCMultiError, or nil if none found.
type Server_GRPCMultiError ¶
type Server_GRPCMultiError []error
Server_GRPCMultiError is an error wrapping multiple validation errors returned by Server_GRPC.ValidateAll() if the designated constraints aren't met.
func (Server_GRPCMultiError) AllErrors ¶
func (m Server_GRPCMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Server_GRPCMultiError) Error ¶
func (m Server_GRPCMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Server_GRPCValidationError ¶
type Server_GRPCValidationError struct {
// contains filtered or unexported fields
}
Server_GRPCValidationError is the validation error returned by Server_GRPC.Validate if the designated constraints aren't met.
func (Server_GRPCValidationError) Cause ¶
func (e Server_GRPCValidationError) Cause() error
Cause function returns cause value.
func (Server_GRPCValidationError) Error ¶
func (e Server_GRPCValidationError) Error() string
Error satisfies the builtin error interface
func (Server_GRPCValidationError) ErrorName ¶
func (e Server_GRPCValidationError) ErrorName() string
ErrorName returns error name.
func (Server_GRPCValidationError) Field ¶
func (e Server_GRPCValidationError) Field() string
Field function returns field value.
func (Server_GRPCValidationError) Key ¶
func (e Server_GRPCValidationError) Key() bool
Key function returns key value.
func (Server_GRPCValidationError) Reason ¶
func (e Server_GRPCValidationError) Reason() string
Reason function returns reason value.
type Server_HTTP ¶
type Server_HTTP struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
ShutdownTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=shutdown_timeout,json=shutdownTimeout,proto3" json:"shutdown_timeout,omitempty"`
// The endpoint that this server advertises to the service registry.
Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
MaxRecvMsgSize int32 `protobuf:"varint,6,opt,name=max_recv_msg_size,json=maxRecvMsgSize,proto3" json:"max_recv_msg_size,omitempty"`
MaxSendMsgSize int32 `protobuf:"varint,7,opt,name=max_send_msg_size,json=maxSendMsgSize,proto3" json:"max_send_msg_size,omitempty"`
Tls *v1.TLSConfig `protobuf:"bytes,8,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
HTTP server configuration.
func (*Server_HTTP) Descriptor
deprecated
func (*Server_HTTP) Descriptor() ([]byte, []int)
Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
func (*Server_HTTP) GetAddr ¶
func (x *Server_HTTP) GetAddr() string
func (*Server_HTTP) GetEndpoint ¶
func (x *Server_HTTP) GetEndpoint() string
func (*Server_HTTP) GetMaxRecvMsgSize ¶
func (x *Server_HTTP) GetMaxRecvMsgSize() int32
func (*Server_HTTP) GetMaxSendMsgSize ¶
func (x *Server_HTTP) GetMaxSendMsgSize() int32
func (*Server_HTTP) GetNetwork ¶
func (x *Server_HTTP) GetNetwork() string
func (*Server_HTTP) GetShutdownTimeout ¶
func (x *Server_HTTP) GetShutdownTimeout() *durationpb.Duration
func (*Server_HTTP) GetTimeout ¶
func (x *Server_HTTP) GetTimeout() *durationpb.Duration
func (*Server_HTTP) GetTls ¶
func (x *Server_HTTP) GetTls() *v1.TLSConfig
func (*Server_HTTP) ProtoMessage ¶
func (*Server_HTTP) ProtoMessage()
func (*Server_HTTP) ProtoReflect ¶
func (x *Server_HTTP) ProtoReflect() protoreflect.Message
func (*Server_HTTP) Reset ¶
func (x *Server_HTTP) Reset()
func (*Server_HTTP) String ¶
func (x *Server_HTTP) String() string
func (*Server_HTTP) Validate ¶
func (m *Server_HTTP) Validate() error
Validate checks the field values on Server_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 (*Server_HTTP) ValidateAll ¶
func (m *Server_HTTP) ValidateAll() error
ValidateAll checks the field values on Server_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 Server_HTTPMultiError, or nil if none found.
type Server_HTTPMultiError ¶
type Server_HTTPMultiError []error
Server_HTTPMultiError is an error wrapping multiple validation errors returned by Server_HTTP.ValidateAll() if the designated constraints aren't met.
func (Server_HTTPMultiError) AllErrors ¶
func (m Server_HTTPMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Server_HTTPMultiError) Error ¶
func (m Server_HTTPMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Server_HTTPValidationError ¶
type Server_HTTPValidationError struct {
// contains filtered or unexported fields
}
Server_HTTPValidationError is the validation error returned by Server_HTTP.Validate if the designated constraints aren't met.
func (Server_HTTPValidationError) Cause ¶
func (e Server_HTTPValidationError) Cause() error
Cause function returns cause value.
func (Server_HTTPValidationError) Error ¶
func (e Server_HTTPValidationError) Error() string
Error satisfies the builtin error interface
func (Server_HTTPValidationError) ErrorName ¶
func (e Server_HTTPValidationError) ErrorName() string
ErrorName returns error name.
func (Server_HTTPValidationError) Field ¶
func (e Server_HTTPValidationError) Field() string
Field function returns field value.
func (Server_HTTPValidationError) Key ¶
func (e Server_HTTPValidationError) Key() bool
Key function returns key value.
func (Server_HTTPValidationError) Reason ¶
func (e Server_HTTPValidationError) Reason() string
Reason function returns reason value.
type Storage ¶
type Storage struct {
// Map of named FileStore configurations.
Filestores map[string]*FileStore `` /* 147-byte string literal not displayed */
// Map of named Cache configurations.
Caches map[string]*Cache `` /* 139-byte string literal not displayed */
// Map of named Database configurations.
Databases map[string]*Database `` /* 145-byte string literal not displayed */
// Optional: Default instance names for each type.
DefaultFilestore *string `protobuf:"bytes,4,opt,name=default_filestore,proto3,oneof" json:"default_filestore,omitempty"`
DefaultCache *string `protobuf:"bytes,5,opt,name=default_cache,proto3,oneof" json:"default_cache,omitempty"`
DefaultDatabase *string `protobuf:"bytes,6,opt,name=default_database,proto3,oneof" json:"default_database,omitempty"`
// contains filtered or unexported fields
}
Storage is the top-level configuration, and its structure is now compatible with all parsers.
func (*Storage) Descriptor
deprecated
func (*Storage) GetDatabases ¶
func (*Storage) GetDefaultCache ¶
func (*Storage) GetDefaultDatabase ¶
func (*Storage) GetDefaultFilestore ¶
func (*Storage) GetFilestores ¶
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
func (*Storage) ProtoReflect ¶
func (x *Storage) ProtoReflect() protoreflect.Message
func (*Storage) Validate ¶
Validate checks the field values on Storage 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 (*Storage) ValidateAll ¶
ValidateAll checks the field values on Storage 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 StorageMultiError, or nil if none found.
type StorageMultiError ¶
type StorageMultiError []error
StorageMultiError is an error wrapping multiple validation errors returned by Storage.ValidateAll() if the designated constraints aren't met.
func (StorageMultiError) AllErrors ¶
func (m StorageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageMultiError) Error ¶
func (m StorageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageValidationError ¶
type StorageValidationError struct {
// contains filtered or unexported fields
}
StorageValidationError is the validation error returned by Storage.Validate if the designated constraints aren't met.
func (StorageValidationError) Cause ¶
func (e StorageValidationError) Cause() error
Cause function returns cause value.
func (StorageValidationError) Error ¶
func (e StorageValidationError) Error() string
Error satisfies the builtin error interface
func (StorageValidationError) ErrorName ¶
func (e StorageValidationError) ErrorName() string
ErrorName returns error name.
func (StorageValidationError) Field ¶
func (e StorageValidationError) Field() string
Field function returns field value.
func (StorageValidationError) Key ¶
func (e StorageValidationError) Key() bool
Key function returns key value.
func (StorageValidationError) Reason ¶
func (e StorageValidationError) Reason() string
Reason function returns reason value.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task defines the configuration for a background task or cron job service.
func (*Task) Descriptor
deprecated
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
func (*Task) Validate ¶
Validate checks the field values on Task 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 (*Task) ValidateAll ¶
ValidateAll checks the field values on Task 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 TaskMultiError, or nil if none found.
type TaskMultiError ¶
type TaskMultiError []error
TaskMultiError is an error wrapping multiple validation errors returned by Task.ValidateAll() if the designated constraints aren't met.
func (TaskMultiError) AllErrors ¶
func (m TaskMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TaskMultiError) Error ¶
func (m TaskMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TaskValidationError ¶
type TaskValidationError struct {
// contains filtered or unexported fields
}
TaskValidationError is the validation error returned by Task.Validate if the designated constraints aren't met.
func (TaskValidationError) Cause ¶
func (e TaskValidationError) Cause() error
Cause function returns cause value.
func (TaskValidationError) Error ¶
func (e TaskValidationError) Error() string
Error satisfies the builtin error interface
func (TaskValidationError) ErrorName ¶
func (e TaskValidationError) ErrorName() string
ErrorName returns error name.
func (TaskValidationError) Field ¶
func (e TaskValidationError) Field() string
Field function returns field value.
func (TaskValidationError) Key ¶
func (e TaskValidationError) Key() bool
Key function returns key value.
func (TaskValidationError) Reason ¶
func (e TaskValidationError) Reason() string
Reason function returns reason value.
type Trace ¶
type Trace struct {
// name of trace service
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// endpoint is the endpoint of trace service
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
Trace config.
func (*Trace) Descriptor
deprecated
func (*Trace) GetEndpoint ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) ProtoReflect ¶
func (x *Trace) ProtoReflect() protoreflect.Message
func (*Trace) Validate ¶
Validate checks the field values on 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 (*Trace) ValidateAll ¶
ValidateAll checks the field values on 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 TraceMultiError, or nil if none found.
type TraceMultiError ¶
type TraceMultiError []error
TraceMultiError is an error wrapping multiple validation errors returned by Trace.ValidateAll() if the designated constraints aren't met.
func (TraceMultiError) AllErrors ¶
func (m TraceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TraceMultiError) Error ¶
func (m TraceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TraceValidationError ¶
type TraceValidationError struct {
// contains filtered or unexported fields
}
TraceValidationError is the validation error returned by Trace.Validate if the designated constraints aren't met.
func (TraceValidationError) Cause ¶
func (e TraceValidationError) Cause() error
Cause function returns cause value.
func (TraceValidationError) Error ¶
func (e TraceValidationError) Error() string
Error satisfies the builtin error interface
func (TraceValidationError) ErrorName ¶
func (e TraceValidationError) ErrorName() string
ErrorName returns error name.
func (TraceValidationError) Field ¶
func (e TraceValidationError) Field() string
Field function returns field value.
func (TraceValidationError) Key ¶
func (e TraceValidationError) Key() bool
Key function returns key value.
func (TraceValidationError) Reason ¶
func (e TraceValidationError) Reason() string
Reason function returns reason value.
type WebSocket ¶
type WebSocket struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
// The endpoint that this server advertises to the service registry.
Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
WebSocket defines the configuration for a WebSocket server.
func (*WebSocket) Descriptor
deprecated
func (*WebSocket) GetEndpoint ¶
func (*WebSocket) GetNetwork ¶
func (*WebSocket) GetTimeout ¶
func (x *WebSocket) GetTimeout() *durationpb.Duration
func (*WebSocket) ProtoMessage ¶
func (*WebSocket) ProtoMessage()
func (*WebSocket) ProtoReflect ¶
func (x *WebSocket) ProtoReflect() protoreflect.Message
func (*WebSocket) Validate ¶
Validate checks the field values on WebSocket 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 (*WebSocket) ValidateAll ¶
ValidateAll checks the field values on WebSocket 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 WebSocketMultiError, or nil if none found.
type WebSocketMultiError ¶
type WebSocketMultiError []error
WebSocketMultiError is an error wrapping multiple validation errors returned by WebSocket.ValidateAll() if the designated constraints aren't met.
func (WebSocketMultiError) AllErrors ¶
func (m WebSocketMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WebSocketMultiError) Error ¶
func (m WebSocketMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WebSocketValidationError ¶
type WebSocketValidationError struct {
// contains filtered or unexported fields
}
WebSocketValidationError is the validation error returned by WebSocket.Validate if the designated constraints aren't met.
func (WebSocketValidationError) Cause ¶
func (e WebSocketValidationError) Cause() error
Cause function returns cause value.
func (WebSocketValidationError) Error ¶
func (e WebSocketValidationError) Error() string
Error satisfies the builtin error interface
func (WebSocketValidationError) ErrorName ¶
func (e WebSocketValidationError) ErrorName() string
ErrorName returns error name.
func (WebSocketValidationError) Field ¶
func (e WebSocketValidationError) Field() string
Field function returns field value.
func (WebSocketValidationError) Key ¶
func (e WebSocketValidationError) Key() bool
Key function returns key value.
func (WebSocketValidationError) Reason ¶
func (e WebSocketValidationError) Reason() string
Reason function returns reason value.