wire

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package wire contains shared result-encoding mechanics, not public envelopes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Findings

func Findings(values []validation.Result) []validation.Result

Findings returns a copy with non-nil array semantics.

func Messages

func Messages(values []string) []string

Messages returns an independent non-nil array.

func Payload

func Payload(value any, encode func(any) ([]byte, error)) (json.RawMessage, error)

Payload omits null payloads without treating scalar zero as absent.

func StatusCode

func StatusCode(success, authorized, valid, ready bool) int

StatusCode implements EndpointRouteHelper precedence, not ingress exceptions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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