Documentation ¶
Index ¶
- Variables
- func DataStateKey(addr mitumbase.Address, key string) string
- func DesignStateKey(addr mitumbase.Address) string
- func GetDataFromState(st mitumbase.State) (types.Data, error)
- func GetDesignFromState(st mitumbase.State) (types.Design, error)
- func IsDataStateKey(key string) bool
- func IsDesignStateKey(key string) bool
- func StorageStateKey(addr mitumbase.Address) string
- type DataStateValue
- func (sv *DataStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (sv *DataStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (sv DataStateValue) HashBytes() []byte
- func (sv DataStateValue) Hint() hint.Hint
- func (sv DataStateValue) IsValid([]byte) error
- func (sv DataStateValue) MarshalBSON() ([]byte, error)
- func (sv DataStateValue) MarshalJSON() ([]byte, error)
- type DataStateValueBSONUnmarshaler
- type DataStateValueJSONUnmarshaler
- type DesignStateValue
- func (sv *DesignStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (sv *DesignStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (sv DesignStateValue) HashBytes() []byte
- func (sv DesignStateValue) Hint() hint.Hint
- func (sv DesignStateValue) IsValid([]byte) error
- func (sv DesignStateValue) MarshalBSON() ([]byte, error)
- func (sv DesignStateValue) MarshalJSON() ([]byte, error)
- type DesignStateValueBSONUnmarshaler
- type DesignStateValueJSONMarshaler
- type DesignStateValueJSONUnmarshaler
- type StorageDataStateValueJSONMarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DesignStateValueHint = hint.MustNewHint("mitum-storage-design-state-value-v0.0.1") StorageStateKeyPrefix = "storage" DesignStateKeySuffix = "design" )
View Source
var ( DataStateValueHint = hint.MustNewHint("mitum-storage-data-state-value-v0.0.1") DataStateKeySuffix = "data" )
Functions ¶
func DesignStateKey ¶
func IsDataStateKey ¶
func IsDesignStateKey ¶
func StorageStateKey ¶
Types ¶
type DataStateValue ¶
type DataStateValue struct { hint.BaseHinter Data types.Data }
func NewDataStateValue ¶
func NewDataStateValue(data types.Data) DataStateValue
func (*DataStateValue) DecodeBSON ¶
func (sv *DataStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*DataStateValue) DecodeJSON ¶
func (sv *DataStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (DataStateValue) HashBytes ¶
func (sv DataStateValue) HashBytes() []byte
func (DataStateValue) Hint ¶
func (sv DataStateValue) Hint() hint.Hint
func (DataStateValue) IsValid ¶
func (sv DataStateValue) IsValid([]byte) error
func (DataStateValue) MarshalBSON ¶
func (sv DataStateValue) MarshalBSON() ([]byte, error)
func (DataStateValue) MarshalJSON ¶
func (sv DataStateValue) MarshalJSON() ([]byte, error)
type DataStateValueJSONUnmarshaler ¶
type DataStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` StorageData json.RawMessage `json:"storage_data"` }
type DesignStateValue ¶
type DesignStateValue struct { hint.BaseHinter Design types.Design }
func NewDesignStateValue ¶
func NewDesignStateValue(design types.Design) DesignStateValue
func (*DesignStateValue) DecodeBSON ¶
func (sv *DesignStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*DesignStateValue) DecodeJSON ¶
func (sv *DesignStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (DesignStateValue) HashBytes ¶
func (sv DesignStateValue) HashBytes() []byte
func (DesignStateValue) Hint ¶
func (sv DesignStateValue) Hint() hint.Hint
func (DesignStateValue) IsValid ¶
func (sv DesignStateValue) IsValid([]byte) error
func (DesignStateValue) MarshalBSON ¶
func (sv DesignStateValue) MarshalBSON() ([]byte, error)
func (DesignStateValue) MarshalJSON ¶
func (sv DesignStateValue) MarshalJSON() ([]byte, error)
type DesignStateValueJSONMarshaler ¶
type DesignStateValueJSONMarshaler struct { hint.BaseHinter Design types.Design `json:"design"` }
type DesignStateValueJSONUnmarshaler ¶
type DesignStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` Design json.RawMessage `json:"design"` }
type StorageDataStateValueJSONMarshaler ¶
type StorageDataStateValueJSONMarshaler struct { hint.BaseHinter Data types.Data `json:"storage_data"` }
Click to show internal directories.
Click to hide internal directories.