backend

package
v0.0.0-...-41663d2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Log *zap.Logger
	DB  *sqlx.DB
}

Backend contains application connections to different external services and additional parameters that should be passed to API middlewares.

func New

func New(log *zap.Logger) (*Backend, error)

New init new Backend instance.

func (*Backend) Shutdown

func (b *Backend) Shutdown()

Shutdown method closes all backend connections.

Jump to

Keyboard shortcuts

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