server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunHttpServer

func RunHttpServer(handlers ...*XhttpExecutor)

func XhttpResponseDatas added in v1.0.2

func XhttpResponseDatas(writer http.ResponseWriter, code int, message string, datas []interface{}, expands map[string]interface{})

func XhttpResponseMaps added in v1.0.2

func XhttpResponseMaps(writer http.ResponseWriter, code int, message string, datas []map[string]interface{}, expands map[string]interface{})

func XhttpResponseMessages added in v1.0.2

func XhttpResponseMessages(writer http.ResponseWriter, code int, message string)

Types

type XhttpExecutor added in v1.0.1

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

func XhttpFuncHandle added in v1.0.1

func XhttpFuncHandle(funcx func(http.ResponseWriter, *http.Request), path ...string) *XhttpExecutor

func XhttpHandle added in v1.0.1

func XhttpHandle(handler http.Handler, path ...string) *XhttpExecutor

Jump to

Keyboard shortcuts

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