serve

package
v14.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(svc Service) int

Types

type Components

type Components struct {
	Mux    *http.ServeMux
	Server *http.Server
}

type Service

type Service interface {
	// must handle nil
	InitFlags(fs *flag.FlagSet)
	Setup(ctx context.Context, c *Components) error
}

Jump to

Keyboard shortcuts

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