grpc

package
v1.100.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuth added in v1.74.0

func IsAuth(c *token.Config) bool

IsAuth for GRPC.

func NewClient added in v1.74.0

func NewClient(options ClientOpts) (*g.ClientConn, error)

NewClient for gRPC.

func StreamServerInterceptor

func StreamServerInterceptor(cfg *token.Config, tkn *client.Token) []grpc.StreamServerInterceptor

StreamServerInterceptor for gRPC.

func UnaryServerInterceptor

func UnaryServerInterceptor(cfg *token.Config, tkn *client.Token) []grpc.UnaryServerInterceptor

UnaryServerInterceptor for gRPC.

Types

type ClientOpts added in v1.74.0

type ClientOpts struct {
	Lifecycle    fx.Lifecycle
	ClientConfig *c.Config
	TokenConfig  *token.Config
	Logger       *zap.Logger
	Tracer       trace.Tracer
	Meter        metric.Meter
	Token        *ac.Token
}

ClientOpts for gRPC.

Jump to

Keyboard shortcuts

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