auth
12:63e86d129238 Browse Files
Consistently handle context in client storage interface. Let's at least be consistent about passing or not passing context to the client storage interface. Most our methods don't take the context, so let's just remove it.
1.1 --- a/storage.go Wed Aug 13 07:42:05 2014 -0400 1.2 +++ b/storage.go Wed Aug 13 08:38:18 2014 -0400 1.3 @@ -5,9 +5,9 @@ 1.4 type ClientStore interface { 1.5 GetClient(id uuid.ID) (Client, error) 1.6 CreateClient(name, logo, redirectURI string, owner uuid.ID) (Client, error) 1.7 - UpdateClient(client *Client, name, logo, redirectURI *string) error 1.8 - RemoveClient(id uuid.ID, ctx Context) error 1.9 - ListClients(id uuid.ID, page, num int, ctx Context) ([]Client, error) 1.10 + UpdateClient(client uuid.ID, name, logo, redirectURI *string) error 1.11 + RemoveClient(id uuid.IDt) error 1.12 + ListClients(id uuid.ID, page, num int) ([]Client, error) 1.13 } 1.14 1.15 type TokenStore interface {