Documentation ¶
Index ¶
- Variables
- type Design
- func (de *Design) AddProject(project string)
- 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) Projects() []string
- type DesignBSONUnmarshaler
- type DesignJSONMarshaler
- type DesignJSONUnmarshaler
- type Item
- func (t Item) Bytes() []byte
- func (t Item) Data() string
- func (t *Item) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (t *Item) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (t Item) Equal(ct Item) bool
- func (t Item) IsValid([]byte) error
- func (t Item) MarshalBSON() ([]byte, error)
- func (t Item) MarshalJSON() ([]byte, error)
- func (t Item) ProjectID() string
- func (t Item) RequestTimeStamp() uint64
- func (t Item) ResponseTimeStamp() uint64
- func (t Item) TimestampID() uint64
- type TimeStampItemBSONUnmarshaler
- type TimeStampItemJSONMarshaler
- type TimeStampItemJSONUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxProjectIDLen = 10 MaxDataLen = 1024 )
View Source
var DesignHint = hint.MustNewHint("mitum-timestamp-design-v0.0.1")
View Source
var ItemHint = hint.MustNewHint("mitum-timestamp-item-v0.0.1")
Functions ¶
This section is empty.
Types ¶
type Design ¶
type Design struct { hint.BaseHinter // contains filtered or unexported fields }
func (*Design) AddProject ¶
func (Design) GenerateHash ¶
func (Design) MarshalBSON ¶
func (Design) MarshalJSON ¶
type DesignBSONUnmarshaler ¶
type DesignJSONMarshaler ¶
type DesignJSONMarshaler struct { hint.BaseHinter Projects []string `json:"projects_id"` }
type DesignJSONUnmarshaler ¶
type Item ¶
type Item struct { hint.BaseHinter // contains filtered or unexported fields }
func (Item) MarshalBSON ¶
func (Item) MarshalJSON ¶
func (Item) RequestTimeStamp ¶
func (Item) ResponseTimeStamp ¶
func (Item) TimestampID ¶
Click to show internal directories.
Click to hide internal directories.