app

package
v0.8.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(appCtx Context) (config.JobRunner, error)

func MakeChainRepo

func MakeChainRepo(appCtx Context) (chain.Repo, error)

func MakeRequestManagerClient

func MakeRequestManagerClient(appCtx Context) (rm.Client, error)

Types

type Context

type Context struct {
	Hooks     Hooks
	Factories Factories

	Config config.JobRunner
}

func Defaults

func Defaults() Context

type Factories

type Factories struct {
	MakeRequestManagerClient func(Context) (rm.Client, error)
	MakeChainRepo            func(Context) (chain.Repo, error)
}

type Hooks

type Hooks struct {
	LoadConfig  func(Context) (config.JobRunner, 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