Documentation ¶ Index ¶ func DialContext(_ context.Context, network, address string) (net.Conn, error) type Server func NewServer(svc string, serverer Serverer, logger *zap.Logger, sh fx.Shutdowner) *Server func (s *Server) Start() func (s *Server) Stop(ctx context.Context) type Serverer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DialContext ¶ added in v1.158.1 func DialContext(_ context.Context, network, address string) (net.Conn, error) DialContext for net. Types ¶ type Server ¶ added in v1.164.0 type Server struct { // contains filtered or unexported fields } Server for net. func NewServer ¶ added in v1.164.0 func NewServer(svc string, serverer Serverer, logger *zap.Logger, sh fx.Shutdowner) *Server NewServer for net. func (*Server) Start ¶ added in v1.164.0 func (s *Server) Start() Start the server. func (*Server) Stop ¶ added in v1.164.0 func (s *Server) Stop(ctx context.Context) Stop the server. type Serverer ¶ added in v1.164.0 type Serverer interface { fmt.Stringer // IsEnabled the underlying server. IsEnabled() bool // Serve the underlying server. Serve() error // Shutdown the underlying server. Shutdown(ctx context.Context) error } Serverer for net. Source Files ¶ View all Source files net.go server.go serverer.go Directories ¶ Show internal Expand all Path Synopsis grpc http Click to show internal directories. Click to hide internal directories.