MCPcopy Create free account
hub / github.com/encodeous/nylon / Down

Method Down

polyamide/device/device.go:218–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func (device *Device) Down() error {
219 return device.changeState(deviceStateDown)
220}
221
222func (device *Device) IsUnderLoad() bool {
223 // check if currently under load

Callers 2

RoutineTUNEventReaderMethod · 0.95
TestUpDownFunction · 0.80

Implementers 4

NativeTunpolyamide/tun/tun_linux.go
netTunpolyamide/tun/netstack/tun.go
chTunpolyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSizedpolyamide/device/device_test.go

Calls 1

changeStateMethod · 0.95

Tested by 1

TestUpDownFunction · 0.64