appcontext

package
v0.0.0-...-ac55774 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCtx

type AppCtx struct {
	// contains filtered or unexported fields
}

AppCtx represents the application context that hold references to backend, conf, logger etc.

func New

func New(b *backend.Backend, c *conf.Vars) *AppCtx

New initializes the handlers package and sets the read-only instance appCtx.

func (AppCtx) Backend

func (c AppCtx) Backend() *backend.Backend

Backend returns the backend instance which holds the various repo in the app.

func (AppCtx) Conf

func (c AppCtx) Conf() *conf.Vars

Conf returns the conf instance.

Jump to

Keyboard shortcuts

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