configure

package
v0.0.0-...-c8d1825 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigureJson

type ConfigureJson struct {
	GgfService GgfServiceJson `json:"ggf_service"` // ggf name
	NtpServer  common.NTPInfo `json:"ntp_server"`
}

json配置

func (*ConfigureJson) String

func (c *ConfigureJson) String() string

type ConfigureManager

type ConfigureManager struct {
	core.MessageList        // 消息列表
	ConfigureFile    string // 配置文件名字
	// contains filtered or unexported fields
}

本模块是配置管理模块,从配置文件(./config/config.json)中读取配置,并将配置发送出去,如果配置有更新,则同步到配置文件中

配置信息

func (*ConfigureManager) BeginWork

func (c *ConfigureManager) BeginWork()

开始工作

func (*ConfigureManager) Init

func (c *ConfigureManager) Init()

初始化

func (*ConfigureManager) OnForeseeMessage

func (c *ConfigureManager) OnForeseeMessage(msg message.BaseMessage) (done bool)

偷窥消息

func (*ConfigureManager) OnForeseeResponse

func (c *ConfigureManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)

偷窥消息的回应

func (*ConfigureManager) OnProcessMessage

func (c *ConfigureManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)

处理消息

func (*ConfigureManager) OnProcessResponse

func (c *ConfigureManager) OnProcessResponse(rsp message.BaseResponse)

处理消息的回应

func (*ConfigureManager) StopWork

func (c *ConfigureManager) StopWork()

停止工作

func (*ConfigureManager) Uninit

func (c *ConfigureManager) Uninit()

反初始化

type GgfServiceJson

type GgfServiceJson struct {
	HttpPort int32 `json:"http_port"` // http port
}

func (*GgfServiceJson) String

func (h *GgfServiceJson) String() string

Jump to

Keyboard shortcuts

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