context

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	context.Context
	// contains filtered or unexported fields
}

func NewContext

func NewContext(db *sql.DB, l log.Logger) Context

func (Context) ChainID

func (c Context) ChainID() string

func (Context) DB

func (c Context) DB() *sql.DB

func (Context) Logger

func (c Context) Logger() log.Logger

func (Context) QstarsCli

func (c Context) QstarsCli() *lib.QstarsClient

func (Context) TendermintCli

func (c Context) TendermintCli() *lib.TmClient

func (Context) WithChainID

func (c Context) WithChainID(chainID string) Context

func (Context) WithLogger

func (c Context) WithLogger(logger log.Logger) Context

func (Context) WithQstarsCli

func (c Context) WithQstarsCli(qstarsCli *lib.QstarsClient) Context

func (Context) WithTendermintCli

func (c Context) WithTendermintCli(tmcli *lib.TmClient) Context

func (Context) WithValue

func (c Context) WithValue(key interface{}, value interface{}) Context

Jump to

Keyboard shortcuts

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