http

package
v0.0.0-...-eef0f43 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host       string
	Port       int
	MetricHost string
	MetricPort int
}

type MetricServer

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

func NewMetricServer

func NewMetricServer(cfg Config) *MetricServer

func (*MetricServer) Run

func (srv *MetricServer) Run() <-chan error

func (*MetricServer) Shutdown

func (srv *MetricServer) Shutdown(ctx context.Context) error

type Server

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

func NewServer

func NewServer(cfg Config) *Server

func (*Server) Run

func (s *Server) Run() <-chan error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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