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
type TickerHandler ¶
type TickerHandler struct { Frequency time.Duration Handler TickerHandlerFunc }
Click to show internal directories.
Click to hide internal directories.