app

package
v0.0.0-...-ef924d7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package app defines an application context, which carries information about the application environment.

It can be information such as database credentials, service discovery, handlers addresses, ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx interface {
	ctx.Ctx

	Name() string
	L() log.Logger
	Config() *config.Config
	BG() *bg.Reg
}

Ctx is the app context interface

func NewCtx

func NewCtx(name string, c *config.Config, l log.Logger, s stats.Stats) Ctx

NewCtx creates a new app context

Jump to

Keyboard shortcuts

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