endpoints

package
v0.0.0-...-4d495be Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(cfg *shared.AppConfig) (*restful.Container, error)

API Exposes the restful container for API's API: /v1/

Types

type HealthCheckFunction

type HealthCheckFunction func(*restful.Request, *restful.Response) string

type HealthCheckResource

type HealthCheckResource struct {
	HealthCheckFunc HealthCheckFunction
}

func (*HealthCheckResource) Register

func (ref *HealthCheckResource) Register(container *restful.Container, prefix string)

type ValidationError

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

ValidationError - Validation error class.

func (*ValidationError) Error

func (err *ValidationError) Error() string

Error - Print error as string.

func (*ValidationError) MarshalJSON

func (err *ValidationError) MarshalJSON() ([]byte, error)

MarshalJSON - Print error as json bytes.

Jump to

Keyboard shortcuts

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