Documentation ¶
Index ¶
- func APINodeServicesRegister(node *APINode, server *grpc.Server)
- type APINode
- type IPLibraryUpdater
- func (this *IPLibraryUpdater) DataDir() string
- func (this *IPLibraryUpdater) DownloadFile(fileId int64, writer io.Writer) error
- func (this *IPLibraryUpdater) FindLatestFile() (code string, fileId int64, err error)
- func (this *IPLibraryUpdater) LogError(err error)
- func (this *IPLibraryUpdater) LogInfo(message string)
- type NodeStatusExecutor
- type RestServer
- type StartIssue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APINodeServicesRegister ¶
Types ¶
type APINode ¶
type APINode struct {
// contains filtered or unexported fields
}
func NewAPINode ¶
func NewAPINode() *APINode
func (*APINode) InstallSystemService ¶
InstallSystemService 安装系统服务
type IPLibraryUpdater ¶ added in v0.5.2
type IPLibraryUpdater struct { }
func NewIPLibraryUpdater ¶ added in v0.5.2
func NewIPLibraryUpdater() *IPLibraryUpdater
func (*IPLibraryUpdater) DataDir ¶ added in v0.5.2
func (this *IPLibraryUpdater) DataDir() string
DataDir 文件目录
func (*IPLibraryUpdater) DownloadFile ¶ added in v0.5.2
func (this *IPLibraryUpdater) DownloadFile(fileId int64, writer io.Writer) error
DownloadFile 下载文件
func (*IPLibraryUpdater) FindLatestFile ¶ added in v0.5.2
func (this *IPLibraryUpdater) FindLatestFile() (code string, fileId int64, err error)
FindLatestFile 检查最新的IP库文件
func (*IPLibraryUpdater) LogError ¶ added in v0.5.2
func (this *IPLibraryUpdater) LogError(err error)
LogError 错误日志
func (*IPLibraryUpdater) LogInfo ¶ added in v0.5.2
func (this *IPLibraryUpdater) LogInfo(message string)
LogInfo 普通日志
type NodeStatusExecutor ¶
type NodeStatusExecutor struct {
// contains filtered or unexported fields
}
func NewNodeStatusExecutor ¶
func NewNodeStatusExecutor() *NodeStatusExecutor
func (*NodeStatusExecutor) Listen ¶
func (this *NodeStatusExecutor) Listen()
type StartIssue ¶
type StartIssue struct { Code string `json:"code"` Message string `json:"message"` Suggestion string `json:"suggestion"` }
func NewStartIssue ¶
func NewStartIssue(code string, message string, suggestion string) *StartIssue
Click to show internal directories.
Click to hide internal directories.