server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerHandler

func NewLoggerHandler(logger *zap.Logger, handler fasthttp.RequestHandler) fasthttp.RequestHandler

Types

type DefaultServer

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

func (*DefaultServer) Start

func (o *DefaultServer) Start() error

func (*DefaultServer) Stop

func (o *DefaultServer) Stop()

type GroupMaintenance

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

func NewGroupMaintenance

func NewGroupMaintenance(logger *zap.Logger, m ...Maintenance) GroupMaintenance

func (*GroupMaintenance) Start

func (o *GroupMaintenance) Start(ctx context.Context, interval time.Duration)

type Maintenance

type Maintenance interface {
	ID() string
	Clean(ctx context.Context) error
}

type Server

type Server interface {
	Start() error
	Stop()
}

func NewServer

func NewServer(
	logger *zap.Logger,

	conf config.Config,
	storages storages.Storages,
) Server

Jump to

Keyboard shortcuts

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