relay

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

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

Relay keeps all concepts such as server, database and manages them.

func New

func New(cfg *config.Config) (*Relay, error)

NewRelay creates a new relay.

func (*Relay) Start

func (r *Relay) Start(shutdownch chan struct{}) chan error

Start runs the relay and its children.

func (*Relay) Stop

func (r *Relay) Stop() error

Stop shutdowns the relay and its children gracefully.

Jump to

Keyboard shortcuts

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