service

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleObjectFun

type HandleObjectFun func(obj string)

type Hook

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

func Default

func Default(middlewares ...middleware.MiddleWare) *Hook

func (*Hook) Handle

func (h *Hook) Handle(ctx *utils.Ctx, w *utils.Reponse, r *http.Request) (err error)

func (*Hook) HandleFun

func (h *Hook) HandleFun(f interface{}, ctx *utils.Ctx, w *utils.Reponse, r *http.Request)

func (*Hook) Mutating

func (h *Hook) Mutating(url string, f hook.Mutatingfun)

func (*Hook) NextMiddleware

func (h *Hook) NextMiddleware(ctx *utils.Ctx, w *utils.Reponse, r *http.Request) (err error)

func (*Hook) Query

func (h *Hook) Query() UrlParams

func (*Hook) Route

func (h *Hook) Route(url string, f func(w *utils.Reponse, r *http.Request))

func (*Hook) Run

func (h *Hook) Run(addr, certFile, keyFile string)

func (*Hook) ServeHTTP

func (h *Hook) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Hook) Validating

func (h *Hook) Validating(url string, f hook.ValidateFun)

type Service

type Service struct {
}

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServiceInterface

type ServiceInterface interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

type UrlParams

type UrlParams map[string]string

Jump to

Keyboard shortcuts

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