app

package
v0.0.0-...-99409e2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: AGPL-3.0 Imports: 19 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
}

func NewApp

func NewApp(config *AppConfig) *App

func (*App) Run

func (a *App) Run(stopCh <-chan struct{})

type AppConfig

type AppConfig struct {
	AppBaseURL  string                  `yaml:"app_base_url"`
	AppEmail    string                  `yaml:"app_email"`
	Database    *model.DBConfig         `yaml:"database"`
	Email       *notifiers.MailerConfig `yaml:"email"`
	HTTPServer  *HTTPServerConfig       `yaml:"http_server"`
	HTTPSession *requests.SessionConfig `yaml:"http_session"`
	OAuth       *oauth.Config           `yaml:"oauth"`
}

func ParseConfig

func ParseConfig(filename string) (*AppConfig, error)

type HTTPServerConfig

type HTTPServerConfig struct {
	Port int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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