server

package
v0.0.0-...-be46193 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalFromRequest

func UnmarshalFromRequest(res *http.Request, out interface{}) error

func WriteError

func WriteError(w http.ResponseWriter, err error)

func WriteSuccess

func WriteSuccess(w http.ResponseWriter, out interface{})

Types

type Error

type Error struct {
	Error string `json:"error"`
}

type HTTPServer

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

func NewServer

func NewServer() HTTPServer

func (HTTPServer) Run

func (s HTTPServer) Run()

Jump to

Keyboard shortcuts

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