internal

package
v0.0.0-...-afe0626 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricsHandler

func GetMetricsHandler() func(rw http.ResponseWriter, r *http.Request)

func StartServer

func StartServer(ctx context.Context, sigs chan os.Signal, addr string) string

Types

type Config

type Config struct {
	LogLevel  string     `yaml:"logLevel,omitempty" json:"logLevel,omitempty"`
	Endpoints []Endpoint `yaml:"endpoints,omitempty" json:"endpoints,omitempty"`
}

type Endpoint

type Endpoint struct {
	URL string `yaml:"url,omitempty" json:"url,omitempty"`
}

type IPConfig

type IPConfig struct {
	Ip string `json:"ip,omitempty"`
}

Jump to

Keyboard shortcuts

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