server

package
v5.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts ...ServerOption)

Run run server

Types

type Functions

type Functions struct {
	List []func()
}

func (*Functions) Add

func (fs *Functions) Add(f func())

func (*Functions) Ret

func (fs *Functions) Ret() func()

type Server

type Server struct {
	ConfigFile string
	Version    string
}

type ServerOption

type ServerOption func(*Server)

func SetConfigFile

func SetConfigFile(f string) ServerOption

func SetVersion

func SetVersion(v string) ServerOption

Directories

Path Synopsis
Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/
Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/

Jump to

Keyboard shortcuts

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