Help us shape the future of Go! Take the 2026 Go Developer Survey

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: 0

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