src

package
v0.0.0-...-eeae653 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cnf

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

Cnf 整体对象

func (*Cnf) Build

func (cnf *Cnf) Build(conf interface{})

Build 主程序配置入口

func (*Cnf) DoRunDiscover

func (cnf *Cnf) DoRunDiscover()

DoRunDiscover 反射

func (*Cnf) GetPublicChanel

func (cnf *Cnf) GetPublicChanel() (string, map[string]chan map[string]interface{})

GetPublicChanel 获取公共消息chanel @return nodeID 节点唯一标识 @return publicChanel 节点的公共频道

func (*Cnf) Run

func (cnf *Cnf) Run(signal chan bool)

Run 主程序入口, 无公共Chanel的实现

func (*Cnf) RunWithPublicChanel

func (cnf *Cnf) RunWithPublicChanel(nodeChanels map[string]interface{}, signal chan bool)

RunWithPublicChanel 主程序入口, 有公共chanel实现的, 用于端口多路复用

Jump to

Keyboard shortcuts

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