infrustructure

package
v0.0.0-...-71505b4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkContext

type NetworkContext struct {
	Db           *gorm.DB
	ClientConfig client.TransportConfig
}

type Provider

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

func New

func New(configs map[models.Network]config.NetworkConfig) (*Provider, error)

func (*Provider) Close

func (p *Provider) Close()

func (*Provider) EnableTraceLevel

func (p *Provider) EnableTraceLevel()

func (*Provider) GetDb

func (p *Provider) GetDb(net models.Network) (*gorm.DB, error)

func (*Provider) GetRpcConfig

func (p *Provider) GetRpcConfig(net models.Network) (cfg client.TransportConfig, err error)

Jump to

Keyboard shortcuts

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