heroes

package
v0.0.0-...-6dea0d5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Logger  zerolog.Logger
	Storage storage.Storager
	Server  server.Serverer
	Config  config.Config
}

App is an application container with necessary dependencies

func NewApplication

func NewApplication(config config.Config) *App

NewApplication returns pointer to App structure with filled data

func (*App) InitLogger

func (a *App) InitLogger()

InitLogger sets logger to App structure

func (*App) InitStorage

func (a *App) InitStorage() error

InitStorage sets database to App structure

func (*App) Run

func (a *App) Run() error

Run runs server from App structure

Directories

Path Synopsis
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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