wzd_events

package
v0.0.0-...-4a6427a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WzPingEvent

type WzPingEvent struct {
	wzlib_logger.WzLogger
	// contains filtered or unexported fields
}

WzPingEvent is a class for pinger

func NewWzPingEvent

func NewWzPingEvent(transport *wzlib_transport.WzdPubSub, uid string) *WzPingEvent

NewWzPingEvent creates a new ping event

func (*WzPingEvent) Ping

func (pe *WzPingEvent) Ping(descr string, seconds int) (int64, error)

Ping any channel, as long as subscriber supports this feature.

func (*WzPingEvent) Update

func (pe *WzPingEvent) Update(msg *wzlib_transport.WzGenericMessage)

Update ping event container by message handler

type WzPingStat

type WzPingStat struct {
	Ticks     int64
	Responded bool
}

Jump to

Keyboard shortcuts

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