Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2021 Changes in this version + func StreamInterceptorChain(interceptors ...grpc.StreamServerInterceptor) grpc.StreamServerInterceptor + func UnaryInterceptorChain(interceptors ...grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor + type Config struct + Deployment string + DisableMetric bool + DisableTrace bool + Host string + Network string + Port int + ServiceAddress string + SlowQueryThresholdInMilli int64 + func DefaultConfig() *Config + func RawConfig(key string) *Config + func StdConfig(name string) *Config + func (config *Config) Build() *Server + func (config *Config) WithLogger(logger *xlog.Logger) *Config + func (config *Config) WithServerOption(options ...grpc.ServerOption) *Config + func (config *Config) WithStreamInterceptor(intes ...grpc.StreamServerInterceptor) *Config + func (config *Config) WithUnaryInterceptor(intes ...grpc.UnaryServerInterceptor) *Config + func (config Config) Address() string + type Server struct + func (s *Server) GracefulStop(ctx context.Context) error + func (s *Server) Info() *server.ServiceInfo + func (s *Server) Serve() error + func (s *Server) Stop() error