shared

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DevByName map[string]*DevInfo
	DevList   []*DevInfo
	HashMac   hash.Hash
	Now       = time.Now()
	TsNow32   = uint32(Now.Unix())
	NoTime    = time.Time{}
)

Functions

func CtrlCapnpDec

func CtrlCapnpDec(sigVerifier ctrl.Verifier, raw common.RawBytes) (proto.Cerealizable, error)

func CtrlCapnpEnc

func CtrlCapnpEnc(signer ctrl.Signer, instance proto.Cerealizable) (common.RawBytes, error)

func Init

func Init(keysDirPath string) error

func UpdateNow

func UpdateNow()

Types

type DevInfo

type DevInfo struct {
	Host    *net.Interface
	ContDev string
	Handle  *afpacket.TPacket
}

Jump to

Keyboard shortcuts

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