app

package
v0.0.0-...-ef346fd Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 14 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 {
	// contains filtered or unexported fields
}

App is the main application.

func NewApp

func NewApp(logger *logrus.Logger, cfg config.Config) (*App, error)

NewApp create the main application

func NewAppWith

func NewAppWith(logger *logrus.Logger, cfg config.Config, db db.Session) (*App, error)

func (*App) Close

func (a *App) Close()

func (*App) GetAuth

func (a *App) GetAuth() *auth.Auth

func (*App) GetStore

func (a *App) GetStore() *store.Store

func (*App) Router

func (a *App) Router() *chi.Mux

func (*App) Serve

func (a *App) Serve() error

Serve is the core serve http

Jump to

Keyboard shortcuts

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