cluster

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(serverName string, v ...interface{}) []interface{}

Call 函数用于调用远程服务器的方法

func Connect

func Connect(serverName string, addr string)

Connect 函数用于连接到服务器

func Open

func Open(addr string)

Open 函数用于初始化服务器

func Register

func Register(rcvr interface{})

Register 函数用于注册接收器

func Send

func Send(serverName string, v ...interface{})

Send 函数用于发送数据到远程服务器

func Start added in v0.0.6

func Start()

Start 函数用于启动服务器

Types

type ServerInfo

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

ServerInfo 结构用于保存服务器信息和端口号

Jump to

Keyboard shortcuts

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