drive

package
v0.0.0-...-ca42a2b Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitNodeConf

func InitNodeConf()

初始化配置

func SetKeyToJson

func SetKeyToJson(config []Configuration) map[string]interface{}

func WatchConfigurationReleaseToSync

func WatchConfigurationReleaseToSync()

监听配置发布,同步操作

func WatchNode

func WatchNode()

监听节点配置修改(中心管理后台中的,节点管理)

func WatchNodeConf

func WatchNodeConf()

监听节点配置修改(中心管理后台,节点配置)

Types

type Configuration

type Configuration struct {
	Key string
	Val string
}

type SortConfig

type SortConfig []Configuration

func (SortConfig) Len

func (a SortConfig) Len() int

重写 Len() 方法

func (SortConfig) Less

func (a SortConfig) Less(i, j int) bool

重写 Less() 方法, 指定排序规则

func (SortConfig) Swap

func (a SortConfig) Swap(i, j int)

重写 Swap() 方法

Jump to

Keyboard shortcuts

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