web

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentName = "web"

Variables

This section is empty.

Functions

func ExpandTimeVars

func ExpandTimeVars(url string) string

func Get

func Get(ctx context.Context, url string, headers map[string]string) ([]byte, error)

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, 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