registeyconfig

package module
v0.0.0-...-efc0651 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryConfig

type RegistryConfig struct {
	Params   map[string]string            `yaml:"params"`   //配置参数
	Services map[string]*registry.Service `yaml:"services"` //服务列表
}

func NewRegistryConfig

func NewRegistryConfig() *RegistryConfig

func (*RegistryConfig) AddService

func (rc *RegistryConfig) AddService(serviceName string, s *registry.Service) error

func (*RegistryConfig) DelService

func (rc *RegistryConfig) DelService(serviceName string, s *registry.Service) error

func (*RegistryConfig) GetParam

func (rc *RegistryConfig) GetParam(key string) (string, bool)

func (*RegistryConfig) GetService

func (rc *RegistryConfig) GetService(serviceName string) (*registry.Service, bool)

func (*RegistryConfig) Load

func (rc *RegistryConfig) Load(fileName string) error

func (*RegistryConfig) LoadData

func (rc *RegistryConfig) LoadData(data []byte) error

func (*RegistryConfig) SetParam

func (rc *RegistryConfig) SetParam(key string, value string) error

func (*RegistryConfig) Write

func (rc *RegistryConfig) Write(fileName string) error

Jump to

Keyboard shortcuts

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