Versions in this module Expand all Collapse all v1 v1.0.0 May 13, 2019 Changes in this version + type MsOption func(*MsOptions) + func Address(address string) MsOption + func ID(id string) MsOption + func Name(name string) MsOption + func WitStreamLoggingMiddleware(logger *zap.Logger) MsOption + func WitStreamPrometheusMiddleware() MsOption + func WitUnaryLoggingMiddleware(logger *zap.Logger) MsOption + func WitUnaryPrometheusMiddleware() MsOption + func WithConnTimeout(t time.Duration) MsOption + func WithHTTPMiddleware(mw func(http.Handler) http.Handler) MsOption + func WithHealthz() MsOption + func WithMaxConcurrentStreams(num uint32) MsOption + func WithReflection() MsOption + func WithRestIncomingHeaderMatcher(matcher runtime.HeaderMatcherFunc) MsOption + func WithRestLoggingMiddleware(logger *zap.Logger) MsOption + func WithRestMarshaler(mime string, msh runtime.Marshaler) MsOption + func WithRestOutgoingHeaderMatcher(matcher runtime.HeaderMatcherFunc) MsOption + func WithRestServices(services ...restMw.RestService) MsOption + func WithServices(services ...middleware.GrpcService) MsOption + type MsOptions struct + Address string + GrpcOptions []grpc.ServerOption + ID string + Name string + RestMiddleware alice.Chain + RestOptions []runtime.ServeMuxOption + RestServices []restMw.RestService + Services []middleware.GrpcService + StreamInterceptors []grpc.StreamServerInterceptor + UnaryInterceptors []grpc.UnaryServerInterceptor + UsePrometheus bool + Version string + func New(options ...MsOption) *MsOptions + func (c *MsOptions) ServerOptions() []grpc.ServerOption