ducky/subscriptions

Paddy 2015-09-27 Parent:36e90e828dd0 Child:b063bc0a6e84

11:0ae1ff0ee306 Go to Latest

ducky/subscriptions/api/response.go

Add comments, move ChangingSystemProperties to the api package. Add comments to all our exported types and variables in subscription.go, both to make golint happy and because it's good to have comments. Move the subscriptions.ChangingSystemProperties helper to api.changingSystemProperties, because it returns API-specific strings and there's no real reason it has to be in the subscriptions package--everything it needs to work on is exported.

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 }