server

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 10 Imported by: 5

Documentation

Overview

Package server provides network listeners, e.g. an HTTP (web/REST/JSON) server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx *b.Context, spec m.Map, msg b.Message,
	req *http.Request) bool

func DefaultAction

func DefaultAction(
	ctx *b.Context, spec m.Map, msg b.Message,
	rsp http.ResponseWriter, req *http.Request)

func DoneHandler

func DoneHandler(ctx *b.Context) (loop bool)

func PollAction

func PollAction(
	ctx *b.Context, spec m.Map, pollmsg b.Message,
	rsp http.ResponseWriter, req *http.Request)

func Route

func Route(ctx *b.Context, rsp http.ResponseWriter, req *http.Request)

func StartServer

func StartServer(ctx *b.Context)

func SyncAction

func SyncAction(
	ctx *b.Context, spec m.Map, msg b.Message,
	rsp http.ResponseWriter, req *http.Request)

Types

type RqActionHandler

type RqActionHandler = func(
	*b.Context, m.Map, b.Message, http.ResponseWriter, *http.Request)

func GetActionHandler

func GetActionHandler(ctx *b.Context, spec m.Map, msg b.Message) RqActionHandler

Jump to

Keyboard shortcuts

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