rest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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,
	logger logging.Logger,
) *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"`
}

type StatusDataFailuresResponseObject added in v1.4.0

type StatusDataFailuresResponseObject struct {
	Unacknowledged []output.Session `json:"unacknowledged"`
	Acknowledged   []output.Session `json:"acknowledged"`
}

type StatusDataResponseObject added in v1.4.0

type StatusDataResponseObject struct {
	Applications []output.Application             `json:"applications"`
	Sessions     []output.Session                 `json:"sessions"`
	Failures     StatusDataFailuresResponseObject `json:"failures"`
}

Jump to

Keyboard shortcuts

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