validations

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package validations adds an internal framework API to validate structures without tag annotations. Despite the fact it also has support for tag annotations in order to skip validation for specific structure members.

The main usage for this API is to validate a service main structure, usually the place where its main API are implemented (RPCs and subscription handlers), in an automatic way to avoid using uninitialized members while the service is running.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureValuesAreInitialized

func EnsureValuesAreInitialized(v interface{}) error

EnsureValuesAreInitialized certifies that all members of a struct v have some valid value. It requires a struct object to be passed as argument, and it considers a pointer member with nil value as uninitialized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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