stdcrpc

package
v0.0.88 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 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