types

package
v0.0.0-...-390575e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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 TimeStampItemHint = 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 NewDesign

func NewDesign(projects ...string) Design

func (*Design) AddProject

func (de *Design) AddProject(project string)

func (Design) Bytes

func (de Design) Bytes() []byte

func (*Design) DecodeBSON

func (de *Design) DecodeBSON(b []byte, enc *bsonenc.Encoder) error

func (*Design) DecodeJSON

func (de *Design) DecodeJSON(b []byte, enc encoder.Encoder) error

func (Design) Equal

func (de Design) Equal(cd Design) bool

func (Design) GenerateHash

func (de Design) GenerateHash() util.Hash

func (Design) Hash

func (de Design) Hash() util.Hash

func (Design) IsValid

func (de Design) IsValid([]byte) error

func (Design) MarshalBSON

func (de Design) MarshalBSON() ([]byte, error)

func (Design) MarshalJSON

func (de Design) MarshalJSON() ([]byte, error)

func (Design) Projects

func (de Design) Projects() []string

type DesignBSONUnmarshaler

type DesignBSONUnmarshaler struct {
	Hint     string   `bson:"_hint"`
	Projects []string `bson:"projects"`
}

type DesignJSONMarshaler

type DesignJSONMarshaler struct {
	hint.BaseHinter
	Projects []string `json:"projects"`
}

type DesignJSONUnmarshaler

type DesignJSONUnmarshaler struct {
	Hint     hint.Hint `json:"_hint"`
	Projects []string  `json:"projects"`
}

type TimeStampItem

type TimeStampItem struct {
	hint.BaseHinter
	// contains filtered or unexported fields
}

func NewTimeStampItem

func NewTimeStampItem(
	pid string,
	reqTS,
	resTS,
	tID uint64,
	data string,
) TimeStampItem

func (TimeStampItem) Bytes

func (t TimeStampItem) Bytes() []byte

func (TimeStampItem) Data

func (t TimeStampItem) Data() string

func (*TimeStampItem) DecodeBSON

func (t *TimeStampItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error

func (*TimeStampItem) DecodeJSON

func (t *TimeStampItem) DecodeJSON(b []byte, enc encoder.Encoder) error

func (TimeStampItem) Equal

func (t TimeStampItem) Equal(ct TimeStampItem) bool

func (TimeStampItem) IsValid

func (t TimeStampItem) IsValid([]byte) error

func (TimeStampItem) MarshalBSON

func (t TimeStampItem) MarshalBSON() ([]byte, error)

func (TimeStampItem) MarshalJSON

func (t TimeStampItem) MarshalJSON() ([]byte, error)

func (TimeStampItem) ProjectID

func (t TimeStampItem) ProjectID() string

func (TimeStampItem) RequestTimeStamp

func (t TimeStampItem) RequestTimeStamp() uint64

func (TimeStampItem) ResponseTimeStamp

func (t TimeStampItem) ResponseTimeStamp() uint64

func (TimeStampItem) TimestampID

func (t TimeStampItem) TimestampID() uint64

type TimeStampItemBSONUnmarshaler

type TimeStampItemBSONUnmarshaler struct {
	Hint              string `bson:"_hint"`
	ProjectID         string `bson:"projectid"`
	RequestTimeStamp  uint64 `bson:"request_timestamp"`
	ResponseTimeStamp uint64 `bson:"response_timestamp"`
	TimeStampID       uint64 `bson:"timestampid"`
	Data              string `bson:"data"`
}

type TimeStampItemJSONMarshaler

type TimeStampItemJSONMarshaler struct {
	hint.BaseHinter
	ProjectID         string `json:"projectid"`
	RequestTimeStamp  uint64 `json:"request_timestamp"`
	ResponseTimeStamp uint64 `json:"response_timestamp"`
	TimeStampID       uint64 `json:"timestampid"`
	Data              string `json:"data"`
}

type TimeStampItemJSONUnmarshaler

type TimeStampItemJSONUnmarshaler struct {
	Hint              hint.Hint `json:"_hint"`
	ProjectID         string    `json:"projectid"`
	RequestTimeStamp  uint64    `json:"request_timestamp"`
	ResponseTimeStamp uint64    `json:"response_timestamp"`
	TimeStampID       uint64    `json:"timestampid"`
	Data              string    `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL