config_agent

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultHost           = "service-configurations.profzone.service.profzone.net"
	DefaultMode           = "http"
	DefaultPort           = 80
	DefaultRequestTimeout = 5
	DefaultPullInterval   = 60
	DefaultStackName      = "profzone"
	DefaultServiceName    = "service-configurations"
	DefaultStoragePath    = "./config/raw_config"

	DiffConfigTopic = "diff-config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Host               string `conf:"env"`
	Mode               string `conf:"env"`
	Port               int    `conf:"env"`
	Timeout            int64  `conf:"env"`
	PullConfigInterval int64  `conf:"env"`
	StackID            uint64 `conf:"env"`
	StoragePath        string `conf:"env"`
	// contains filtered or unexported fields
}

func (*Agent) BindBus

func (a *Agent) BindBus(bus *bus.MessageBus)

func (*Agent) BindConf

func (a *Agent) BindConf(conf interface{})

func (Agent) DockerDefaults

func (a Agent) DockerDefaults() conf.DockerDefaults

func (*Agent) Init

func (a *Agent) Init()

func (*Agent) MarshalDefaults

func (a *Agent) MarshalDefaults(v interface{})

func (*Agent) Start

func (a *Agent) Start()

type DiffConfig

type DiffConfig struct {
	Key   string
	Value string
	Tag   bool
}

type RawConfig

type RawConfig struct {
	presets.PrimaryID
	// 业务ID
	ConfigurationID uint64 `json:"configurationID,string"`
	// StackID
	StackID uint64 `json:"stackID,string"`
	// Key
	Key string `json:"key"`
	// Value
	Value string `json:"value"`

	presets.OperateTime
	presets.SoftDelete
}

Jump to

Keyboard shortcuts

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