Documentation
¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetClients() []string
- func (x *Bootstrap) GetDiscoveries() []*DiscoveryConfig
- func (x *Bootstrap) GetGrpcServers() []*v11.GrpcServerConfig
- func (x *Bootstrap) GetHttpServers() []*v11.HttpServerConfig
- func (x *Bootstrap) GetRegistrationDiscoveryName() string
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type DiscoveryConfig
- func (*DiscoveryConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DiscoveryConfig) GetConfig() *v1.Discovery
- func (x *DiscoveryConfig) GetName() string
- func (*DiscoveryConfig) ProtoMessage()
- func (x *DiscoveryConfig) ProtoReflect() protoreflect.Message
- func (x *DiscoveryConfig) Reset()
- func (x *DiscoveryConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_bootstrap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// 1. Define a "pool" of service discovery configurations.
Discoveries []*DiscoveryConfig `protobuf:"bytes,1,rep,name=discoveries,proto3" json:"discoveries,omitempty"`
// 2. Specify which configuration the current service should use to **register itself**.
RegistrationDiscoveryName string `` /* 138-byte string literal not displayed */
// 3. Define the list of service endpoints that the current service will expose.
GrpcServers []*v11.GrpcServerConfig `protobuf:"bytes,3,rep,name=grpc_servers,json=grpcServers,proto3" json:"grpc_servers,omitempty"`
HttpServers []*v11.HttpServerConfig `protobuf:"bytes,4,rep,name=http_servers,json=httpServers,proto3" json:"http_servers,omitempty"`
// 4. Define the list of downstream clients that the current service will connect to.
Clients []string `protobuf:"bytes,5,rep,name=clients,proto3" json:"clients,omitempty"`
// contains filtered or unexported fields
}
Bootstrap is the top-level configuration structure for our test application.
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetClients ¶
func (*Bootstrap) GetDiscoveries ¶
func (x *Bootstrap) GetDiscoveries() []*DiscoveryConfig
func (*Bootstrap) GetGrpcServers ¶
func (x *Bootstrap) GetGrpcServers() []*v11.GrpcServerConfig
func (*Bootstrap) GetHttpServers ¶
func (x *Bootstrap) GetHttpServers() []*v11.HttpServerConfig
func (*Bootstrap) GetRegistrationDiscoveryName ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type DiscoveryConfig ¶
type DiscoveryConfig struct {
// Unique name for this discovery configuration, e.g., "internal-consul", "legacy-etcd"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Specific service discovery configuration
Config *v1.Discovery `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
DiscoveryConfig binds a service discovery configuration with a unique name.
func (*DiscoveryConfig) Descriptor
deprecated
func (*DiscoveryConfig) Descriptor() ([]byte, []int)
Deprecated: Use DiscoveryConfig.ProtoReflect.Descriptor instead.
func (*DiscoveryConfig) GetConfig ¶
func (x *DiscoveryConfig) GetConfig() *v1.Discovery
func (*DiscoveryConfig) GetName ¶
func (x *DiscoveryConfig) GetName() string
func (*DiscoveryConfig) ProtoMessage ¶
func (*DiscoveryConfig) ProtoMessage()
func (*DiscoveryConfig) ProtoReflect ¶
func (x *DiscoveryConfig) ProtoReflect() protoreflect.Message
func (*DiscoveryConfig) Reset ¶
func (x *DiscoveryConfig) Reset()
func (*DiscoveryConfig) String ¶
func (x *DiscoveryConfig) String() string
Click to show internal directories.
Click to hide internal directories.