Documentation
¶
Index ¶
- func BaseContextStreamInterceptor(ctxInterceptor func(context.Context) context.Context) grpc.StreamServerInterceptor
- func BaseContextUnaryInterceptor(ctxInterceptor func(context.Context) context.Context) grpc.UnaryServerInterceptor
- func InterfaceToProtoAny(v any) (*anypb.Any, error)
- func ProtoAnyToInterface(anyValue *anypb.Any) (any, error)
- func SetEchoServers(server *grpc.Server, healthPing time.Duration)
- type CredentialsProvider
- type GcloudCredentialsProvider
- type LocalCredentialsProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.