apollo

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package apollo

Package apollo

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
}

func New

func New(apolloConfig *Config) (*Apollo, error)

func (*Apollo) AllSettings

func (a *Apollo) AllSettings() map[string]interface{}

func (*Apollo) ReadConfig

func (a *Apollo) ReadConfig(result interface{}) error

func (*Apollo) Stop

func (a *Apollo) Stop() error

func (*Apollo) WatchConfig

func (a *Apollo) WatchConfig() <-chan bool

type Config

type Config struct {
	Debug      bool   `json:"debug" mapstructure:"debug" yaml:"debug"`
	Provider   string `json:"provider" mapstructure:"provider" yaml:"provider"`
	AppID      string `json:"app_id" mapstructure:"app_id" yaml:"app_id"`
	Endpoint   string `json:"endpoint" mapstructure:"endpoint" yaml:"endpoint"`
	Cluster    string `json:"cluster" mapstructure:"cluster" yaml:"cluster"`
	Namespace  string `json:"namespace" mapstructure:"namespace" yaml:"namespace"`
	ConfigType string `json:"config_type" mapstructure:"config_type" yaml:"config_type"`
	Secret     string `json:"secret" mapstructure:"secret" yaml:"secret"`
	ReleaseKey string `json:"release_key" mapstructure:"release_key" yaml:"release_key"`
	Label      string `json:"label" mapstructure:"label" yaml:"label"`
}

Jump to

Keyboard shortcuts

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