basehttp

package
v3.0.0-...-c5294d9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 14 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 {
	Address string
}

func (*Config) SetFlags

func (c *Config) SetFlags(fset *flag.FlagSet)

type HTTP

type HTTP struct {
	O      *observability.O
	Mux    *http.ServeMux
	Server *http.Server
	Client *http.Client
}

func New

func New(ctx context.Context, o *observability.O, c *Config) *HTTP

func (*HTTP) Run

func (h *HTTP) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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