server

package
v0.141.7 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERROR_INVALID_JSON_CONTENT = `` /* 378-byte string literal not displayed */
View Source
var ERROR_INVALID_JSON_CONTENT2 = `` /* 378-byte string literal not displayed */
View Source
var ERROR_INVALID_JSON_CONTENT3 = `not_a_json`
View Source
var ERROR_INVALID_JSON_CONTENT_MARSHALLINGVALIDATEDRESPONSE = `` /* 378-byte string literal not displayed */
View Source
var ERROR_INVALID_JSON_CONTENT_WRONG_TYPE = `` /* 1628-byte string literal not displayed */
View Source
var OK_VALID_JSON_CONTENT = `` /* 389-byte string literal not displayed */
View Source
var OK_VALID_YAML_CONTENT = `` /* 1628-byte string literal not displayed */

Functions

func CreateRouter

func CreateRouter(
	appConfig config.ServerConfig,
	log *logger.Logger,
	validator validation.ExtensionConfiguration,
) *chi.Mux

Types

type HttpValidateHandler

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

func NewHttpValidateHandler

func NewHttpValidateHandler(log *logger.Logger, validator validation.ExtensionConfiguration) *HttpValidateHandler

func (*HttpValidateHandler) HandlerHealthz

func (h *HttpValidateHandler) HandlerHealthz(w http.ResponseWriter, _ *http.Request)

func (*HttpValidateHandler) HandlerValidate

func (h *HttpValidateHandler) HandlerValidate(w http.ResponseWriter, r *http.Request)

type Response

type Response struct {
	ParsedConfiguration string            `json:"parsedConfiguration,omitempty"`
	ValidationErrors    []validationError `json:"validationErrors,omitempty"`
}

Jump to

Keyboard shortcuts

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