server

package
v0.0.0-...-1ce205e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package server serves up the endpoints cache via http

Package server serves the HTTP endpoints

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(shutdownChannel chan bool, waitGroup *sync.WaitGroup, port int64, controller *streamer.Controller, errorChannel chan bool)

Run runs our http server using specified port

Types

type HealthStatus

type HealthStatus struct {
	Errors   chan bool
	HasError bool
}

func NewHealthStatus

func NewHealthStatus(errorChannel chan bool) *HealthStatus

func (*HealthStatus) Health

func (h *HealthStatus) Health(w http.ResponseWriter, r *http.Request)

Health serves our health route

type Provider

type Provider struct {
	Controller *streamer.Controller
}

func NewProvider

func NewProvider(controller *streamer.Controller) *Provider

func (Provider) Create

func (p Provider) Create(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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