web

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit() (err error)

Exit tears down the server gracefully

func Setup

func Setup() (err error)

Setup sets up the server for remote connections

Types

type Req

type Req struct {
	*fibre.Context
}

func (*Req) Body

func (r *Req) Body() io.Reader

func (*Req) Fibre

func (r *Req) Fibre() *fibre.Context

func (*Req) Head

func (r *Req) Head() map[string]string

func (*Req) Host

func (r *Req) Host() string

func (*Req) IP

func (r *Req) IP() net.IP

func (*Req) Meth

func (r *Req) Meth() string

func (*Req) Pass

func (r *Req) Pass() string

func (*Req) Path

func (r *Req) Path() string

func (*Req) Query

func (r *Req) Query() string

func (*Req) User

func (r *Req) User() string

type Res

type Res struct {
	*fibre.Context
}

func (*Res) Body

func (r *Res) Body() io.Writer

func (*Res) Cbor

func (r *Res) Cbor(code int, data interface{})

func (*Res) Code

func (r *Res) Code(code int)

func (*Res) Head

func (r *Res) Head(key, val string)

func (*Res) Html

func (r *Res) Html(code int, data interface{})

func (*Res) Json

func (r *Res) Json(code int, data interface{})

func (*Res) Pack

func (r *Res) Pack(code int, data interface{})

func (*Res) Text

func (r *Res) Text(code int, data interface{})

func (*Res) Xml

func (r *Res) Xml(code int, data interface{})

Jump to

Keyboard shortcuts

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