web

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentName = "web"

Variables

This section is empty.

Functions

func Data added in v0.3.0

func Data(
	ctx context.Context,
	logger log.Logger,
	client *ethclient.Client,
	contract contracts.TellorCaller,
	envFilePath string,
) http.HandlerFunc

Types

type Config

type Config struct {
	LogLevel    string
	ListenHost  string
	ListenPort  uint
	ReadTimeout format.Duration
}

type Web

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

func New

func New(
	ctx context.Context,
	logger log.Logger,
	handlers map[string]http.HandlerFunc,
	tsDB storage.SampleAndChunkQueryable,
	cfg Config,
) (*Web, error)

func (*Web) Start

func (self *Web) Start() error

func (*Web) Stop

func (self *Web) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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