Documentation ¶
Index ¶
Constants ¶
View Source
const ( IfOperUnknown = 0 IfOperNotPresent = 1 IfOperDown = 2 IfOperLowerLayerDown = 3 IfOperTesting = 4 IfOperDormant = 5 IfOperUp = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
DeviceUpdate(*Device)
}
Client represents a client of the device server
type Device ¶
type Device struct { Name string Index uint64 MTU uint16 HardwareAddr net.HardwareAddr Flags net.Flags OperState uint8 Addrs []*bnet.Prefix // contains filtered or unexported fields }
Device represents a network device
type MockServer ¶
type MockServer struct { Called bool UnsubscribeCalled bool C Client Name string UnsubscribeName string }
func (*MockServer) Subscribe ¶
func (ms *MockServer) Subscribe(c Client, n string)
func (*MockServer) Unsubscribe ¶
func (ms *MockServer) Unsubscribe(c Client, n string)
Click to show internal directories.
Click to hide internal directories.