github.com/prysmaticlabs/prysm@v1.4.4/shared/interfaces/metadata_interface.go (about)

     1  package interfaces
     2  
     3  import (
     4  	"github.com/prysmaticlabs/go-bitfield"
     5  	pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
     6  )
     7  
     8  // Metadata returns the interface of a p2p metadata type.
     9  type Metadata interface {
    10  	SequenceNumber() uint64
    11  	AttnetsBitfield() bitfield.Bitvector64
    12  	InnerObject() interface{}
    13  	IsNil() bool
    14  	Copy() Metadata
    15  	MetadataObjV0() *pb.MetaDataV0
    16  	MetadataObjV1() *pb.MetaDataV1
    17  }