events

package
v0.0.166 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type EventType   `json:"type"`
	Data interface{} `json:"data"`
}

type EventBus

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

func NewEventBus

func NewEventBus() *EventBus

func (*EventBus) Close

func (eb *EventBus) Close()

func (*EventBus) GetChannel

func (eb *EventBus) GetChannel() chan Event

type EventType

type EventType string
const (
	EventTypeTunnelDisconnection EventType = "tunnel_disconnection"
	EventTypeTunnelConnection    EventType = "tunnel_connection"
	EventTypeTunnelStats         EventType = "tunnel_stats"
	EventTypeTotalBandwidth      EventType = "total_bandwidth"
	EventTypeTotalTraffic        EventType = "total_traffic"
)

Jump to

Keyboard shortcuts

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