ctx

package
v0.0.0-...-b2c9b18 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EmailValidation string = "" /* 1208-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version  string `toml:"version"`
	Port     string `toml:"port"`
	Database struct {
		Db  string `toml:"db"`
		Dsn string `toml:"dsn"`
	} `toml:"database"`
	Logging struct {
		LogMode string `toml:"log_mode"`
		LogTag  string `toml:"log_tag"`
		ID      string // will be process id
	} `toml:"logging"`
}

Config is a storage for admin application configuration

type Context

type Context struct {
	Orm        *xorm.Engine
	Logger     logger.Logger
	Config     *Config
	Flags      *Flags
	JWTSignKey []byte
}

Context is a gate to application services

type Flags

type Flags struct {
	CfgFileName string
}

Flags represents start mode parameters for application

Jump to

Keyboard shortcuts

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