NtpModule

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNtpServer

func StartNtpServer(port int)

启动ntp服务

Types

type NtpManager

type NtpManager struct {
	core.MessageList // 消息列表
	common.NTPInfo
	// contains filtered or unexported fields
}

func (*NtpManager) BeginWork

func (n *NtpManager) BeginWork()

开始工作

func (*NtpManager) Init

func (n *NtpManager) Init()

初始化

func (*NtpManager) OnForeseeMessage

func (n *NtpManager) OnForeseeMessage(msg message.BaseMessage) (done bool)

偷窥消息

func (*NtpManager) OnForeseeResponse

func (n *NtpManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)

偷窥消息的回应

func (*NtpManager) OnProcessMessage

func (n *NtpManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)

处理消息

func (*NtpManager) OnProcessResponse

func (n *NtpManager) OnProcessResponse(rsp message.BaseResponse)

处理消息的回应

func (*NtpManager) StopWork

func (n *NtpManager) StopWork()

停止工作

func (*NtpManager) Uninit

func (n *NtpManager) Uninit()

反初始化

Jump to

Keyboard shortcuts

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