server

package
v0.0.0-...-7fa5cc6 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 9 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) (*grpc.Server, error)

New create a grpc server

func ParseFileDescriptorP

func ParseFileDescriptorP(descriptor protoreflect.FileDescriptor)

ParseFileDescriptor parse file descriptor

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 WithEnforcementPolicy

func WithEnforcementPolicy(enforcementPolicy *keepalive.EnforcementPolicy) Option

WithEnforcementPolicy setup enforcement policy

func WithKeepAlive

func WithKeepAlive(keepalive *keepalive.ServerParameters) Option

WithKeepAlive setup keepalive parameters

func WithVerifyAuth

func WithVerifyAuth(verifyAuth VerifyAuth) Option

WithVerifyAuth setup verify auth builder

type Payload

type Payload = interceptor.Payload

Payload rest or grpc payload

type VerifyAuth

type VerifyAuth = interceptor.VerifyAuth

VerifyAuth verify auth legality

Jump to

Keyboard shortcuts

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