helper

package
v0.0.0-...-8fd779a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyTo

func AnyTo[M proto.Message](o *anypb.Any) (M, error)

func CreateOrUpdate

func CreateOrUpdate[M proto.Message, REQT any, REQ item2[REQT], RESP item](createOrUpdate func(context.Context, REQ, ...grpc.CallOption) (RESP, error), ctx context.Context, m M, opts ...grpc.CallOption) (M, error)

func Delete

func Delete[REQT any, REQ id[REQT], RESP any](delete_ func(context.Context, REQ, ...grpc.CallOption) (RESP, error), ctx context.Context, id string, opts ...grpc.CallOption) error

func Get

func Get[M proto.Message, REQT any, REQ id[REQT], RESP item](get func(context.Context, REQ, ...grpc.CallOption) (RESP, error), ctx context.Context, id string, opts ...grpc.CallOption) (M, error)

func List

func List[M proto.Message, REQT any, REQ id[REQT], RESP items](list func(context.Context, REQ, ...grpc.CallOption) (RESP, error), ctx context.Context, id string, opts ...grpc.CallOption) ([]M, error)

func To

func To[M proto.Message](m any) (M, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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