app

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: MIT Imports: 7 Imported by: 5

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

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

Ctx is the app context interface

func NewCtx

func NewCtx(service 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