jsonapi

package
v2.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIKeyHeader = "API-Key"

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	LogFunc func(msg string, args ...interface{})
	// contains filtered or unexported fields
}

Handlers holds the handlers for the HTTP endpoints

func NewHandlers

func NewHandlers(gr *fgrpc.Server) *Handlers

func (*Handlers) BuildCancelHandler

func (h *Handlers) BuildCancelHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) BuildRequestHandler

func (h *Handlers) BuildRequestHandler(w http.ResponseWriter, r *http.Request)

REST interface handlers (proxy to gRPC handlers)

func (*Handlers) BuildStatusHandler

func (h *Handlers) BuildStatusHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) Register

func (h *Handlers) Register(r *mux.Router)

Jump to

Keyboard shortcuts

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