handlers

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigHandlers

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

ConfigHandlers implement methods into restapi

func NewConfigHandlers

func NewConfigHandlers(store store.Store) ConfigHandlers

NewConfigHandlers initialize new controller

func (*ConfigHandlers) CreateHostRulesHandler

func (configHandler *ConfigHandlers) CreateHostRulesHandler(
	params config.CreateHostRulesParams,
	_principal interface{},
) middleware.Responder

CreateHostRulesHandler is handler for CreateHostRules

func (*ConfigHandlers) DeleteHostRulesHandler

func (configHandler *ConfigHandlers) DeleteHostRulesHandler(
	params config.DeleteHostRulesParams,
	_principal interface{},
) middleware.Responder

DeleteHostRulesHandler is handler for DeleteHostRules

func (*ConfigHandlers) GetHostRulesHandler

func (configHandler *ConfigHandlers) GetHostRulesHandler(
	params config.GetHostRuleParams,
	_principal interface{},
) middleware.Responder

GetHostRulesHandler is handler for GetHostRules

func (*ConfigHandlers) HealthCheckHandler

func (configHandler *ConfigHandlers) HealthCheckHandler(
	params redirect.HealthcheckParams,
) middleware.Responder

HealthCheckHandler is handler for HealthCheck

func (*ConfigHandlers) ListHostRulesHandler

func (configHandler *ConfigHandlers) ListHostRulesHandler(
	params config.ListHostRulesParams,
	_principal interface{},
) middleware.Responder

ListHostRulesHandler is handler for ListHostRules

func (*ConfigHandlers) UpdateHostRulesHandler

func (configHandler *ConfigHandlers) UpdateHostRulesHandler(
	params config.UpdateHostRulesParams,
	_principal interface{},
) middleware.Responder

UpdateHostRulesHandler is handler for UpdateHostRules

type LocalesHandler

type LocalesHandler models.Locales

LocalesHandler is handler for locales

func (LocalesHandler) Handle

Handle implement config.LocalesHandler.handle

type RedirectHandler

type RedirectHandler struct {
	store.Store
	resolvers.HostRulesResolver
}

RedirectHandler is handler for redirect requests

func NewRedirectHandler

func NewRedirectHandler(
	store store.Store,
	resolver resolvers.HostRulesResolver,
) *RedirectHandler

NewRedirectHandler build new RedirectHandler

func (*RedirectHandler) ServeHTTP

func (rh *RedirectHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP handle all requests for redirect. If target not found, then respond with 404 code. If store return error, then respond with 500 code.

Jump to

Keyboard shortcuts

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