Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExpansionHandler ¶
func NewExpansionHandler(backend expander.Expander) restful.RouteFunction
NewExpansionHandler returns a route function that handles an incoming template expansion request, bound to the supplied expander.
Types ¶
type Service ¶
type Service struct {
*restful.WebService
}
A Service wraps a web service that performs template expansion.
func NewService ¶
func NewService(handler restful.RouteFunction) *Service
NewService creates and returns a new Service, initialized with a new restful.WebService configured with a route that dispatches to the supplied handler. The new Service must be registered before accepting traffic by calling Register.
Click to show internal directories.
Click to hide internal directories.