hostresthandler

package
v0.0.0-...-e3289a9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostHandler

func NewHostHandler(hI hostindex.HostIndex, logger *log.Logger) http.Handler

Types

type RestReqestValidator

type RestReqestValidator interface {
	//Validate the Host and the backends on the host.
	ValidateHost(host *hostRestImpl) []ValidationError
}

type ValidationError

type ValidationError interface {
	GetCode() string
	GetMessage() string
	SubValidationErrors() []ValidationError
	AddSubValidationError(ValidationError)
}

func NewValidationError

func NewValidationError(code, message string) ValidationError

Jump to

Keyboard shortcuts

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