msrv

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 7 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 `env:"MONITOR_SERVER_HOST,required"`
	Port       int    `env:"MONITOR_SERVER_PORT,required"`
	MetricPath string `env:"MONITOR_SERVER_METRIC_PATH" envDefault:"/metric"`
	StatusPath string `env:"MONITOR_SERVER_STATUS_PATH" envDefault:"/status"`
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) ToServerConfig

func (c *Config) ToServerConfig() *serverConfig

type Esrv

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

func NewEsrv

func NewEsrv(e *echo.Echo, sc *serverConfig) *Esrv

func (*Esrv) ListenAndServe

func (es *Esrv) ListenAndServe()

func (*Esrv) Shutdown

func (es *Esrv) Shutdown()

Jump to

Keyboard shortcuts

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