gateway

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.Logger, options ...Option) (*runtime.ServeMux, []grpc.DialOption)

New create grpc-gateway server mux, and grpc dial options.

func ParseFileDescriptor

func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)

ParseFileDescriptor parse file descriptor

func RegisteWhitelistingValidator

func RegisteWhitelistingValidator(name string, handler interceptor.WhitelistingHandler)

RegisteWhitelistingValidator some handler(s) for whitelisting signature

Types

type Option

type Option func(*option)

Option how setup client

func WithCredential

func WithCredential(credential credentials.TransportCredentials) Option

WithCredential setup credential for tls

func WithDialTimeout

func WithDialTimeout(timeout time.Duration) Option

WithDialTimeout setup the dial timeout

func WithKeepAlive

func WithKeepAlive(keepalive *keepalive.ClientParameters) Option

WithKeepAlive setup keepalive parameters

func WithNotifyHandler

func WithNotifyHandler(handler interceptor.NotifyHandler) Option

WithNotifyHandler notify when got panic

Jump to

Keyboard shortcuts

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