Documentation
¶
Index ¶
- Constants
- Variables
- type Data
- func (d Data) Bytes() []byte
- func (d *Data) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (d *Data) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (d Data) Equal(ct Data) bool
- func (d Data) IsValid([]byte) error
- func (d Data) MarshalBSON() ([]byte, error)
- func (d Data) MarshalJSON() ([]byte, error)
- func (d Data) MerkleRoot() string
- func (d Data) TxID() string
- type DataBSONUnmarshaler
- type DataJSONMarshaler
- type DataJSONUnmarshaler
- type Design
- func (de Design) Bytes() []byte
- func (de *Design) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (de *Design) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (de Design) Equal(cd Design) bool
- func (de Design) GenerateHash() util.Hash
- func (de Design) Hash() util.Hash
- func (de Design) IsValid([]byte) error
- func (de Design) MarshalBSON() ([]byte, error)
- func (de Design) MarshalJSON() ([]byte, error)
- func (de Design) Project() string
- type DesignBSONUnmarshaler
- type DesignJSONMarshaler
- type DesignJSONUnmarshaler
Constants ¶
View Source
const MinKeyLen = 128
View Source
const Nid = "0000"
Variables ¶
View Source
var DataHint = hint.MustNewHint("mitum-d-mile-data-v0.0.1")
View Source
var DesignHint = hint.MustNewHint("mitum-d-mile-design-v0.0.1")
View Source
var DocumentHint = hint.MustNewHint("mitum-d-mile-document-v0.0.1")
View Source
var MaxProjectIDLen = 10
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
hint.BaseHinter
// contains filtered or unexported fields
}
func (Data) MarshalBSON ¶
func (Data) MarshalJSON ¶
func (Data) MerkleRoot ¶
type DataBSONUnmarshaler ¶
type DataJSONMarshaler ¶
type DataJSONMarshaler struct {
hint.BaseHinter
MerkleRoot string `json:"merkle_root"`
TxID string `json:"tx_hash"`
}
type DataJSONUnmarshaler ¶
type Design ¶
type Design struct {
hint.BaseHinter
// contains filtered or unexported fields
}
func (Design) GenerateHash ¶
func (Design) MarshalBSON ¶
func (Design) MarshalJSON ¶
type DesignBSONUnmarshaler ¶
type DesignJSONMarshaler ¶
type DesignJSONMarshaler struct {
hint.BaseHinter
Project string `json:"project"`
}
type DesignJSONUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.