Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeferedStreamRecord ¶
type DeferedStreamRecord struct { Id MessageId `json:"i"` CreationDate time.Time `json:"d"` Msg interface{} `json:"m"` }
Defered stream record to be saved
type IStreamIteratorHandler ¶
type StreamInfo ¶
type StreamInfo struct { UUID StreamUUID `json:"uuid" example:"4ce589e2-b483-467b-8b59-758b339801db"` CreationDate time.Time `json:"creationDate"` LastUpdate time.Time `json:"lastUpdate"` Properties StreamProperties `json:"properties"` IngestedMessages StreamMessagesInfo `json:"ingestedMessages"` // messages that have been ingested in the stream ReadableMessages StreamMessagesInfo `json:"readableMessages"` // messages that are readable by a consumer }
func NewStreamInfo ¶
func NewStreamInfo(uuid StreamUUID) *StreamInfo
func (*StreamInfo) MatchFilterProperties ¶
func (s *StreamInfo) MatchFilterProperties(jqFilter *gojq.Query) (bool, error)
func (*StreamInfo) SetProperties ¶
func (s *StreamInfo) SetProperties(properties *StreamProperties)
func (*StreamInfo) UpdateProperties ¶
func (s *StreamInfo) UpdateProperties(properties *StreamProperties)
type StreamInfoDict ¶ added in v1.8.0
type StreamInfoDict map[StreamUUID]*StreamInfo
type StreamInfoList ¶
type StreamInfoList []*StreamInfo
type StreamIteratorRequest ¶
type StreamIteratorUUID ¶
type StreamMessagesInfo ¶ added in v1.8.0
type StreamMessagesInfo struct { CptMessages Size64 `json:"cptMessages" example:"12345"` SizeInBytes Size64 `json:"sizeInBytes" example:"4567890"` FirstMsgId MessageId `json:"firstMsgId"` LastMsgId MessageId `json:"lastMsgId"` FirstMsgTimestamp time.Time `json:"firstMsgTimestamp"` LastMsgTimestamp time.Time `json:"fastMsgTimestamp"` }
type StreamProperties ¶
type StreamProperties = map[string]interface{}
type StreamUUID ¶
type StreamUUIDList ¶
type StreamUUIDList []StreamUUID
Click to show internal directories.
Click to hide internal directories.