configs

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: 7 Imported by: 0

Documentation

Index

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetClients

func (x *Bootstrap) GetClients() []string

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 (x *Bootstrap) GetRegistrationDiscoveryName() string

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

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

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

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

Jump to

Keyboard shortcuts

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