ducky/subscriptions
2015-06-22
Child:b063bc0a6e84
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.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/api/response.go Mon Jun 22 18:50:02 2015 -0400 1.3 @@ -0,0 +1,11 @@ 1.4 +package api 1.5 + 1.6 +import ( 1.7 + "code.secondbit.org/api.hg" 1.8 + "code.secondbit.org/ducky/subscriptions.hg" 1.9 +) 1.10 + 1.11 +type Response struct { 1.12 + Subscriptions []subscriptions.Subscription `json:"subscriptions,omitempty"` 1.13 + Errors []api.RequestError `json:"errors,omitempty"` 1.14 +}