grpc

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallOption

func NewCallOption(opts ...CallOption) []grpc.CallOption

func NewDialOption

func NewDialOption(opts ...DialOptionFunc) []grpc.DialOption

func NewServerOption

func NewServerOption(opts ...ServerOptionFunc) []grpc.ServerOption

func RegisterGateway added in v1.0.1

func RegisterGateway(ctx context.Context, endpoint string, registers []RegisterMux) (handler http.Handler, err error)

RegisterGateway generate grpc-gateway mux http.Handler

func RegisterTools

func RegisterTools(s *grpc.Server)

RegisterTools register common grpc tools

Types

type CallOption

type CallOption struct{}

type CallOptionFunc

type CallOptionFunc func(*CallOption)

type DialOption

type DialOption struct {
	// contains filtered or unexported fields
}

type DialOptionFunc

type DialOptionFunc func(*DialOption)

func DialOptionResolver added in v1.0.3

func DialOptionResolver(r resolver.Builder) DialOptionFunc

type RegisterGRPC

type RegisterGRPC func(s *grpc.Server)

type RegisterMux

type RegisterMux func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error

type ServerOption

type ServerOption struct {
	// contains filtered or unexported fields
}

type ServerOptionFunc

type ServerOptionFunc func(*ServerOption)

func ServerOptionLogger

func ServerOptionLogger(l logger.Logger) ServerOptionFunc

Directories

Path Synopsis
middleware
log

Jump to

Keyboard shortcuts

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