Versions in this module Expand all Collapse all v0 v0.0.1 Oct 7, 2022 Changes in this version + type ListenFunc func() (net.Listener, error) + type Server struct + func NewServer(lisFn ListenFunc, opts ...ServerOption) *Server + func (s *Server) Address() (net.Addr, error) + func (s *Server) Prepare(_ context.Context) error + func (s *Server) Run(ctx context.Context) error + func (s *Server) Stop(ctx context.Context) error + type ServerOption func(s *Server) + func WithLogName(name string) ServerOption + func WithOption(opts ...grpc.ServerOption) ServerOption + func WithStreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption + func WithTLSConfig(c *tls.Config) ServerOption + func WithTimeout(timeout time.Duration) ServerOption + func WithUnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption