{"modulePath":"github.com/AlaudaDevops/pkg","version":"v0.14.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package route\n\nPackage route contains useful functionality for the package route\n\n## Functions\n\n```go\nfunc NewDefaultService(ctx context.Context) *restful.WebService\n```\nNewDefaultService default service included with metrics,pprof\n\n```go\nfunc NoOpFilter(req *restful.Request, res *restful.Response, chain *restful.FilterChain)\n```\nNoOpFilter creates a default no operation filter\n\n## Types\n\n```go\ntype ContextRoute interface {\n\tRegister(ctx context.Context, ws *restful.WebService) error\n}\n```\nContextRoute is a service should implement register func to register go restful webservice\n\n```go\ntype Route interface {\n\tRegister(ws *restful.WebService)\n}\n```\nRoute a service should implement register func to register go restful webservice Deprecated: replaced by ContextRoute\n\n```go\nfunc NewHealthz(ctx context.Context) Route\n```\nNewHealthz basic health check service\n\n```go\nfunc NewSystem(ctx context.Context) Route\n```\n\n","path":"github.com/AlaudaDevops/pkg/route","name":"route","synopsis":"Package route contains useful functionality for the package route","isRedistributable":true}
