server

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: GPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Response

func Response(data string, status int) api.Response

func Thread

func Thread(handlers HandlerMap, data *api.Request) (api.Response, error)

Types

type Handler

type Handler func(input *api.Request) (response api.Response, err error)

Handler function type

type HandlerMap

type HandlerMap map[string]Handler

HandlerMap holds a map of handler names to their corresponding functions

Jump to

Keyboard shortcuts

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