server

package
v0.0.0-...-4181570 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort = 9080
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer struct {
	Host string

	Port int
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer() *HttpServer

NewHttpServer return http server

func (*HttpServer) Register

func (h *HttpServer) Register(path string, handler http.Handler)

func (*HttpServer) Start

func (h *HttpServer) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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