Documentation
¶
Index ¶
- Variables
- func DesignStateKey(addr mitumbase.Address) string
- func GetDesignFromState(st mitumbase.State) (types.Design, error)
- func GetItemFromState(st mitumbase.State) (types.Item, error)
- func GetLastIdxFromState(st mitumbase.State) (uint64, error)
- func IsDesignStateKey(key string) bool
- func IsItemStateKey(key string) bool
- func IsLastIdxStateKey(key string) bool
- func ItemStateKey(addr mitumbase.Address, pid string, index uint64) string
- func LastIdxStateKey(addr mitumbase.Address, pid string) string
- func TimeStampStateKey(addr mitumbase.Address) string
- 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 ItemStateValue
- func (sv *ItemStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (sv *ItemStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (sv ItemStateValue) HashBytes() []byte
- func (sv ItemStateValue) Hint() hint.Hint
- func (sv ItemStateValue) IsValid([]byte) error
- func (sv ItemStateValue) MarshalBSON() ([]byte, error)
- func (sv ItemStateValue) MarshalJSON() ([]byte, error)
- type ItemStateValueBSONUnmarshaler
- type ItemStateValueJSONUnmarshaler
- type LastIdxStateValue
- func (sv *LastIdxStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (sv *LastIdxStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (sv LastIdxStateValue) HashBytes() []byte
- func (sv LastIdxStateValue) Hint() hint.Hint
- func (sv LastIdxStateValue) IsValid([]byte) error
- func (sv LastIdxStateValue) MarshalBSON() ([]byte, error)
- func (sv LastIdxStateValue) MarshalJSON() ([]byte, error)
- type LastIdxStateValueBSONUnmarshaler
- type LastIdxStateValueJSONMarshaler
- type LastIdxStateValueJSONUnmarshaler
- type TimeStampItemStateValueJSONMarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DesignStateValueHint = hint.MustNewHint("mitum-timestamp-design-state-value-v0.0.1") TimeStampStateKeyPrefix = "timestamp" DesignStateKeySuffix = "design" )
View Source
var ( LastIdxStateValueHint = hint.MustNewHint("mitum-timestamp-last-idx-state-value-v0.0.1") LastIdxStateKeySuffix = "timestampIdx" )
View Source
var ( ItemStateValueHint = hint.MustNewHint("mitum-timestamp-item-state-value-v0.0.1") ItemStateKeySuffix = "item" )
Functions ¶
func DesignStateKey ¶
func IsDesignStateKey ¶
func IsItemStateKey ¶
func IsLastIdxStateKey ¶
func TimeStampStateKey ¶
Types ¶
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 ItemStateValue ¶
type ItemStateValue struct { hint.BaseHinter Item types.Item }
func NewItemStateValue ¶
func NewItemStateValue(item types.Item) ItemStateValue
func (*ItemStateValue) DecodeBSON ¶
func (sv *ItemStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ItemStateValue) DecodeJSON ¶
func (sv *ItemStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (ItemStateValue) HashBytes ¶
func (sv ItemStateValue) HashBytes() []byte
func (ItemStateValue) Hint ¶
func (sv ItemStateValue) Hint() hint.Hint
func (ItemStateValue) IsValid ¶
func (sv ItemStateValue) IsValid([]byte) error
func (ItemStateValue) MarshalBSON ¶
func (sv ItemStateValue) MarshalBSON() ([]byte, error)
func (ItemStateValue) MarshalJSON ¶
func (sv ItemStateValue) MarshalJSON() ([]byte, error)
type ItemStateValueJSONUnmarshaler ¶
type ItemStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` TimeStampItem json.RawMessage `json:"timestamp_item"` }
type LastIdxStateValue ¶
type LastIdxStateValue struct { hint.BaseHinter ProjectID string Index uint64 }
func NewLastIdxStateValue ¶
func NewLastIdxStateValue(pid string, idx uint64) LastIdxStateValue
func (*LastIdxStateValue) DecodeBSON ¶
func (sv *LastIdxStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*LastIdxStateValue) DecodeJSON ¶
func (sv *LastIdxStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (LastIdxStateValue) HashBytes ¶
func (sv LastIdxStateValue) HashBytes() []byte
func (LastIdxStateValue) Hint ¶
func (sv LastIdxStateValue) Hint() hint.Hint
func (LastIdxStateValue) IsValid ¶
func (sv LastIdxStateValue) IsValid([]byte) error
func (LastIdxStateValue) MarshalBSON ¶
func (sv LastIdxStateValue) MarshalBSON() ([]byte, error)
func (LastIdxStateValue) MarshalJSON ¶
func (sv LastIdxStateValue) MarshalJSON() ([]byte, error)
type LastIdxStateValueJSONMarshaler ¶
type LastIdxStateValueJSONMarshaler struct { hint.BaseHinter ProjectID string `json:"project_id"` Index uint64 `json:"last_idx"` }
type TimeStampItemStateValueJSONMarshaler ¶
type TimeStampItemStateValueJSONMarshaler struct { hint.BaseHinter Item types.Item `json:"timestamp_item"` }
Click to show internal directories.
Click to hide internal directories.