composeService

package
v0.0.0-...-2168c39 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2015 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmpty = errors.New("empty string")

ErrEmpty is returned when an input string is empty.

Functions

func DecodeComposeRequest

func DecodeComposeRequest(r *http.Request) (interface{}, error)

func EncodeResponse

func EncodeResponse(w http.ResponseWriter, response interface{}) error

func MakeComposeEndpoint

func MakeComposeEndpoint(svc ComposeServiceI) endpoint.Endpoint

Types

type ComposeService

type ComposeService struct{}

func (ComposeService) Compose

func (ComposeService) Compose(s string) error

type ComposeServiceI

type ComposeServiceI interface {
	Compose(string) error
}

ComposeService provides operations on strings.

Jump to

Keyboard shortcuts

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