uwsgi

package
v0.0.0-...-353b7dd Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheGet

func CacheGet(key string, cache string) string

get an item from the cache

func Env

func Env(wsgi_req *interface{}) *map[string]string

func EnvAdd

func EnvAdd(env *map[string]string, k *byte, kl uint16, v *byte, vl uint16)

func RegisterSignal

func RegisterSignal(signum uint8, receiver string, handler func(uint8)) bool

func RequestHandler

func RequestHandler(env *map[string]string, wsgi_req *interface{})

func Run

func Run()

func SignalHandler

func SignalHandler(handler func(uint8), signum uint8)

Types

type BodyReader

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

func (*BodyReader) Close

func (br *BodyReader) Close() error

there is no close in request body

func (*BodyReader) Read

func (br *BodyReader) Read(p []byte) (n int, err error)

type ResponseWriter

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

func (*ResponseWriter) Header

func (w *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (w *ResponseWriter) Write(p []byte) (n int, err error)

func (*ResponseWriter) WriteHeader

func (w *ResponseWriter) WriteHeader(status int)

Jump to

Keyboard shortcuts

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