apis

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleV6

func HandleV6(config APIConfig) (err error)

Handle Flux events

func HandleWebsocket

func HandleWebsocket(config APIConfig) error

Handle Flux WebSocket connections

Types

type APIConfig

type APIConfig struct {
	Server    *http.ServeMux
	Client    *http.Client
	Exporter  []exporters.Exporter
	Formatter formatters.Formatter
	Config    config.Config
}

All of the configuration necessary to run a fluxcloud API

func NewAPIConfig

Initialize API configuration

func (*APIConfig) Listen

func (a *APIConfig) Listen(addr string) error

Listen on addr

Jump to

Keyboard shortcuts

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