etcdconfig

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROOT            = "/"
	SERVICE         = "service"
	DEFALUT_CLUSTER = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceVersion string `json:"service_version"`
	ServicePort    string `json:"service_port"`
}

type ServiceConfig

type ServiceConfig struct {
	ServiceLB *slb.ServiceLB
	Config
}

func NewServiceConfig

func NewServiceConfig(slb *slb.ServiceLB) *ServiceConfig

func (*ServiceConfig) GetConfig

func (s *ServiceConfig) GetConfig() (*Config, error)

func (*ServiceConfig) GetConfigs

func (s *ServiceConfig) GetConfigs() (map[string]*Config, error)

func (*ServiceConfig) GetKeyName

func (s *ServiceConfig) GetKeyName(serverName string) string

func (*ServiceConfig) WriteConfig

func (s *ServiceConfig) WriteConfig(c Config) error

Jump to

Keyboard shortcuts

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