Documentation ¶
Index ¶
- Constants
- func ConvertEntry(in interfaces.IEntry) *protocol.FactomDataEntry
- func ReadObjectFile(buff []byte, logger log.Logger, fn func(header *Header, object interface{})) error
- type EntryMetadata
- func (v *EntryMetadata) Copy() *EntryMetadata
- func (v *EntryMetadata) CopyAsInterface() interface{}
- func (v *EntryMetadata) Equal(u *EntryMetadata) bool
- func (v *EntryMetadata) IsValid() error
- func (v *EntryMetadata) MarshalBinary() ([]byte, error)
- func (v *EntryMetadata) MarshalJSON() ([]byte, error)
- func (v *EntryMetadata) UnmarshalBinary(data []byte) error
- func (v *EntryMetadata) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *EntryMetadata) UnmarshalJSON(b []byte) error
- type Header
Constants ¶
View Source
const ( TagDBlock = iota // Blockchain structs TagABlock TagFBlock TagECBlock TagEBlock TagEntry TagTX TagFCT // Balances TagEC )
Variables ¶
This section is empty.
Functions ¶
func ConvertEntry ¶
func ConvertEntry(in interfaces.IEntry) *protocol.FactomDataEntry
Types ¶
type EntryMetadata ¶
type EntryMetadata struct { DBlockKeyMR [32]byte `json:"dblockKeyMR,omitempty" form:"dblockKeyMR" query:"dblockKeyMR" validate:"required"` DBlockHeight uint64 `json:"dblockHeight" form:"dblockHeight" query:"dblockHeight" validate:"required"` EBlockKeyMR [32]byte `json:"eblockKeyMR,omitempty" form:"eblockKeyMR" query:"eblockKeyMR" validate:"required"` EBlockSequenceNumber uint64 `json:"eblockSequenceNumber" form:"eblockSequenceNumber" query:"eblockSequenceNumber" validate:"required"` EntryIndex uint64 `json:"entryIndex" form:"entryIndex" query:"entryIndex" validate:"required"` // contains filtered or unexported fields }
func (*EntryMetadata) Copy ¶
func (v *EntryMetadata) Copy() *EntryMetadata
func (*EntryMetadata) CopyAsInterface ¶
func (v *EntryMetadata) CopyAsInterface() interface{}
func (*EntryMetadata) Equal ¶
func (v *EntryMetadata) Equal(u *EntryMetadata) bool
func (*EntryMetadata) IsValid ¶
func (v *EntryMetadata) IsValid() error
func (*EntryMetadata) MarshalBinary ¶
func (v *EntryMetadata) MarshalBinary() ([]byte, error)
func (*EntryMetadata) MarshalJSON ¶
func (v *EntryMetadata) MarshalJSON() ([]byte, error)
func (*EntryMetadata) UnmarshalBinary ¶
func (v *EntryMetadata) UnmarshalBinary(data []byte) error
func (*EntryMetadata) UnmarshalBinaryFrom ¶
func (v *EntryMetadata) UnmarshalBinaryFrom(rd io.Reader) error
func (*EntryMetadata) UnmarshalJSON ¶
func (v *EntryMetadata) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.