server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func RegisterRoute

func RegisterRoute(route string, handler HandlerFUNC)

func StartHttpServer

func StartHttpServer() error

Types

type Context

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

func (*Context) Form

func (m *Context) Form() url.Values

func (*Context) Get

func (m *Context) Get(key string) string

func (*Context) GetBody

func (m *Context) GetBody() []byte

func (*Context) PostForm

func (m *Context) PostForm() url.Values

func (*Context) Write

func (m *Context) Write(data interface{})

type Controller

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

func (*Controller) Context

func (m *Controller) Context() *Context

type Handler

type Handler interface {
}

type HandlerFUNC

type HandlerFUNC func(ctx *Context)

type HttpServerHandler

type HttpServerHandler struct{}

func (*HttpServerHandler) ServeHTTP

func (*HttpServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Route

type Route interface {
}

Jump to

Keyboard shortcuts

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