govern

package
v0.0.0-...-b804f52 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MulanPSL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ModName = "server.govern"

ModName ..

Variables

View Source
var (
	DefaultServeMux = http.NewServeMux()
)

Functions

func Handle

func Handle(pattern string, handler http.Handler)

func HandleFunc

func HandleFunc(pattern string, handler http.HandlerFunc)

Types

type Config

type Config struct {
	Addr string
}

Config ...

func DefaultConfig

func DefaultConfig() *Config

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func Build

func Build() *Server

func (*Server) GracefulStop

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

func (*Server) Info

func (s *Server) Info() *server.ServiceInfo

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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