nodes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: BSD-3-Clause Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APINodeServicesRegister

func APINodeServicesRegister(node *APINode, server *grpc.Server)

Types

type APINode

type APINode struct {
	// contains filtered or unexported fields
}

func NewAPINode

func NewAPINode() *APINode

func (*APINode) Daemon

func (this *APINode) Daemon()

Daemon 实现守护进程

func (*APINode) InstallSystemService

func (this *APINode) InstallSystemService() error

InstallSystemService 安装系统服务

func (*APINode) Start

func (this *APINode) Start()

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 RestServer

type RestServer struct{}

func (*RestServer) Listen

func (this *RestServer) Listen(listener net.Listener) error

func (*RestServer) ListenHTTPS

func (this *RestServer) ListenHTTPS(listener net.Listener, tlsConfig *tls.Config) error

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

Jump to

Keyboard shortcuts

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