apis

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleV6

func HandleV6(config APIConfig) 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