grpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthHeaderKey          = "X-Auth-Payload"
	AuthorizationHeaderKey = "Authorization"
	MpcSigKey              = "Signature"

	TimeoutSecond = 60
)

Variables

This section is empty.

Functions

func GetClientConnection

func GetClientConnection(serviceName string, options ...interface{}) (*grpc.ClientConn, error)

GetClientConnection Get grpc connection client

func Run

func Run(ctx context.Context, cfg *config.HTTPConfig, grpcOpts grpc.ServerOption, grpcFn RegisterFn, gatewayFn GatewayRegisterFn) error

Types

type ClientOptionPort

type ClientOptionPort uint32

func WithClientPortOption

func WithClientPortOption(port uint32) ClientOptionPort

type GatewayRegisterFn

type GatewayRegisterFn func(ctx context.Context, cfg *config.HTTPConfig, mux *runtime.ServeMux, endPoint string, option []grpc.DialOption) error

type RegisterFn

type RegisterFn func(*grpc.Server)

Jump to

Keyboard shortcuts

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