Documentation ¶
Index ¶
- Variables
- func GetItemByID(c *web.Context, itemID string) (*item.Item, error)
- func Rewrite(c *web.Context) func(*http.Request)
- func RewritePath(c *web.Context, targetPath string) func(*http.Request)
- func SignServiceRequest(context interface{}, signer auth.Signer, r *http.Request) error
- func UpsertItem(c *web.Context, itm *item.Item) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrItemNotFound is when the item is not found. ErrItemNotFound = errors.New("Item not found") // ErrNotAnItem is returned when the interface{} is not an Item{}. ErrNotAnItem = errors.New("Not an item") // ErrServiceNotSet is returned when the URL for the service is not setup. ErrServiceNotSet = errors.New("Service Sponged not found") )
Functions ¶
func GetItemByID ¶ added in v0.4.3
GetItemByID returns an item based on its item_id.
func RewritePath ¶
RewritePath will rewrite the path given a PathRewriter and return the request director function.
func SignServiceRequest ¶ added in v0.4.2
SignServiceRequest signs a request with the claims necessary to authenticate with downstream services.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.