Documentation
¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetDiscoveries() map[string]*v12.Discovery
- func (x *Bootstrap) GetEndpoints() map[string]*EndpointConfig
- func (x *Bootstrap) GetLogger() *v11.Logger
- func (x *Bootstrap) GetServers() []*v1.Server
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- func (m *Bootstrap) Validate() error
- func (m *Bootstrap) ValidateAll() error
- type BootstrapMultiError
- type BootstrapValidationError
- type EndpointConfig
- func (*EndpointConfig) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointConfig) GetClient() *v1.Client
- func (x *EndpointConfig) GetDiscoveryName() string
- func (x *EndpointConfig) GetSelector() *EndpointConfig_Selector
- func (x *EndpointConfig) GetUri() string
- func (*EndpointConfig) ProtoMessage()
- func (x *EndpointConfig) ProtoReflect() protoreflect.Message
- func (x *EndpointConfig) Reset()
- func (x *EndpointConfig) String() string
- func (m *EndpointConfig) Validate() error
- func (m *EndpointConfig) ValidateAll() error
- type EndpointConfigMultiError
- type EndpointConfigValidationError
- func (e EndpointConfigValidationError) Cause() error
- func (e EndpointConfigValidationError) Error() string
- func (e EndpointConfigValidationError) ErrorName() string
- func (e EndpointConfigValidationError) Field() string
- func (e EndpointConfigValidationError) Key() bool
- func (e EndpointConfigValidationError) Reason() string
- type EndpointConfig_Selector
- func (*EndpointConfig_Selector) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointConfig_Selector) GetType() string
- func (x *EndpointConfig_Selector) GetVersion() string
- func (*EndpointConfig_Selector) ProtoMessage()
- func (x *EndpointConfig_Selector) ProtoReflect() protoreflect.Message
- func (x *EndpointConfig_Selector) Reset()
- func (x *EndpointConfig_Selector) String() string
- func (m *EndpointConfig_Selector) Validate() error
- func (m *EndpointConfig_Selector) ValidateAll() error
- type EndpointConfig_SelectorMultiError
- type EndpointConfig_SelectorValidationError
- func (e EndpointConfig_SelectorValidationError) Cause() error
- func (e EndpointConfig_SelectorValidationError) Error() string
- func (e EndpointConfig_SelectorValidationError) ErrorName() string
- func (e EndpointConfig_SelectorValidationError) Field() string
- func (e EndpointConfig_SelectorValidationError) Key() bool
- func (e EndpointConfig_SelectorValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_examples_protos_load_with_runtime_bootstrap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// Server configurations (e.g., HTTP, gRPC servers)
Servers []*v1.Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
// Endpoints defines the configuration for all downstream services.
// The key of the map is the logical name of the endpoint (e.g., "user-service").
Endpoints map[string]*EndpointConfig `` /* 145-byte string literal not displayed */
// Logging configuration
Logger *v11.Logger `protobuf:"bytes,3,opt,name=logger,proto3" json:"logger,omitempty"`
// RegistriesConfig holds the definitions of available discovery service providers.
Discoveries map[string]*v12.Discovery `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
Bootstrap is the user-facing configuration structure. It uses references (like discovery_name) to link configurations.
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetDiscoveries ¶ added in v0.2.7
func (*Bootstrap) GetEndpoints ¶
func (x *Bootstrap) GetEndpoints() map[string]*EndpointConfig
func (*Bootstrap) GetServers ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
func (*Bootstrap) Validate ¶ added in v0.2.7
Validate checks the field values on Bootstrap 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 (*Bootstrap) ValidateAll ¶ added in v0.2.7
ValidateAll checks the field values on Bootstrap 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 BootstrapMultiError, or nil if none found.
type BootstrapMultiError ¶ added in v0.2.7
type BootstrapMultiError []error
BootstrapMultiError is an error wrapping multiple validation errors returned by Bootstrap.ValidateAll() if the designated constraints aren't met.
func (BootstrapMultiError) AllErrors ¶ added in v0.2.7
func (m BootstrapMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BootstrapMultiError) Error ¶ added in v0.2.7
func (m BootstrapMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BootstrapValidationError ¶ added in v0.2.7
type BootstrapValidationError struct {
// contains filtered or unexported fields
}
BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.
func (BootstrapValidationError) Cause ¶ added in v0.2.7
func (e BootstrapValidationError) Cause() error
Cause function returns cause value.
func (BootstrapValidationError) Error ¶ added in v0.2.7
func (e BootstrapValidationError) Error() string
Error satisfies the builtin error interface
func (BootstrapValidationError) ErrorName ¶ added in v0.2.7
func (e BootstrapValidationError) ErrorName() string
ErrorName returns error name.
func (BootstrapValidationError) Field ¶ added in v0.2.7
func (e BootstrapValidationError) Field() string
Field function returns field value.
func (BootstrapValidationError) Key ¶ added in v0.2.7
func (e BootstrapValidationError) Key() bool
Key function returns key value.
func (BootstrapValidationError) Reason ¶ added in v0.2.7
func (e BootstrapValidationError) Reason() string
Reason function returns reason value.
type EndpointConfig ¶
type EndpointConfig struct {
// The name of the discovery provider configuration (from registries.discoveries) to use.
DiscoveryName string `protobuf:"bytes,1,opt,name=discovery_name,proto3" json:"discovery_name,omitempty"`
// The endpoint URI to connect to, e.g., "discovery:///user-service".
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Selector for client-side load balancing and node filtering.
Selector *EndpointConfig_Selector `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"`
// Transport configuration for this client.
Client *v1.Client `protobuf:"bytes,4,opt,name=client,proto3" json:"client,omitempty"`
// contains filtered or unexported fields
}
EndpointConfig represents the user-facing configuration for an endpoint. It uses a string reference (`discovery_name`) to link to a discovery provider.
func (*EndpointConfig) Descriptor
deprecated
func (*EndpointConfig) Descriptor() ([]byte, []int)
Deprecated: Use EndpointConfig.ProtoReflect.Descriptor instead.
func (*EndpointConfig) GetClient ¶ added in v0.2.7
func (x *EndpointConfig) GetClient() *v1.Client
func (*EndpointConfig) GetDiscoveryName ¶
func (x *EndpointConfig) GetDiscoveryName() string
func (*EndpointConfig) GetSelector ¶
func (x *EndpointConfig) GetSelector() *EndpointConfig_Selector
func (*EndpointConfig) GetUri ¶
func (x *EndpointConfig) GetUri() string
func (*EndpointConfig) ProtoMessage ¶
func (*EndpointConfig) ProtoMessage()
func (*EndpointConfig) ProtoReflect ¶
func (x *EndpointConfig) ProtoReflect() protoreflect.Message
func (*EndpointConfig) Reset ¶
func (x *EndpointConfig) Reset()
func (*EndpointConfig) String ¶
func (x *EndpointConfig) String() string
func (*EndpointConfig) Validate ¶ added in v0.2.7
func (m *EndpointConfig) Validate() error
Validate checks the field values on EndpointConfig 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 (*EndpointConfig) ValidateAll ¶ added in v0.2.7
func (m *EndpointConfig) ValidateAll() error
ValidateAll checks the field values on EndpointConfig 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 EndpointConfigMultiError, or nil if none found.
type EndpointConfigMultiError ¶ added in v0.2.7
type EndpointConfigMultiError []error
EndpointConfigMultiError is an error wrapping multiple validation errors returned by EndpointConfig.ValidateAll() if the designated constraints aren't met.
func (EndpointConfigMultiError) AllErrors ¶ added in v0.2.7
func (m EndpointConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EndpointConfigMultiError) Error ¶ added in v0.2.7
func (m EndpointConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EndpointConfigValidationError ¶ added in v0.2.7
type EndpointConfigValidationError struct {
// contains filtered or unexported fields
}
EndpointConfigValidationError is the validation error returned by EndpointConfig.Validate if the designated constraints aren't met.
func (EndpointConfigValidationError) Cause ¶ added in v0.2.7
func (e EndpointConfigValidationError) Cause() error
Cause function returns cause value.
func (EndpointConfigValidationError) Error ¶ added in v0.2.7
func (e EndpointConfigValidationError) Error() string
Error satisfies the builtin error interface
func (EndpointConfigValidationError) ErrorName ¶ added in v0.2.7
func (e EndpointConfigValidationError) ErrorName() string
ErrorName returns error name.
func (EndpointConfigValidationError) Field ¶ added in v0.2.7
func (e EndpointConfigValidationError) Field() string
Field function returns field value.
func (EndpointConfigValidationError) Key ¶ added in v0.2.7
func (e EndpointConfigValidationError) Key() bool
Key function returns key value.
func (EndpointConfigValidationError) Reason ¶ added in v0.2.7
func (e EndpointConfigValidationError) Reason() string
Reason function returns reason value.
type EndpointConfig_Selector ¶
type EndpointConfig_Selector struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
We need to define Selector here as it was in the old client.proto/endpoint.proto
func (*EndpointConfig_Selector) Descriptor
deprecated
func (*EndpointConfig_Selector) Descriptor() ([]byte, []int)
Deprecated: Use EndpointConfig_Selector.ProtoReflect.Descriptor instead.
func (*EndpointConfig_Selector) GetType ¶
func (x *EndpointConfig_Selector) GetType() string
func (*EndpointConfig_Selector) GetVersion ¶
func (x *EndpointConfig_Selector) GetVersion() string
func (*EndpointConfig_Selector) ProtoMessage ¶
func (*EndpointConfig_Selector) ProtoMessage()
func (*EndpointConfig_Selector) ProtoReflect ¶
func (x *EndpointConfig_Selector) ProtoReflect() protoreflect.Message
func (*EndpointConfig_Selector) Reset ¶
func (x *EndpointConfig_Selector) Reset()
func (*EndpointConfig_Selector) String ¶
func (x *EndpointConfig_Selector) String() string
func (*EndpointConfig_Selector) Validate ¶ added in v0.2.7
func (m *EndpointConfig_Selector) Validate() error
Validate checks the field values on EndpointConfig_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 (*EndpointConfig_Selector) ValidateAll ¶ added in v0.2.7
func (m *EndpointConfig_Selector) ValidateAll() error
ValidateAll checks the field values on EndpointConfig_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 EndpointConfig_SelectorMultiError, or nil if none found.
type EndpointConfig_SelectorMultiError ¶ added in v0.2.7
type EndpointConfig_SelectorMultiError []error
EndpointConfig_SelectorMultiError is an error wrapping multiple validation errors returned by EndpointConfig_Selector.ValidateAll() if the designated constraints aren't met.
func (EndpointConfig_SelectorMultiError) AllErrors ¶ added in v0.2.7
func (m EndpointConfig_SelectorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EndpointConfig_SelectorMultiError) Error ¶ added in v0.2.7
func (m EndpointConfig_SelectorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EndpointConfig_SelectorValidationError ¶ added in v0.2.7
type EndpointConfig_SelectorValidationError struct {
// contains filtered or unexported fields
}
EndpointConfig_SelectorValidationError is the validation error returned by EndpointConfig_Selector.Validate if the designated constraints aren't met.
func (EndpointConfig_SelectorValidationError) Cause ¶ added in v0.2.7
func (e EndpointConfig_SelectorValidationError) Cause() error
Cause function returns cause value.
func (EndpointConfig_SelectorValidationError) Error ¶ added in v0.2.7
func (e EndpointConfig_SelectorValidationError) Error() string
Error satisfies the builtin error interface
func (EndpointConfig_SelectorValidationError) ErrorName ¶ added in v0.2.7
func (e EndpointConfig_SelectorValidationError) ErrorName() string
ErrorName returns error name.
func (EndpointConfig_SelectorValidationError) Field ¶ added in v0.2.7
func (e EndpointConfig_SelectorValidationError) Field() string
Field function returns field value.
func (EndpointConfig_SelectorValidationError) Key ¶ added in v0.2.7
func (e EndpointConfig_SelectorValidationError) Key() bool
Key function returns key value.
func (EndpointConfig_SelectorValidationError) Reason ¶ added in v0.2.7
func (e EndpointConfig_SelectorValidationError) Reason() string
Reason function returns reason value.