rest

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GzipResponseWriter

type GzipResponseWriter struct {
	io.Writer
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*GzipResponseWriter) Write

func (w *GzipResponseWriter) Write(b []byte) (int, error)

type Handler

type Handler struct {
	Router *httprouter.Router
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(environment utils.Environment, static *services.StaticService, routing *routing.Handler, proxy *proxy.Handler, query *services.QueryService, request *services.RequestService) *Handler

type ResponseObject

type ResponseObject struct {
	Message string `json:"message"`
}

type ResponseObjectWithFailingReason

type ResponseObjectWithFailingReason struct {
	ResponseObject
	Reason interface{} `json:"reason,omitempty"`
}

type ResponseObjectWithResult

type ResponseObjectWithResult struct {
	ResponseObject
	Result interface{} `json:"result,omitempty"`
}

Jump to

Keyboard shortcuts

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