node

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLog

func InitLog(args config.SysConfig, conf config.NodeConfig)

Types

type Node

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

node struct with all service

func (*Node) NextRound

func (instance *Node) NextRound(msgType common.MsgType)

func (*Node) Restart

func (instance *Node) Restart() error

func (*Node) Round

func (instance *Node) Round()

func (*Node) Start

func (instance *Node) Start()

func (*Node) Stop

func (instance *Node) Stop() error

func (*Node) Wait

func (instance *Node) Wait()

type NodesService added in v1.0.0

type NodesService interface {
	Start()
	Stop() error
	Wait()
	Restart() error
}

func NewNode

func NewNode(args config.SysConfig) (NodesService, error)

Jump to

Keyboard shortcuts

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