http

package
v0.0.0-...-0999c01 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(cfg *Config, handler http.Handler)

func RunServerWithMetrics

func RunServerWithMetrics(cfg *Config, router *httprouter.Router, collector metrics.Collector)

Types

type Config

type Config struct {
	Hostname string `toml:"hostname" yaml:"hostname" env:"SERVICE_HOSTNAME" env-default:""`
	Port     int    `toml:"port" yaml:"port" env:"SERVICE_PORT" env-default:""`
}

func NewConfig

func NewConfig(path string) *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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