testing

package
v0.0.0-...-868d3ce Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	Clusters []members.Cluster
	Routers  []members.Router
	Groups   []members.Group
}

func MustNetFromYAMLFile

func MustNetFromYAMLFile(path string) Network

func NetFromYAML

func NetFromYAML(bs []byte) (Network, error)

func NetFromYAMLFile

func NetFromYAMLFile(path string) (Network, error)

func (Network) GetClusterIDs

func (n Network) GetClusterIDs() []uint8

func (Network) GetDeviceByAddress

func (n Network) GetDeviceByAddress(addr string) members.Device

func (Network) GetGroupByID

func (n Network) GetGroupByID(id uint16) members.Group

func (Network) GetGroupDevices

func (n Network) GetGroupDevices(id uint16) []string

func (Network) GetGroupIDs

func (n Network) GetGroupIDs() []uint16

func (Network) GetRouterIDs

func (n Network) GetRouterIDs() []uint8

type Router

type Router struct {
	Address string
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(addr string, net Network) *Router

func (*Router) IsListening

func (r *Router) IsListening() bool

func (*Router) Listen

func (r *Router) Listen() error

Jump to

Keyboard shortcuts

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