protoutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoundedReceive

func BoundedReceive[Req any](
	ctx context.Context,
	stream grpc.ServerStream,
	timeout time.Duration,
) (*Req, error)

func MonitorStreamHealth added in v0.4.0

func MonitorStreamHealth[Req any](
	ctx context.Context,
	log *zap.Logger,
	streamer grpc.ServerStream,
	validFn func(*Req) bool,
) <-chan struct{}

func ProtoEqualError added in v0.4.0

func ProtoEqualError(a, b proto.Message) error

func SetEqualError added in v0.4.0

func SetEqualError[T proto.Message](a, b []T) error

func SliceClone added in v0.4.0

func SliceClone[T proto.Message](src []T) []T

func SliceEqualError added in v0.4.0

func SliceEqualError[T proto.Message](a, b []T) error

Types

type Ptr

type Ptr[T any] interface {
	proto.Message
	*T
}

Jump to

Keyboard shortcuts

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