wsgi

package
v0.0.0-...-1cd5cd2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUpRestfulService

func SetUpRestfulService(u Wsgi)

SetUpRestfulService create a restful service and start serving request

Types

type Data

type Data struct {
	Key   string `json:"key" description:"key of the data"`
	Value string `json:"value" description:"value of the data" default:""`
}

Data struct for input and output data

type Wsgi

type Wsgi struct {
	Bitcask *storage.Bitcask
}

Wsgi wsgi-like struct of the restful service

Jump to

Keyboard shortcuts

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