stdcrpc

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 access control for our RPC.
Package stdcrpcaccess implements access control for our RPC.

Jump to

Keyboard shortcuts

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