service

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2016 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func (*Service) Register

func (s *Service) Register(container *restful.Container)

Register adds the web service wrapped by the Service to the supplied container. If the supplied container is nil, then the default container is used, instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL