Documentation
¶
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func BuildExpectedLog(timestamp time.Time, ...) string
- func BuildRequest(method, url, remoteAddr, requestId, forwardedFor string) *http.Request
- func Cert(filename string) string
- func FormatTimeWithDecimalMillis(t time.Time) string
- func GetFreePort() int
- func MustAsset(name string) []byte
- func NewServerRequest(method, uri string, body io.Reader) (*http.Request, error)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func StartGoProcess(importPath string, env []string, args ...string) *gexec.Session
- func WaitForHealthCheck(healthPort string)
- type Point
- type Series
- type SpyAdapter
- type SpyMetricRegistrar
- func (r *SpyMetricRegistrar) Add(name string, delta float64, labels ...string)
- func (r *SpyMetricRegistrar) Fetch(name string) func() float64
- func (r *SpyMetricRegistrar) Gatherer() prometheus.Gatherer
- func (r *SpyMetricRegistrar) Inc(name string, labels ...string)
- func (r *SpyMetricRegistrar) Registerer() prometheus.Registerer
- func (r *SpyMetricRegistrar) Set(name string, value float64, labels ...string)
- type SpyMetricStore
- type SpyMetricStoreAddrs
- type SpyStorage
- type SpyUAA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/
foo.txt
img/
a.png
b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func BuildExpectedLog ¶
func BuildRequest ¶
func GetFreePort ¶
func GetFreePort() int
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func NewServerRequest ¶
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
func StartGoProcess ¶
func WaitForHealthCheck ¶
func WaitForHealthCheck(healthPort string)
Types ¶
type Series ¶
func ExplodeSeriesSet ¶
type SpyAdapter ¶ added in v1.2.1
func NewSpyAdapter ¶ added in v1.2.1
func NewSpyAdapter() *SpyAdapter
func (*SpyAdapter) WritePoints ¶ added in v1.2.1
func (s *SpyAdapter) WritePoints(points []*rpc.Point) error
type SpyMetricRegistrar ¶ added in v1.2.1
func NewSpyMetricRegistrar ¶ added in v1.2.1
func NewSpyMetricRegistrar() *SpyMetricRegistrar
func (*SpyMetricRegistrar) Add ¶ added in v1.2.1
func (r *SpyMetricRegistrar) Add(name string, delta float64, labels ...string)
func (*SpyMetricRegistrar) Fetch ¶ added in v1.2.1
func (r *SpyMetricRegistrar) Fetch(name string) func() float64
func (*SpyMetricRegistrar) Gatherer ¶ added in v1.2.1
func (r *SpyMetricRegistrar) Gatherer() prometheus.Gatherer
func (*SpyMetricRegistrar) Inc ¶ added in v1.2.1
func (r *SpyMetricRegistrar) Inc(name string, labels ...string)
func (*SpyMetricRegistrar) Registerer ¶ added in v1.2.1
func (r *SpyMetricRegistrar) Registerer() prometheus.Registerer
type SpyMetricStore ¶
type SpyMetricStore struct {
QueryError error
// contains filtered or unexported fields
}
func NewSpyMetricStore ¶
func NewSpyMetricStore(tlsConfig *tls.Config) *SpyMetricStore
func (*SpyMetricStore) GetPoints ¶
func (s *SpyMetricStore) GetPoints() []*rpc.Point
func (*SpyMetricStore) SetValue ¶
func (s *SpyMetricStore) SetValue(value float64)
func (*SpyMetricStore) Start ¶
func (s *SpyMetricStore) Start() SpyMetricStoreAddrs
func (*SpyMetricStore) Stop ¶ added in v1.2.1
func (s *SpyMetricStore) Stop()
type SpyMetricStoreAddrs ¶ added in v1.2.1
type SpyStorage ¶ added in v1.2.1
type SpyStorage struct {
// contains filtered or unexported fields
}
func NewSpyStorage ¶ added in v1.2.1
func NewSpyStorage(querier storage.Querier) *SpyStorage
func (*SpyStorage) Appender ¶ added in v1.2.1
func (s *SpyStorage) Appender() (storage.Appender, error)
func (*SpyStorage) Close ¶ added in v1.2.1
func (s *SpyStorage) Close() error
func (*SpyStorage) StartTime ¶ added in v1.2.1
func (s *SpyStorage) StartTime() (int64, error)