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(DeviceInterface)
}
Client represents a client of the device server
type Device ¶
type Device struct { HardwareAddr net.HardwareAddr // contains filtered or unexported fields }
Device represents a network device
func (*Device) GetOperState ¶
GetOperState gets the operational state
type DeviceInterface ¶
type MockServer ¶
type MockServer struct { Called bool UnsubscribeCalled bool C Client Name string UnsubscribeName string }
func (*MockServer) DeviceDownEvent ¶ added in v0.1.8
func (ms *MockServer) DeviceDownEvent(name string, addrs []*net.Prefix)
func (*MockServer) DeviceUpEvent ¶ added in v0.1.8
func (ms *MockServer) DeviceUpEvent(name string, addrs []*net.Prefix)
func (*MockServer) Start ¶ added in v0.1.8
func (ms *MockServer) Start() error
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.