server

package
v0.0.0-...-5554e34 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

Types

type Config

type Config struct {
	Collector []prometheus.Collector
	Logger    logger.Interface

	ErrCha   chan<- error
	HTTPHost string
	HTTPPort string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Server, error)

func (*Server) ListenHTTP

func (s *Server) ListenHTTP()

Jump to

Keyboard shortcuts

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