Documentation ¶ Index ¶ Constants func Data(ctx context.Context, logger log.Logger, client *ethclient.Client, ...) http.HandlerFunc type Config type Web func New(ctx context.Context, logger log.Logger, handlers map[string]http.HandlerFunc, ...) (*Web, error) func (self *Web) Start() error func (self *Web) Stop() 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() Source Files ¶ View all Source files web.go Directories ¶ Show internal Expand all Path Synopsis api helpers Click to show internal directories. Click to hide internal directories.