Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultServer ¶
type DefaultServer struct { *http.Server *service.Registry // contains filtered or unexported fields }
DefaultServer 默认服务器
func (*DefaultServer) Serve ¶
func (s *DefaultServer) Serve(r *router.Router)
type Option ¶
type Option func(server *DefaultServer)
func Startup ¶
func Startup(startup func(*DefaultServer) error) Option
Click to show internal directories.
Click to hide internal directories.