server

package
v0.0.0-...-6d5e59d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Option, handler http.Handler)

Run start http server.

Types

type Option

type Option struct {
	Mode string `yaml:"mode"` // run mode, debug or release
	Port string `yaml:"port"`
}

func (*Option) Valid

func (opts *Option) Valid() []error

Jump to

Keyboard shortcuts

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