local_node

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: BSD-3-Clause Imports: 11 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() *models2.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() *models2.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