ping

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingBody

type PingBody struct {
	Message string `json:"message"`
}

type PingPlugin

type PingPlugin struct {
	// contains filtered or unexported fields
}

func NewPingPlugin

func NewPingPlugin(bus *events.Bus, logger *zap.Logger) *PingPlugin

func (*PingPlugin) Handle

func (p *PingPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error

func (*PingPlugin) IncomingTypes

func (p *PingPlugin) IncomingTypes() []string

func (*PingPlugin) Name

func (p *PingPlugin) Name() string

func (*PingPlugin) OnConnect

func (p *PingPlugin) OnConnect(dev device.Sender)

func (*PingPlugin) OnDisconnect

func (p *PingPlugin) OnDisconnect(dev device.Sender)

func (*PingPlugin) OutgoingTypes

func (p *PingPlugin) OutgoingTypes() []string

func (*PingPlugin) Timeout

func (p *PingPlugin) Timeout() time.Duration

Jump to

Keyboard shortcuts

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