server

package
v0.0.0-...-6d8d6c7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(name string, port int, actions []Action)

Types

type Action

type Action func() (rest.Method, string, func(*http.Request, Params) (interface{}, error))

type Params

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

func NewParams

func NewParams(req *http.Request) Params

func (Params) GetBody

func (p Params) GetBody(body interface{}) error

func (Params) GetBodyBytes

func (p Params) GetBodyBytes() ([]byte, error)

func (Params) GetBodyString

func (p Params) GetBodyString() (string, error)

func (Params) GetPathParam

func (p Params) GetPathParam(name string) string

func (Params) GetQueryParam

func (p Params) GetQueryParam(name string) string

Jump to

Keyboard shortcuts

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