stdcrpc

package
v0.0.148 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package stdcrpc provides re-usable utilities for connect rpc usage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgRead

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

ArgRead makes it more ergonomic to read from protobuf messages input that might turn out to be invalid. It can perform the error handling for this in one go and return well formatted Connect error for it.

func (ArgRead) Error

func (abi ArgRead) Error() error

Error returns the joined error as an InvalidArgument connect error or nil if there were no errors.

func (ArgRead) UUID

func (abi ArgRead) UUID(s string) (uid uuid.UUID, abo ArgRead)

UUID parses a uuid string.

func (ArgRead) UUIDp

func (abi ArgRead) UUIDp(s *string) (uidp *uuid.UUID, abo ArgRead)

UUIDp parses a string pointer into a pointer uuid.

Directories

Path Synopsis
Package stdcrpcaccess implements an access control layer for Connect RPC.
Package stdcrpcaccess implements an access control layer for Connect RPC.
Package stdcrpcintercept holds re-usable connect rpc interceptors.
Package stdcrpcintercept holds re-usable connect rpc interceptors.
Package stdcrpcsnap provides snapshot testing for Connect RPC response.
Package stdcrpcsnap provides snapshot testing for Connect RPC response.

Jump to

Keyboard shortcuts

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