graphite

package
v0.0.0-...-7fa8e96 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GraphiteUrl  *url.URL
	WorldpingUrl *url.URL
)

Functions

func GraphiteProxy

func GraphiteProxy(c *models.Context)

func Init

func Init(graphiteUrl string, limit uint32) error

func NewProxyRetrytransport

func NewProxyRetrytransport() *proxyRetryTransport

func Proxy

func Proxy(orgId int, c *macaron.Context)

Types

type FromTo

type FromTo struct {
	From  string `json:"from" form:"from"`
	Until string `json:"until" form:"until"`
	To    string `json:"to" form:"to"` // graphite uses 'until' but we allow to alternatively cause it's shorter
	Tz    string `json:"tz" form:"tz"`
}

func (FromTo) Validate

func (ft FromTo) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors

Jump to

Keyboard shortcuts

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