local_node

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ip       = IdentifyType("ip")
	Mac      = IdentifyType("mac")
	Hostname = IdentifyType("hostname")
)

Variables

This section is empty.

Functions

func CurrentNode

func CurrentNode() *model.Node

Types

type IdentifyType

type IdentifyType string

type LocalNode

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

func GetLocalNode

func GetLocalNode() *LocalNode

func InitLocalNode

func InitLocalNode() (node *LocalNode, err error)

func NewLocalNode

func NewLocalNode(ip string, identify string, identifyTypeString string) (node *LocalNode, err error)

func (*LocalNode) Current

func (n *LocalNode) Current() *model.Node

func (*LocalNode) Ready

func (l *LocalNode) Ready() error

Jump to

Keyboard shortcuts

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