forked from TrueCloudLab/frostfs-api-go
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:
parent
942bedb8ed
commit
d327d836c4
3 changed files with 225 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue