app

package
v0.8.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(ctx Context) (config.RequestManager, error)

func MakeDbConnPool

func MakeDbConnPool(ctx Context) (myconn.Connector, error)

func MakeGrapher

func MakeGrapher(ctx Context) (grapher.GrapherFactory, error)

func MakeJobRunnerClient

func MakeJobRunnerClient(ctx Context) (jr.Client, error)

Types

type Context

type Context struct {
	Hooks     Hooks
	Factories Factories

	Config config.RequestManager
}

func Defaults

func Defaults() Context

type Factories

type Factories struct {
	MakeGrapher         func(Context) (grapher.GrapherFactory, error) // @fixme
	MakeJobRunnerClient func(Context) (jr.Client, error)
	MakeDbConnPool      func(Context) (myconn.Connector, error)
}

type Hooks

type Hooks struct {
	LoadConfig  func(Context) (config.RequestManager, error)
	Auth        func(*http.Request) (bool, error)
	SetUsername func(*http.Request) (string, error)
}

Jump to

Keyboard shortcuts

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