frontend

package
v0.0.0-...-84d3d55 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackendConnection

func NewBackendConnection(cfg *FrontendConfig, mxc *MuxConnection) (*http.Client, error)

Types

type BackendConnection

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

func (*BackendConnection) Close

func (bc *BackendConnection) Close()

type Frontend

type Frontend struct {
	Config FrontendConfig
	Mqtt   utils.MqttConnection
	// contains filtered or unexported fields
}

func NewFrontend

func NewFrontend(config FrontendConfig) (*Frontend, error)

func (*Frontend) Setup

func (fe *Frontend) Setup() error

func (*Frontend) Start

func (fe *Frontend) Start() error

func (*Frontend) Stop

func (fe *Frontend) Stop()

type FrontendConfig

type FrontendConfig struct {
	BrokerUrl      string
	BackendTopic   *string
	ReclaimFreq    time.Duration
	Listen         string
	MaxBackends    int
	BackendQuicCfg quic.Config
	MqttCfg        mqtt.ClientOptions
}

type MuxConnection

type MuxConnection struct {
	MuxDownStream *MuxDownStream
	// contains filtered or unexported fields
}

type MuxDownStream

type MuxDownStream struct {
	Config *FrontendConfig
	// contains filtered or unexported fields
}

func NewMuxDownStream

func NewMuxDownStream(cfg *FrontendConfig) *MuxDownStream

Jump to

Keyboard shortcuts

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