config

package
v0.0.0-...-9625d7e Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig initialize configuration

func UpdateConfig

func UpdateConfig(configBytes []byte) bool

UpdateConfig update assist config

Types

type AssistantConfig

type AssistantConfig struct {
	Enable          bool
	Endpoint        string
	EnablePlugin    bool
	ExternalService string
}

AssistantConfig ... CESConfig is the type for heartbeat response

func GetConfig

func GetConfig() *AssistantConfig

GetConfig get wrapper

func ReadConfig

func ReadConfig() (*AssistantConfig, error)

ReadConfig Read the config from conf.json

Jump to

Keyboard shortcuts

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