event

package
v0.0.0-...-baa17e1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericEvent

type GenericEvent struct {
	event.BasicEvent
}

GenericEvent wrapper for event.BasicEvent describes generic and unified events.

func (GenericEvent) Position

func (e GenericEvent) Position() *common.Position

Position returns generic and unified position data.

func (*GenericEvent) SetPosition

func (e *GenericEvent) SetPosition(pos common.Position)

SetPosition adds position data to an event.

type Name

type Name string
const (
	PositionReceived Name = "position.received"
	CloseConnection  Name = "close.connection"
)

type Reply

type Reply struct {
	Error   error
	Message string
}

Jump to

Keyboard shortcuts

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