pingpong

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingOp

type PingOp struct {
	Tag  event.Tag
	Text string
}

PingOp is an operation that sends a PongEvent to the given tag.

func (PingOp) Add

func (o PingOp) Add(ops *op.Ops)

Add writes the operation to the given op.Ops.

type PongEvent

type PongEvent struct {
	Text string
}

PongEvent is the event that is sent back once PingOp is invoked.

func (PongEvent) ImplementsEvent

func (p PongEvent) ImplementsEvent()

Jump to

Keyboard shortcuts

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