nfapollo

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

nfapollo

license

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apollo

type Apollo struct {
	// contains filtered or unexported fields
}

Apollo -

func MustNewApollo

func MustNewApollo(confFile string) *Apollo

MustNewApollo -

func NewApollo

func NewApollo(confFile string) (*Apollo, error)

NewApollo -

func (*Apollo) MustNewConfig

func (a *Apollo) MustNewConfig() *nconf.Config

MustNewConfig -

func (*Apollo) MustNewConfigCustom

func (a *Apollo) MustNewConfigCustom(customConfig interface{ SetConfig(config *nconf.Config) }) *nconf.Config

MustNewConfigCustom -

func (*Apollo) OnUpdate

func (a *Apollo) OnUpdate(handler func(newContent, oldContent string))

OnUpdate -

type Conf

type Conf struct {
	AppID              string `yaml:"appID"`
	Namespace          string `yaml:"namespace"`
	Cluster            string `yaml:"cluster"`
	CacheDir           string `yaml:"cacheDir"`
	MetaAddr           string `yaml:"metaAddr"`
	AccessKeySecret    string `yaml:"accessKeySecret"`
	InsecureSkipVerify bool   `yaml:"insecureSkipVerify"`
}

Conf -

Jump to

Keyboard shortcuts

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