Documentation ¶
Index ¶
- Variables
- type Data
- func (d Data) Bytes() []byte
- func (d Data) DataKey() string
- func (d Data) DataValue() string
- 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) IsDeleted() bool
- func (d Data) IsValid([]byte) error
- func (d Data) MarshalBSON() ([]byte, error)
- func (d Data) MarshalJSON() ([]byte, error)
- func (d *Data) SetDeleted()
- 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 ¶
This section is empty.
Variables ¶
View Source
var ( MaxProjectIDLen = 10 MaxKeyLen = 200 MaxDataLen = 20000 )
View Source
var DataHint = hint.MustNewHint("mitum-storage-data-v0.0.1")
View Source
var DesignHint = hint.MustNewHint("mitum-storage-design-v0.0.1")
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) SetDeleted ¶
func (d *Data) SetDeleted()
type DataBSONUnmarshaler ¶
type DataJSONMarshaler ¶
type DataJSONMarshaler struct { hint.BaseHinter DataKey string `json:"dataKey"` DataValue string `json:"dataValue"` Deleted bool `json:"deleted"` }
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.