Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + func ChainUnaryServerInterceptors(is ...grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor + func LogUnaryServerInterceptor(logger *zap.Logger) grpc.UnaryServerInterceptor + func RequestValidationUnaryServerInterceptor() grpc.UnaryServerInterceptor + type Option func(*Server) + func WithGRPCReflection() Option + func WithGracePeriod(d time.Duration) Option + func WithJWTAuthUnaryInterceptor(verifier jwt.Verifier, authorizer rpcauth.RBACAuthorizer, logger *zap.Logger) Option + func WithLogUnaryInterceptor(logger *zap.Logger) Option + func WithLogger(logger *zap.Logger) Option + func WithPipedTokenAuthStreamInterceptor(verifier rpcauth.PipedTokenVerifier, logger *zap.Logger) Option + func WithPipedTokenAuthUnaryInterceptor(verifier rpcauth.PipedTokenVerifier, logger *zap.Logger) Option + func WithPort(port int) Option + func WithRequestValidationUnaryInterceptor() Option + func WithService(service Service) Option + func WithTLS(certFile, keyFile string) Option + type Server struct + func NewServer(service Service, opts ...Option) *Server + func (s *Server) Run(ctx context.Context) error + type Service interface + Register func(server *grpc.Server)