web

package
v0.0.0-...-22940ab Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiDefaultTimeout = time.Second * 30

Functions

func RedirectResponse

func RedirectResponse(rw http.ResponseWriter, req *http.Request)

func StartHttpService

func StartHttpService()

Types

type HandlerWrapper

type HandlerWrapper func(*WebApiEvent, []byte) bool

type WebApiEvent

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

func (*WebApiEvent) Done

func (this *WebApiEvent) Done() error

func (*WebApiEvent) Response

func (this *WebApiEvent) Response(data map[string]interface{})

Jump to

Keyboard shortcuts

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