tshttp

package
v2.0.0-...-8a3178b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 10 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
	Dir     string
	O       observability.Config
}

func (*Config) SetFlags

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

type Server

type Server struct {
	O   *observability.O
	Mux *http.ServeMux
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, c Config) *Server

func (*Server) Run

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

Jump to

Keyboard shortcuts

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