grpcf

package
v0.20.8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseContextStreamInterceptor

func BaseContextStreamInterceptor(
	ctxInterceptor func(context.Context) context.Context,
) grpc.StreamServerInterceptor

func BaseContextUnaryInterceptor

func BaseContextUnaryInterceptor(
	ctxInterceptor func(context.Context) context.Context,
) grpc.UnaryServerInterceptor

func InterfaceToProtoAny

func InterfaceToProtoAny(v any) (*anypb.Any, error)

func ProtoAnyToInterface

func ProtoAnyToInterface(anyValue *anypb.Any) (any, error)

func SetEchoServers

func SetEchoServers(server *grpc.Server, healthPing time.Duration)

Types

type CredentialsProvider

type CredentialsProvider interface {
	Options(ctx context.Context) ([]grpc.DialOption, error)
}

type GcloudCredentialsProvider

type GcloudCredentialsProvider struct {
	Host string
}

func (*GcloudCredentialsProvider) Options

func (provider *GcloudCredentialsProvider) Options(ctx context.Context) ([]grpc.DialOption, error)

type LocalCredentialsProvider

type LocalCredentialsProvider struct{}

func (*LocalCredentialsProvider) Options

func (provider *LocalCredentialsProvider) Options(_ context.Context) ([]grpc.DialOption, error)

Directories

Path Synopsis
proto
gen

Jump to

Keyboard shortcuts

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