http

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CHAN_SLACK           = 10000
	DeviceUpdateDuration = 1 * time.Hour
	Listen               = "/input"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpListenerMetric

type HttpListenerMetric struct {
	Messages go_metrics.Meter
	Errors   go_metrics.Meter
}

type KentikHttpListener

type KentikHttpListener struct {
	logger.ContextL
	// contains filtered or unexported fields
}

func NewHttpListener

func NewHttpListener(ctx context.Context, host string, log logger.Underlying, registry go_metrics.Registry, jchfChan chan []*kt.JCHF, apic *api.KentikApi) (*KentikHttpListener, error)

func (*KentikHttpListener) Close

func (ks *KentikHttpListener) Close()

func (*KentikHttpListener) HttpInfo

func (ks *KentikHttpListener) HttpInfo() map[string]float64

func (*KentikHttpListener) RegisterRoutes

func (ks *KentikHttpListener) RegisterRoutes(r *kmux.Router)

Jump to

Keyboard shortcuts

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