app

package
v0.0.0-...-a8786dc Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 3 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 {
	Config        *Config
	Logger        *zerolog.Logger
	ConsoleLogger *zerolog.Logger
}

func New

func New() (app *App, err error)

type Config

type Config struct {
	// The port for the server to run on.
	Server    *Server
	SecretKey string `mapstructure:"secret_key"`
}

func InitConfig

func InitConfig() (*Config, error)

type Server

type Server struct {
	Port   int
	DbConn string `mapstructure:"db_conn"`
}

Jump to

Keyboard shortcuts

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