Documentation
¶
Overview ¶
Package route contains useful functionality for the package route
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultService ¶
func NewDefaultService(ctx context.Context) *restful.WebService
NewDefaultService default service included with metrics,pprof
func NoOpFilter ¶
NoOpFilter creates a default no operation filter
Types ¶
type ContextRoute ¶
type ContextRoute interface {
Register(ctx context.Context, ws *restful.WebService) error
}
ContextRoute is a service should implement register func to register go restful webservice
type Route ¶
type Route interface {
Register(ws *restful.WebService)
}
Route a service should implement register func to register go restful webservice Deprecated: replaced by ContextRoute
Click to show internal directories.
Click to hide internal directories.