Documentation ¶
Index ¶
- Variables
- func ChkLicense(cipher string) (lic *model.License, ok bool, msg string)
- func ClientCount(app string) (count int64, err error)
- func DefaultConf()
- func DelClient(key string, leaseId int64) (err error)
- func DelConfig(key string) (err error)
- func DelLicense() (err error)
- func GenClearLicense() (text string, err error)
- func GetAllClient(app string) (all map[string]string, err error)
- func GetAllConfig() (infos map[string]string, err error)
- func GetAllNodes() (nodes map[string]*node.Node)
- func GetClearLicense() (info string, err error)
- func GetClient(key string) (cli *model.Cli, ok bool)
- func GetConfig(key string) (val string, err error)
- func GetLicense() (cipher string, err error)
- func GetSerialNum() (info string, err error)
- func InitEmbed() (err error)
- func InitStore(ip, port, user, pwd string, timeout time.Duration) (err error)
- func KeepAliveClient(key string, leaseId int64) (err error)
- func LoadLic() *model.License
- func MemberConf()
- func PutClearLicense(info string) (err error)
- func PutClient(key string, cli *model.Cli) (lease int64, err error)
- func PutConfig(key, info string) (err error)
- func PutLicense(val string) (err error)
- func PutSerialNum(val string) (err error)
- func ResetLicense() (err error)
- func ResetSerialNum() (code string, err error)
- func StoreLic(lic *model.License)
- func Str2lic(text string) (lic *model.License, err error)
- func WatchLicense()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ChkLicense ¶
检查授权码是否合法
func DefaultConf ¶
func DefaultConf()
func GetAllNodes ¶
func ResetSerialNum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.