events

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 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 uint
const (
	EventTypeTunnelDisconnection EventType = iota
	EventTypeTunnelConnection
	EventTypeTunnelBandwidth
	EventTypeTunnelSessionTraffic
	EventTypeTunnelTotalTraffic
	EventTypeTotalBandwidth
	EventTypeTotalTraffic
)

Jump to

Keyboard shortcuts

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