internal

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(l *zap.Logger) func(next http.Handler) http.Handler

Logger is a middleware that logs the start and end of each request, along with some useful data about what was requested, what the response status was, and how long it took to return.

Types

type DataFeedAPI

type DataFeedAPI struct {
	Storage *state.Storage
	Symbols *data.Symbols
	// contains filtered or unexported fields
}

func NewDataFeedAPI

func NewDataFeedAPI(interrupt <-chan struct{}, logger *zap.Logger, storage *state.Storage, address string, symbols *data.Symbols) *DataFeedAPI

func (*DataFeedAPI) Done

func (a *DataFeedAPI) Done() <-chan struct{}

type Importer

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

func NewImporter

func NewImporter(interrupt <-chan struct{}, scheme byte, storage *state.Storage, matchers []crypto.PublicKey) *Importer

func (*Importer) Import

func (im *Importer) Import(n string) error

type Synchronizer

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

func NewSynchronizer

func NewSynchronizer(interrupt <-chan struct{}, storage *state.Storage, scheme byte, matchers []crypto.PublicKey, node string, interval int, lag int, symbols *data.Symbols) (*Synchronizer, error)

func (*Synchronizer) Done

func (s *Synchronizer) Done() <-chan struct{}

Directories

Path Synopsis
Package statik contains static assets.
Package statik contains static assets.

Jump to

Keyboard shortcuts

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