server

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        string
	MetricsPort string
	Backend     string
	Key         string
	Token       string
	Output      string

	Handler *handler
	Logger  *zap.Logger
	// contains filtered or unexported fields
}

func (*Config) Serve

func (s *Config) Serve() error

func (*Config) ServeMetrics added in v0.3.0

func (s *Config) ServeMetrics() error

type Health

type Health struct {
	Status  string `json:"status"`
	Success int    `json:"success"`
	Failure int    `json:"failure"`
}

Jump to

Keyboard shortcuts

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