Documentation
¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetEndpoints() map[string]*EndpointConfig
- func (x *Bootstrap) GetLogger() *v11.Logger
- func (x *Bootstrap) GetRegistries() *RegistriesConfig
- func (x *Bootstrap) GetServers() []*v1.Server
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type EndpointConfig
- func (*EndpointConfig) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointConfig) GetDiscoveryName() string
- func (x *EndpointConfig) GetSelector() *EndpointConfig_Selector
- func (x *EndpointConfig) GetTransport() *v1.Client
- func (x *EndpointConfig) GetUri() string
- func (*EndpointConfig) ProtoMessage()
- func (x *EndpointConfig) ProtoReflect() protoreflect.Message
- func (x *EndpointConfig) Reset()
- func (x *EndpointConfig) String() 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
- type RegistriesConfig
- func (*RegistriesConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RegistriesConfig) GetDiscoveries() map[string]*v12.Discovery
- func (*RegistriesConfig) ProtoMessage()
- func (x *RegistriesConfig) ProtoReflect() protoreflect.Message
- func (x *RegistriesConfig) Reset()
- func (x *RegistriesConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_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.
Registries *RegistriesConfig `protobuf:"bytes,4,opt,name=registries,proto3" json:"registries,omitempty"`
// 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) GetEndpoints ¶
func (x *Bootstrap) GetEndpoints() map[string]*EndpointConfig
func (*Bootstrap) GetRegistries ¶
func (x *Bootstrap) GetRegistries() *RegistriesConfig
func (*Bootstrap) GetServers ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
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.
Transport *v1.Client `protobuf:"bytes,4,opt,name=transport,proto3" json:"transport,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) GetDiscoveryName ¶
func (x *EndpointConfig) GetDiscoveryName() string
func (*EndpointConfig) GetSelector ¶
func (x *EndpointConfig) GetSelector() *EndpointConfig_Selector
func (*EndpointConfig) GetTransport ¶
func (x *EndpointConfig) GetTransport() *v1.Client
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
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
type RegistriesConfig ¶
type RegistriesConfig struct {
Discoveries map[string]*v12.Discovery `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
RegistriesConfig holds the definitions of available discovery service providers.
func (*RegistriesConfig) Descriptor
deprecated
func (*RegistriesConfig) Descriptor() ([]byte, []int)
Deprecated: Use RegistriesConfig.ProtoReflect.Descriptor instead.
func (*RegistriesConfig) GetDiscoveries ¶
func (x *RegistriesConfig) GetDiscoveries() map[string]*v12.Discovery
func (*RegistriesConfig) ProtoMessage ¶
func (*RegistriesConfig) ProtoMessage()
func (*RegistriesConfig) ProtoReflect ¶
func (x *RegistriesConfig) ProtoReflect() protoreflect.Message
func (*RegistriesConfig) Reset ¶
func (x *RegistriesConfig) Reset()
func (*RegistriesConfig) String ¶
func (x *RegistriesConfig) String() string
Click to show internal directories.
Click to hide internal directories.