service: access Token message fields through getters and setters
This commit is contained in:
parent
091f953ebf
commit
c6971d2004
6 changed files with 36 additions and 43 deletions
|
@ -334,14 +334,14 @@ func Stringify(dst io.Writer, obj *Object) error {
|
|||
val = fmt.Sprintf("{"+
|
||||
"ID=%s OwnerID=%s Verb=%s Address=%s Created=%d ValidUntil=%d SessionKey=%02x Signature=%02x"+
|
||||
"}",
|
||||
t.Token.Token_Info.ID,
|
||||
t.Token.Token_Info.OwnerID,
|
||||
t.Token.Token_Info.Verb,
|
||||
t.Token.Token_Info.Address,
|
||||
t.Token.Token_Info.Created,
|
||||
t.Token.Token_Info.ValidUntil,
|
||||
t.Token.Token_Info.SessionKey,
|
||||
t.Token.Signature)
|
||||
t.Token.GetID(),
|
||||
t.Token.GetOwnerID(),
|
||||
t.Token.GetVerb(),
|
||||
t.Token.GetAddress(),
|
||||
t.Token.CreationEpoch(),
|
||||
t.Token.ExpirationEpoch(),
|
||||
t.Token.GetSessionKey(),
|
||||
t.Token.GetSignature())
|
||||
case *Header_HomoHash:
|
||||
key = "HomoHash"
|
||||
val = t.HomoHash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue