grpc

package
v1.13.10 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grpc

type Grpc interface {
	// Run starts the gRPC server.
	Run(host ...string) error
	// Server gets the gRPC server instance.
	Server() *grpc.Server
	// Client gets the gRPC client instance.
	Client(ctx context.Context, name string) (*grpc.ClientConn, error)
	// UnaryServerInterceptors sets the gRPC server interceptors.
	UnaryServerInterceptors([]grpc.UnaryServerInterceptor)
	// UnaryClientInterceptorGroups sets the gRPC client interceptor groups.
	UnaryClientInterceptorGroups(map[string][]grpc.UnaryClientInterceptor)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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