worker

package
v0.0.0-...-bf94cd9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWorkerServer

func InitWorkerServer()

初始化worker服务

func InvokeObjectMethod

func InvokeObjectMethod(object interface{}, methodName string) interface{}

func Invoker

func Invoker(conn *net.TCPConn, req_obj *protocol.ReqRoot) interface{}

func WorkerServer

func WorkerServer(host string, port int)

*

  • 监听客户端连接

Types

type WorkerConfigType

type WorkerConfigType struct {
	Loglevel   string     `toml:"loglevel"`
	SingleMode bool       `toml:"single_mode"`
	Servers    [][]string `toml:"servers"`
	ToHub      []string   `toml:"connect_to_hub"`
}
var WorkerConfig WorkerConfigType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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