configv1

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_runtime_config_v1_client_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_gateway_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_message_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_server_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_storage_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_task_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_tracer_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetHealthCheck

func (x *Backend) GetHealthCheck() *HealthCheck

func (*Backend) GetMetadata

func (x *Backend) GetMetadata() map[string]string

func (*Backend) GetTarget

func (x *Backend) GetTarget() string

func (*Backend) GetTls

func (x *Backend) GetTls() bool

func (*Backend) GetTlsConfigName

func (x *Backend) GetTlsConfigName() string

func (*Backend) GetWeight

func (x *Backend) GetWeight() int64

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

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

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

func (*Backend) Validate

func (m *Backend) Validate() error

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

func (m *Backend) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetCleanupInterval

func (x *Cache) GetCleanupInterval() int64

func (*Cache) GetDriver

func (x *Cache) GetDriver() string

func (*Cache) GetMemcached

func (x *Cache) GetMemcached() *Memcached

func (*Cache) GetMemory

func (x *Cache) GetMemory() *Memory

func (*Cache) GetName

func (x *Cache) GetName() string

func (*Cache) GetRedis

func (x *Cache) GetRedis() *Redis

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

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

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

func (*Cache) Validate

func (m *Cache) Validate() error

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

func (m *Cache) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetEndpoint

func (x *Client) GetEndpoint() string

func (*Client) GetSelector

func (x *Client) GetSelector() *Selector

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) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

func (*Client) Validate

func (m *Client) Validate() error

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

func (m *Client) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetByHeader

func (x *Condition) GetByHeader() *Condition_Header

func (*Condition) GetByStatusCode

func (x *Condition) GetByStatusCode() string

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) Reset

func (x *Condition) Reset()

func (*Condition) String

func (x *Condition) String() string

func (*Condition) Validate

func (m *Condition) Validate() error

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

func (m *Condition) ValidateAll() error

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

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

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

Cause function returns cause value.

func (Condition_HeaderValidationError) Error

Error satisfies the builtin error interface

func (Condition_HeaderValidationError) ErrorName

ErrorName returns error name.

func (Condition_HeaderValidationError) Field

Field function returns field value.

func (Condition_HeaderValidationError) Key

Key function returns key value.

func (Condition_HeaderValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetConnectionMaxIdleTime

func (x *Database) GetConnectionMaxIdleTime() int64

func (*Database) GetConnectionMaxLifetime

func (x *Database) GetConnectionMaxLifetime() int64

func (*Database) GetDebug

func (x *Database) GetDebug() bool

func (*Database) GetDialect

func (x *Database) GetDialect() string

func (*Database) GetEnableMetrics

func (x *Database) GetEnableMetrics() bool

func (*Database) GetEnableTrace

func (x *Database) GetEnableTrace() bool

func (*Database) GetMaxIdleConnections

func (x *Database) GetMaxIdleConnections() int32

func (*Database) GetMaxOpenConnections

func (x *Database) GetMaxOpenConnections() int32

func (*Database) GetMigration

func (x *Database) GetMigration() *Migration

func (*Database) GetSource

func (x *Database) GetSource() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

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

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

func (*Database) Validate

func (m *Database) Validate() error

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

func (m *Database) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetBackends

func (x *Endpoint) GetBackends() []*Backend

func (*Endpoint) GetDescription

func (x *Endpoint) GetDescription() string

func (*Endpoint) GetHost

func (x *Endpoint) GetHost() string

func (*Endpoint) GetMetadata

func (x *Endpoint) GetMetadata() map[string]string

func (*Endpoint) GetMethod

func (x *Endpoint) GetMethod() string

func (*Endpoint) GetMiddlewares

func (x *Endpoint) GetMiddlewares() []*Middleware

func (*Endpoint) GetPath

func (x *Endpoint) GetPath() string

func (*Endpoint) GetProtocol

func (x *Endpoint) GetProtocol() Protocol

func (*Endpoint) GetRetry

func (x *Endpoint) GetRetry() *Retry

func (*Endpoint) GetTimeout

func (x *Endpoint) GetTimeout() int64

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

func (*Endpoint) Validate

func (m *Endpoint) Validate() error

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

func (m *Endpoint) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use FileLocal.ProtoReflect.Descriptor instead.

func (*FileLocal) GetRoot

func (x *FileLocal) GetRoot() string

func (*FileLocal) ProtoMessage

func (*FileLocal) ProtoMessage()

func (*FileLocal) ProtoReflect

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

func (*FileLocal) Reset

func (x *FileLocal) Reset()

func (*FileLocal) String

func (x *FileLocal) String() string

func (*FileLocal) Validate

func (m *FileLocal) Validate() error

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

func (m *FileLocal) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use FileStore.ProtoReflect.Descriptor instead.

func (*FileStore) GetChunkSize

func (x *FileStore) GetChunkSize() int64

func (*FileStore) GetDriver

func (x *FileStore) GetDriver() string

func (*FileStore) GetLocal

func (x *FileStore) GetLocal() *FileLocal

func (*FileStore) GetOss

func (x *FileStore) GetOss() *Oss

func (*FileStore) ProtoMessage

func (*FileStore) ProtoMessage()

func (*FileStore) ProtoReflect

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

func (*FileStore) Reset

func (x *FileStore) Reset()

func (*FileStore) String

func (x *FileStore) String() string

func (*FileStore) Validate

func (m *FileStore) Validate() error

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

func (m *FileStore) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Gateway.ProtoReflect.Descriptor instead.

func (*Gateway) GetEndpoints

func (x *Gateway) GetEndpoints() []*Endpoint

func (*Gateway) GetHosts deprecated

func (x *Gateway) GetHosts() []string

Deprecated: Marked as deprecated in runtime/config/v1/gateway.proto.

func (*Gateway) GetMiddlewares

func (x *Gateway) GetMiddlewares() []*Middleware

func (*Gateway) GetName

func (x *Gateway) GetName() string

func (*Gateway) GetTlsStore

func (x *Gateway) GetTlsStore() map[string]*v1.TLSConfig

func (*Gateway) GetVersion

func (x *Gateway) GetVersion() string

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) ProtoReflect

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

func (*Gateway) Reset

func (x *Gateway) Reset()

func (*Gateway) String

func (x *Gateway) String() string

func (*Gateway) Validate

func (m *Gateway) Validate() error

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

func (m *Gateway) ValidateAll() error

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

Cause function returns cause value.

func (HealthCheckValidationError) Error

Error satisfies the builtin error interface

func (HealthCheckValidationError) ErrorName

func (e HealthCheckValidationError) ErrorName() string

ErrorName returns error name.

func (HealthCheckValidationError) Field

Field function returns field value.

func (HealthCheckValidationError) Key

Key function returns key value.

func (HealthCheckValidationError) Reason

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) Enum

func (HealthCheck_CheckType) EnumDescriptor deprecated

func (HealthCheck_CheckType) EnumDescriptor() ([]byte, []int)

Deprecated: Use HealthCheck_CheckType.Descriptor instead.

func (HealthCheck_CheckType) Number

func (HealthCheck_CheckType) String

func (x HealthCheck_CheckType) String() string

func (HealthCheck_CheckType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Memcached.ProtoReflect.Descriptor instead.

func (*Memcached) GetAddr

func (x *Memcached) GetAddr() string

func (*Memcached) GetMaxIdle

func (x *Memcached) GetMaxIdle() int32

func (*Memcached) GetPassword

func (x *Memcached) GetPassword() string

func (*Memcached) GetTimeout

func (x *Memcached) GetTimeout() int64

func (*Memcached) GetUsername

func (x *Memcached) GetUsername() string

func (*Memcached) ProtoMessage

func (*Memcached) ProtoMessage()

func (*Memcached) ProtoReflect

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

func (*Memcached) Reset

func (x *Memcached) Reset()

func (*Memcached) String

func (x *Memcached) String() string

func (*Memcached) Validate

func (m *Memcached) Validate() error

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

func (m *Memcached) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Memory.ProtoReflect.Descriptor instead.

func (*Memory) GetCapacity

func (x *Memory) GetCapacity() int32

func (*Memory) GetCleanupInterval

func (x *Memory) GetCleanupInterval() int64

func (*Memory) GetExpiration

func (x *Memory) GetExpiration() int64

func (*Memory) GetSize

func (x *Memory) GetSize() int32

func (*Memory) ProtoMessage

func (*Memory) ProtoMessage()

func (*Memory) ProtoReflect

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

func (*Memory) Reset

func (x *Memory) Reset()

func (*Memory) String

func (x *Memory) String() string

func (*Memory) Validate

func (m *Memory) Validate() error

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

func (m *Memory) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

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

func (m *Message) ValidateAll() error

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

Error satisfies the builtin error interface

func (MiddlewareValidationError) ErrorName

func (e MiddlewareValidationError) ErrorName() string

ErrorName returns error name.

func (MiddlewareValidationError) Field

Field function returns field value.

func (MiddlewareValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use Migration.ProtoReflect.Descriptor instead.

func (*Migration) GetEnabled

func (x *Migration) GetEnabled() bool

func (*Migration) GetMode

func (x *Migration) GetMode() string

func (*Migration) GetNames

func (x *Migration) GetNames() []string

func (*Migration) GetPath

func (x *Migration) GetPath() string

func (*Migration) GetVersion

func (x *Migration) GetVersion() string

func (*Migration) ProtoMessage

func (*Migration) ProtoMessage()

func (*Migration) ProtoReflect

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

func (*Migration) Reset

func (x *Migration) Reset()

func (*Migration) String

func (x *Migration) String() string

func (*Migration) Validate

func (m *Migration) Validate() error

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

func (m *Migration) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Mongo.ProtoReflect.Descriptor instead.

func (*Mongo) GetAuthSource

func (x *Mongo) GetAuthSource() bool

func (*Mongo) GetConnectTimeout

func (x *Mongo) GetConnectTimeout() int64

func (*Mongo) GetDatabase

func (x *Mongo) GetDatabase() string

func (*Mongo) GetMaxPoolSize

func (x *Mongo) GetMaxPoolSize() int32

func (*Mongo) GetMinPoolSize

func (x *Mongo) GetMinPoolSize() int32

func (*Mongo) GetPassword

func (x *Mongo) GetPassword() string

func (*Mongo) GetUri

func (x *Mongo) GetUri() string

func (*Mongo) GetUsername

func (x *Mongo) GetUsername() string

func (*Mongo) ProtoMessage

func (*Mongo) ProtoMessage()

func (*Mongo) ProtoReflect

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

func (*Mongo) Reset

func (x *Mongo) Reset()

func (*Mongo) String

func (x *Mongo) String() string

func (*Mongo) Validate

func (m *Mongo) Validate() error

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

func (m *Mongo) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Oss.ProtoReflect.Descriptor instead.

func (*Oss) GetAccessKeyId

func (x *Oss) GetAccessKeyId() string

func (*Oss) GetAccessKeySecret

func (x *Oss) GetAccessKeySecret() string

func (*Oss) GetBucket

func (x *Oss) GetBucket() string

func (*Oss) GetConnectTimeout

func (x *Oss) GetConnectTimeout() int64

func (*Oss) GetEndpoint

func (x *Oss) GetEndpoint() string

func (*Oss) GetReadTimeout

func (x *Oss) GetReadTimeout() int64

func (*Oss) GetRegion

func (x *Oss) GetRegion() string

func (*Oss) GetSsl

func (x *Oss) GetSsl() bool

func (*Oss) ProtoMessage

func (*Oss) ProtoMessage()

func (*Oss) ProtoReflect

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

func (*Oss) Reset

func (x *Oss) Reset()

func (*Oss) String

func (x *Oss) String() string

func (*Oss) Validate

func (m *Oss) Validate() error

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

func (m *Oss) ValidateAll() error

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

Cause function returns cause value.

func (PriorityConfigValidationError) Error

Error satisfies the builtin error interface

func (PriorityConfigValidationError) ErrorName

func (e PriorityConfigValidationError) ErrorName() string

ErrorName returns error name.

func (PriorityConfigValidationError) Field

Field function returns field value.

func (PriorityConfigValidationError) Key

Key function returns key value.

func (PriorityConfigValidationError) Reason

Reason function returns reason value.

type Protocol

type Protocol int32
const (
	Protocol_PROTOCOL_UNSPECIFIED Protocol = 0
	Protocol_PROTOCOL_HTTP        Protocol = 1
	Protocol_PROTOCOL_GRPC        Protocol = 2
	Protocol_PROTOCOL_CUSTOM      Protocol = 3
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetAddr

func (x *Redis) GetAddr() string

func (*Redis) GetDb

func (x *Redis) GetDb() int32

func (*Redis) GetDialTimeout

func (x *Redis) GetDialTimeout() int64

func (*Redis) GetNetwork

func (x *Redis) GetNetwork() string

func (*Redis) GetPassword

func (x *Redis) GetPassword() string

func (*Redis) GetReadTimeout

func (x *Redis) GetReadTimeout() int64

func (*Redis) GetWriteTimeout

func (x *Redis) GetWriteTimeout() int64

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

func (*Redis) Validate

func (m *Redis) Validate() error

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

func (m *Redis) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Retry.ProtoReflect.Descriptor instead.

func (*Retry) GetAttempts

func (x *Retry) GetAttempts() uint32

func (*Retry) GetConditions

func (x *Retry) GetConditions() []*Condition

func (*Retry) GetPerTryTimeout

func (x *Retry) GetPerTryTimeout() int64

func (*Retry) GetPriorities

func (x *Retry) GetPriorities() []string

func (*Retry) ProtoMessage

func (*Retry) ProtoMessage()

func (*Retry) ProtoReflect

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

func (*Retry) Reset

func (x *Retry) Reset()

func (*Retry) String

func (x *Retry) String() string

func (*Retry) Validate

func (m *Retry) Validate() error

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

func (m *Retry) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Selector.ProtoReflect.Descriptor instead.

func (*Selector) GetVersion

func (x *Selector) GetVersion() string

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) ProtoReflect

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

func (*Selector) Reset

func (x *Selector) Reset()

func (*Selector) String

func (x *Selector) String() string

func (*Selector) Validate

func (m *Selector) Validate() error

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

func (m *Selector) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

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) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

func (*Server) Validate

func (m *Server) Validate() error

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

func (m *Server) ValidateAll() error

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

Cause function returns cause value.

func (Server_GRPCValidationError) Error

Error satisfies the builtin error interface

func (Server_GRPCValidationError) ErrorName

func (e Server_GRPCValidationError) ErrorName() string

ErrorName returns error name.

func (Server_GRPCValidationError) Field

Field function returns field value.

func (Server_GRPCValidationError) Key

Key function returns key value.

func (Server_GRPCValidationError) Reason

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

Cause function returns cause value.

func (Server_HTTPValidationError) Error

Error satisfies the builtin error interface

func (Server_HTTPValidationError) ErrorName

func (e Server_HTTPValidationError) ErrorName() string

ErrorName returns error name.

func (Server_HTTPValidationError) Field

Field function returns field value.

func (Server_HTTPValidationError) Key

Key function returns key value.

func (Server_HTTPValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Storage.ProtoReflect.Descriptor instead.

func (*Storage) GetCaches

func (x *Storage) GetCaches() map[string]*Cache

func (*Storage) GetDatabases

func (x *Storage) GetDatabases() map[string]*Database

func (*Storage) GetDefaultCache

func (x *Storage) GetDefaultCache() string

func (*Storage) GetDefaultDatabase

func (x *Storage) GetDefaultDatabase() string

func (*Storage) GetDefaultFilestore

func (x *Storage) GetDefaultFilestore() string

func (*Storage) GetFilestores

func (x *Storage) GetFilestores() map[string]*FileStore

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) ProtoReflect

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

func (*Storage) Reset

func (x *Storage) Reset()

func (*Storage) String

func (x *Storage) String() string

func (*Storage) Validate

func (m *Storage) Validate() error

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

func (m *Storage) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) Validate

func (m *Task) Validate() error

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

func (m *Task) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetEndpoint

func (x *Trace) GetEndpoint() string

func (*Trace) GetName

func (x *Trace) GetName() string

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

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

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

func (*Trace) Validate

func (m *Trace) Validate() error

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

func (m *Trace) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use WebSocket.ProtoReflect.Descriptor instead.

func (*WebSocket) GetAddr

func (x *WebSocket) GetAddr() string

func (*WebSocket) GetEndpoint

func (x *WebSocket) GetEndpoint() string

func (*WebSocket) GetNetwork

func (x *WebSocket) GetNetwork() string

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) Reset

func (x *WebSocket) Reset()

func (*WebSocket) String

func (x *WebSocket) String() string

func (*WebSocket) Validate

func (m *WebSocket) Validate() error

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

func (m *WebSocket) ValidateAll() error

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

Key function returns key value.

func (WebSocketValidationError) Reason

func (e WebSocketValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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