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.
Click to show internal directories.
Click to hide internal directories.