api

package
v0.0.0-...-3fff15a Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	{Constructor: web.NewEngine},
	{Constructor: web.NewBinder},
	{Constructor: web.NewLogger},
	{Constructor: web.NewValidator},
	{Constructor: NewAPI},
}

Module API

Functions

func NewAPI

func NewAPI(params Params) (http.Handler, error)

NewAPI creates http.Handler

Types

type Params

type Params struct {
	dig.In

	Engine    *echo.Echo
	Client    *eth.Client
	Config    *indexer.Config
	Indexer   *indexer.Indexer
	Store     *store.Store
	Validator web.Validator
	Viper     *viper.Viper
}

Params for API

Jump to

Keyboard shortcuts

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