@@ -17,12 +17,12 @@ import (
1717
1818// Agent represents a known agent in the registry
1919type Agent struct {
20- DID string `json:"did"`
21- FirstSeen time.Time `json:"first_seen"`
22- LastSeen time.Time `json:"last_seen"`
23- RepoCount int `json:"repos"`
24- CommitCount int `json:"commits"`
25- TrustScore float64 `json:"trust_score"`
20+ DID string `json:"did"`
21+ FirstSeen time.Time `json:"first_seen"`
22+ LastSeen time.Time `json:"last_seen"`
23+ RepoCount int `json:"repos"`
24+ CommitCount int `json:"commits"`
25+ TrustScore float64 `json:"trust_score"`
2626}
2727
2828// AgentRegistry tracks known agents
@@ -292,11 +292,11 @@ func DelegateCapability(id *identity.Identity) http.HandlerFunc {
292292 w .Header ().Set ("Content-Type" , "application/json" )
293293 w .WriteHeader (http .StatusCreated )
294294 json .NewEncoder (w ).Encode (map [string ]interface {}{
295- "token" : token ,
296- "issuer" : ucan .Issuer ,
295+ "token" : token ,
296+ "issuer" : ucan .Issuer ,
297297 "audience" : ucan .Audience ,
298- "expires" : ucan .Expires ,
299- "caps" : ucan .Caps ,
298+ "expires" : ucan .Expires ,
299+ "caps" : ucan .Caps ,
300300 })
301301 }
302302}
@@ -313,8 +313,8 @@ func GenerateDID() http.HandlerFunc {
313313 w .Header ().Set ("Content-Type" , "application/json" )
314314 w .WriteHeader (http .StatusCreated )
315315 json .NewEncoder (w ).Encode (map [string ]interface {}{
316- "did" : id .DID ,
317- "document" : id .DIDDocument (),
316+ "did" : id .DID ,
317+ "document" : id .DIDDocument (),
318318 })
319319 }
320320}
0 commit comments