github.com/MetalBlockchain/metalgo@v1.11.9/indexer/container.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package indexer 5 6 import "github.com/MetalBlockchain/metalgo/ids" 7 8 // Container is something that gets accepted 9 // (a block, transaction or vertex) 10 type Container struct { 11 // ID of this container 12 ID ids.ID `serialize:"true"` 13 // Byte representation of this container 14 Bytes []byte `serialize:"true"` 15 // Unix time, in nanoseconds, at which this container was accepted by this node 16 Timestamp int64 `serialize:"true"` 17 }