service: define and implement Token field composing interface

This commit:

  * defines SessionToken interface of Token field getters/setters group;

  * implements SessionToken on Token message.
This commit is contained in:
Leonard Lyubich 2020-04-28 16:58:07 +03:00
parent 942bedb8ed
commit d327d836c4
3 changed files with 225 additions and 0 deletions

View file

@ -37,6 +37,18 @@ type (
OwnerID chain.WalletAddress
)
// OwnerIDContainer is an interface of the container of an OwnerID value.
type OwnerIDContainer interface {
GetOwnerID() OwnerID
SetOwnerID(OwnerID)
}
// AddressContainer is an interface of the container of object address value.
type AddressContainer interface {
GetAddress() Address
SetAddress(Address)
}
const (
// UUIDSize contains size of UUID.
UUIDSize = 16