static

package
v0.0.0-...-89c44d9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 13 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 {
	AddrString string       `long:"addr" env:"ADDR" description:"Static server address" default:"localhost:3129" json:"addr"`
	Addr       *net.TCPAddr `no-flag:"yes" json:"-"`
}

type Static

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

func NewStatic

func NewStatic(logger *zap.Logger, config *Config, proxyConfig *proxy.Config) *Static

func (*Static) ListenAndServe

func (s *Static) ListenAndServe() error

ListenAndServe listens and serves HTTP requests.

func (*Static) Shutdown

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

Shutdown shuts down the HTTP server.

Jump to

Keyboard shortcuts

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