utils

package
v0.0.0-...-a189380 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version  is dynamically set at build time
	Version = "DEV"
	// BuildDate is dynamically set at build time
	BuildDate = "" // YYYY-MM-DD
)
View Source
var (
	ErrValidationError = errors.New("validation error")
)

Functions

func ServiceVersionInformation

func ServiceVersionInformation() string

Types

type HTTPError

type HTTPError struct {
	Error   string `json:"error"`
	Message string `json:"message"`
}

func ValidationError

func ValidationError(message string) *HTTPError

Jump to

Keyboard shortcuts

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