http

package
v0.0.0-...-2fed611 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Recover

func Recover(msg string) func()

func Start

func Start(addr string, message messager.IMessage) error

Start is an entry point for HTTP server

Types

type Handler

type Handler func(w http.ResponseWriter, req *http.Request)

type Response

type Response struct {
	Error      string `json:"error"`
	OnlineIds  []int  `json:"online-ids"`
	OfflineIds []int  `json:"offline-ids"`
	IsDone     bool   `json:"is-done"`
	InProcess  bool   `json:"in-process"`
}

Jump to

Keyboard shortcuts

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