nethttp

package
v0.0.0-...-c0334d6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 3 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 {
	Flag int32
	Type string
	Host string
	Port int32
}

Config TODO

func (*Config) String

func (owner *Config) String() string

String TODO

type HTTP

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

HTTP TODO

func NewHTTP

func NewHTTP(conf Config) *HTTP

NewHTTP TODO

func (*HTTP) RegHandler

func (owner *HTTP) RegHandler(uri string, handleFunc WebHandleFunc)

RegHandler TODO

func (*HTTP) Start

func (owner *HTTP) Start()

Start service.

func (*HTTP) Stop

func (owner *HTTP) Stop()

Stop service.

type HTTPS

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

HTTPS TODO

func NewHTTPS

func NewHTTPS(conf Config) *HTTPS

NewHTTPS create service proxy.

func (*HTTPS) RegHandler

func (owner *HTTPS) RegHandler(uri string, handleFunc WebHandleFunc)

RegHandler TODO

func (*HTTPS) Start

func (owner *HTTPS) Start()

Start service.

func (*HTTPS) Stop

func (owner *HTTPS) Stop()

Stop service.

type WebHandleFunc

type WebHandleFunc func(w http.ResponseWriter, r *http.Request)

WebHandleFunc TODO

Jump to

Keyboard shortcuts

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