ports

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(port int, getLatestSnapshotHandler application.GetLatestSnapshotHandler) *HTTPServer

func (*HTTPServer) Close

func (s *HTTPServer) Close() error

func (*HTTPServer) ListenAndServe

func (s *HTTPServer) ListenAndServe() error

type Ticker

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

func NewTicker

func NewTicker(takeSnapshotHandler TickerHandler, logger logrus.FieldLogger) *Ticker

func (*Ticker) Run

func (t *Ticker) Run(ctx context.Context) error

type TickerHandler

type TickerHandler struct {
	Frequency time.Duration
	Handler   TickerHandlerFunc
}

type TickerHandlerFunc

type TickerHandlerFunc func(ctx context.Context, now time.Time) error

Jump to

Keyboard shortcuts

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