auth

Paddy 2014-09-07 Parent:607708cd8829 Child:113ccb15b919

38:1f7b44b130a0 Go to Latest

auth/memstore.go

Update profiles and add tests. Add tests for profile storage. Make Memstore implement the profilestore interface. Get the groundwork of profiles laid.

History
     1.1 --- a/memstore.go	Sun Sep 07 19:07:48 2014 -0400
     1.2 +++ b/memstore.go	Sun Sep 07 19:09:01 2014 -0400
     1.3 @@ -18,6 +18,9 @@
     1.4  	clients             map[string]Client
     1.5  	profileClientLookup map[string][]uuid.ID
     1.6  	clientLock          sync.RWMutex
     1.7 +
     1.8 +	profiles    map[string]Profile
     1.9 +	profileLock sync.RWMutex
    1.10  }
    1.11  
    1.12  func NewMemstore() *Memstore {
    1.13 @@ -28,6 +31,7 @@
    1.14  		grants:              map[string]Grant{},
    1.15  		clients:             map[string]Client{},
    1.16  		profileClientLookup: map[string][]uuid.ID{},
    1.17 +		profiles:            map[string]Profile{},
    1.18  	}
    1.19  }
    1.20