web

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Name        string
	Description string
	Value       int64
}

Counter is a single redis counter value

type Counters

type Counters struct {
	Since    int64
	Counters []Counter
}

Counters is the return type for the stats API

type Day added in v1.1.1

type Day string

Day is a single day we have stats for

type Frontend

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

Frontend is the web frontend server

func NewFrontend

func NewFrontend(fo *Opts) (*Frontend, error)

NewFrontend initialized a frontend server

func (*Frontend) Start

func (f *Frontend) Start() error

Start starts the server

func (*Frontend) Stop

func (f *Frontend) Stop()

Stop stops the frontend webserver

type Opts

type Opts struct {
	Redis      *util.RedisOpts
	ListenAddr string
}

Opts configure the frontend server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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