Documentation
¶
Index ¶
- Variables
- type Manifest
- func (m *Manifest) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (m Manifest) Hash() util.Hash
- func (m Manifest) Height() base.Height
- func (m Manifest) IsValid([]byte) error
- func (m Manifest) MarshalBSON() ([]byte, error)
- func (m Manifest) MarshalJSON() ([]byte, error)
- func (m Manifest) OperationsTree() util.Hash
- func (m Manifest) Previous() util.Hash
- func (m Manifest) Proposal() util.Hash
- func (m Manifest) ProposedAt() time.Time
- func (m Manifest) StatesTree() util.Hash
- func (m Manifest) Suffrage() util.Hash
- func (m *Manifest) UnmarshalJSON(b []byte) error
- type ManifestBSONUnmarshaler
- type ManifestJSONMarshaler
- type ManifestJSONUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ManifestHint = hint.MustNewHint("digest-manifest-v0.0.1")
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct {
hint.BaseHinter
// contains filtered or unexported fields
}
func NewManifest ¶
func (Manifest) MarshalBSON ¶
func (Manifest) MarshalJSON ¶
func (Manifest) OperationsTree ¶
func (Manifest) ProposedAt ¶
func (Manifest) StatesTree ¶
func (*Manifest) UnmarshalJSON ¶
type ManifestBSONUnmarshaler ¶
type ManifestBSONUnmarshaler struct {
Hint string `bson:"_hint"`
ProposedAt time.Time `bson:"proposed_at"`
StatesTree string `bson:"states_tree"`
Hash string `bson:"hash"`
Previous string `bson:"previous"`
Proposal string `bson:"proposal"`
OperationsTree string `bson:"operations_tree"`
Suffrage string `bson:"suffrage"`
Height base.Height `bson:"height"`
}
type ManifestJSONMarshaler ¶
type ManifestJSONMarshaler struct {
ProposedAt time.Time `json:"proposed_at"`
StatesTree util.Hash `json:"states_tree"`
Hash util.Hash `json:"hash"`
Previous util.Hash `json:"previous"`
Proposal util.Hash `json:"proposal"`
OperationsTree util.Hash `json:"operations_tree"`
Suffrage util.Hash `json:"suffrage"`
hint.BaseHinter
Height base.Height `json:"height"`
}
type ManifestJSONUnmarshaler ¶
type ManifestJSONUnmarshaler struct {
ProposedAt localtime.Time `json:"proposed_at"`
Hash valuehash.HashDecoder `json:"hash"`
Previous valuehash.HashDecoder `json:"previous"`
Proposal valuehash.HashDecoder `json:"proposal"`
OperationsTree valuehash.HashDecoder `json:"operations_tree"`
StatesTree valuehash.HashDecoder `json:"states_tree"`
Suffrage valuehash.HashDecoder `json:"suffrage"`
Height base.HeightDecoder `json:"height"`
}
Click to show internal directories.
Click to hide internal directories.