ducky/subscriptions

Paddy 2015-06-22 Child:b063bc0a6e84

4:36e90e828dd0 Go to Latest

ducky/subscriptions/api/response.go

Add an API and subscriptionsd . Create a barebones implementation of the API, including only methods to create a Subscription and retrieve the Subscription associated with a user. Also create a subscriptiond service that will bootstrap the service and stores, and get everything stood up.

History
1 package api
3 import (
4 "code.secondbit.org/api.hg"
5 "code.secondbit.org/ducky/subscriptions.hg"
6 )
8 type Response struct {
9 Subscriptions []subscriptions.Subscription `json:"subscriptions,omitempty"`
10 Errors []api.RequestError `json:"errors,omitempty"`
11 }