rest

package
v0.0.0-...-83e654d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestMessageAPI

type RestMessageAPI struct {
	// contains filtered or unexported fields
}

RestMessageAPI is a struct representing a router's connector for a REST API.

func NewRestMessageAPI

func NewRestMessageAPI(router router.Router, prefix string) *RestMessageAPI

NewRestMessageAPI returns a new RestMessageAPI.

func (*RestMessageAPI) GetPrefix

func (api *RestMessageAPI) GetPrefix() string

GetPrefix returns the prefix. It is a part of the service.endpoint implementation.

func (*RestMessageAPI) ServeHTTP

func (api *RestMessageAPI) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is an http.Handler. It is a part of the service.endpoint implementation.

Jump to

Keyboard shortcuts

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