httpin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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(req *incoming.Request, mm *pluginapi.Client, w http.ResponseWriter, r *http.Request) bool

func RequireSysadmin added in v1.0.0

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

func RequireSysadminOrPlugin added in v1.0.0

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

func RequireUser added in v1.0.0

func RequireUser(req *incoming.Request, mm *pluginapi.Client, w http.ResponseWriter, r *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, log 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, r *http.Request)

type Service

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

func NewService

func NewService(mm *pluginapi.Client, router *mux.Router, config config.Service, log 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