httpin

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireApp added in v1.0.0

func RequireApp(r *incoming.Request, mm *pluginapi.Client, w http.ResponseWriter, req *http.Request) bool

func RequireSysadmin added in v1.0.0

func RequireSysadmin(r *incoming.Request, mm *pluginapi.Client, w http.ResponseWriter, req *http.Request) bool

func RequireSysadminOrPlugin added in v1.0.0

func RequireSysadminOrPlugin(r *incoming.Request, mm *pluginapi.Client, w http.ResponseWriter, req *http.Request) bool

func RequireUser added in v1.0.0

func RequireUser(r *incoming.Request, mm *pluginapi.Client, w http.ResponseWriter, req *http.Request) bool

Types

type Handler added in v1.0.0

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

func NewHandler added in v1.0.0

func NewHandler(mm *pluginapi.Client, config config.Service, baseLog utils.Logger, session incoming.SessionService, router *mux.Router) *Handler

func (*Handler) HandleFunc added in v1.0.0

func (h *Handler) HandleFunc(path string, handlerFunc handlerFunc, checks ...check) *mux.Route

func (*Handler) PathPrefix added in v1.0.0

func (h *Handler) PathPrefix(tpl string) *Handler

func (*Handler) ServeHTTP added in v1.0.0

func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Service

type Service interface {
	ServeHTTP(c *plugin.Context, w http.ResponseWriter, req *http.Request)
}

func NewService

func NewService(mm *pluginapi.Client, router *mux.Router, config config.Service, baseLog utils.Logger, session incoming.SessionService, proxy proxy.Service, appServices appservices.Service,
	initf ...func(*Handler, config.Service, proxy.Service, appservices.Service)) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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