gen_server

package
Version: v0.0.0-...-9ae062e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenServer

type GenServer interface {
	Setup() *NodeInfo      // the node self information
	Start()                // when start
	OnConn(string)         // get a new conn
	OnMsg(string, []byte)  // receive a new msg
	OnClose(string, error) // a conn disconnected
}

type NodeInfo

type NodeInfo struct {
	RegDC     string
	NameSpace string
	NodeId    string
	EndPoints []string
	IsPub     bool
	BackEnds  string
	Sig       string
	UsrDatas  map[string]string
}

the node information

func NewNodeInfo

func NewNodeInfo() *NodeInfo

func (*NodeInfo) Signature

func (info *NodeInfo) Signature()

func (*NodeInfo) ToString

func (info *NodeInfo) ToString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL