Documentation ¶
Index ¶
- Constants
- Variables
- func HbsInfo() string
- func InitAll()
- func InitClusterNode()
- func InitConfig()
- func InitLog()
- func InitRuntime()
- func MemMonitor()
- func ReloadConfig() error
- func Shutdown(ctx context.Context) error
- func Validator() error
- func VersionInfo() string
- type ClusterNode
- type GlobalConfig
- type GraphConfig
- type HttpConfig
- type JudgeConfig
- type LogConfig
- type RpcConfig
- type TsDBConfig
Constants ¶
View Source
const ( GAUGE = "GAUGE" COUNTER = "COUNTER" DERIVE = "DERIVE" )
Variables ¶
View Source
var ( Version string = "v0.1" BinaryName string = "ops-transfer.dev" )
View Source
var (
ConfigFile string
)
View Source
var (
GraphCluster map[string]*ClusterNode
)
Functions ¶
func InitConfig ¶
func InitConfig()
func InitRuntime ¶
func InitRuntime()
func MemMonitor ¶
func MemMonitor()
func ReloadConfig ¶
func ReloadConfig() error
func VersionInfo ¶
func VersionInfo() string
Types ¶
type ClusterNode ¶
type ClusterNode struct {
Addrs []string `json:"addrs"`
}
func NewClusterNode ¶
func NewClusterNode(addrs []string) *ClusterNode
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` MinStep int `json:"min_step"` Log *LogConfig `json:"log"` Judge *JudgeConfig `json:"judge"` Graph *GraphConfig `json:"graph"` TsDB *TsDBConfig `json:"tsdb"` Rpc *RpcConfig `json:"rpc"` Http *HttpConfig `json:"http"` MaxCPURate float64 `json:"max_cpu_rate"` MaxMemRate float64 `json:"max_mem_rate"` }
func Conf ¶
func Conf() *GlobalConfig
type GraphConfig ¶
type HttpConfig ¶
type JudgeConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.