Documentation
¶
Index ¶
- Constants
- Variables
- func Compress(b []byte) ([]byte, error)
- func MarshalMessageCompactTo(message Message, w *Writer) error
- func PutBlock16Mut(b *Block16Mut)
- func PutBlock1Mut(b *Block1Mut)
- func PutBlock2Mut(b *Block2Mut)
- func PutBlock32Mut(b *Block32Mut)
- func PutBlock4Mut(b *Block4Mut)
- func PutBlock64Mut(b *Block64Mut)
- func PutBlock8Mut(b *Block8Mut)
- func PutBlockMessage(block *BlockMessage)
- func PutBlockMut(b BlockMut)
- func PutEOB(msg *EOB)
- func PutEOS(msg *EOS)
- func PutProgress(msg *Progress)
- func PutRecord(record *RecordMessage)
- func PutSavepoint(msg *Savepoint)
- func PutStarted(msg *Started)
- func PutStarting(msg *Starting)
- func PutStopped(msg *Stopped)
- type AccountStats
- func (s *AccountStats) Appender() *Stats
- func (s *AccountStats) Bytes() []byte
- func (s *AccountStats) Clone() *AccountStats
- func (s *AccountStats) Id() int64
- func (s *AccountStats) MarshalBinary() ([]byte, error)
- func (s *AccountStats) MarshalBinaryTo(b []byte) []byte
- func (s *AccountStats) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *AccountStats) Mut() *AccountStatsMut
- func (s *AccountStats) Read(b []byte) (n int, err error)
- func (s *AccountStats) ReadFrom(r io.Reader) (int64, error)
- func (s *AccountStats) Storage() *Stats
- func (s *AccountStats) Streams() int64
- func (s *AccountStats) String() string
- func (s *AccountStats) UnmarshalBinary(b []byte) error
- func (s *AccountStats) WriteTo(w io.Writer) (int64, error)
- type AccountStatsMut
- func (s *AccountStatsMut) Appender() *StatsMut
- func (s *AccountStatsMut) Clone() *AccountStatsMut
- func (s *AccountStatsMut) Freeze() *AccountStats
- func (s *AccountStatsMut) SetAppender(v *Stats) *AccountStatsMut
- func (s *AccountStatsMut) SetId(v int64) *AccountStatsMut
- func (s *AccountStatsMut) SetStorage(v *Stats) *AccountStatsMut
- func (s *AccountStatsMut) SetStreams(v int64) *AccountStatsMut
- func (s *AccountStatsMut) Storage() *StatsMut
- type Block
- type Block1
- func (s *Block1) Body() *Bytes944
- func (s *Block1) Bytes() []byte
- func (s *Block1) Clone() *Block1
- func (bm *Block1) Data() []byte
- func (s *Block1) Head() *BlockHeader
- func (b1 *Block1) Header() *BlockHeader
- func (s *Block1) MarshalBinary() ([]byte, error)
- func (s *Block1) MarshalBinaryTo(b []byte) []byte
- func (b *Block1) MarshalCompactTo(w *Writer) error
- func (s *Block1) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block1) MessageID() int64
- func (s *Block1) Mut() *Block1Mut
- func (s *Block1) Read(b []byte) (n int, err error)
- func (s *Block1) ReadFrom(r io.Reader) (int64, error)
- func (s *Block1) String() string
- func (b *Block1) Timestamp() int64
- func (b1 *Block1) Type() MessageType
- func (s *Block1) UnmarshalBinary(b []byte) error
- func (b *Block1) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block1) WriteTo(w io.Writer) (int64, error)
- type Block16
- func (s *Block16) Body() *Bytes16306
- func (s *Block16) Bytes() []byte
- func (s *Block16) Clone() *Block16
- func (bm *Block16) Data() []byte
- func (s *Block16) Head() *BlockHeader
- func (b *Block16) Header() *BlockHeader
- func (s *Block16) MarshalBinary() ([]byte, error)
- func (s *Block16) MarshalBinaryTo(b []byte) []byte
- func (b *Block16) MarshalCompactTo(w *Writer) error
- func (s *Block16) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block16) MessageID() int64
- func (s *Block16) Mut() *Block16Mut
- func (s *Block16) Read(b []byte) (n int, err error)
- func (s *Block16) ReadFrom(r io.Reader) (int64, error)
- func (s *Block16) String() string
- func (b *Block16) Timestamp() int64
- func (*Block16) Type() MessageType
- func (s *Block16) UnmarshalBinary(b []byte) error
- func (b *Block16) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block16) WriteTo(w io.Writer) (int64, error)
- type Block16Mut
- func (b *Block16Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block16Mut) Clone() *Block16Mut
- func (s *Block16Mut) Freeze() *Block16
- func (s *Block16Mut) Head() *BlockHeaderMut
- func (b *Block16Mut) HeaderMut() *BlockHeaderMut
- func (s *Block16Mut) SetBody(v Bytes16306) *Block16Mut
- func (s *Block16Mut) SetHead(v *BlockHeader) *Block16Mut
- func (bm *Block16Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block16Mut) Uncompress(b []byte) error
- type Block1Mut
- func (b *Block1Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block1Mut) Clone() *Block1Mut
- func (s *Block1Mut) Freeze() *Block1
- func (s *Block1Mut) Head() *BlockHeaderMut
- func (b1 *Block1Mut) HeaderMut() *BlockHeaderMut
- func (s *Block1Mut) SetBody(v Bytes944) *Block1Mut
- func (s *Block1Mut) SetHead(v *BlockHeader) *Block1Mut
- func (bm *Block1Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block1Mut) Uncompress(b []byte) error
- type Block2
- func (s *Block2) Body() *Bytes1968
- func (s *Block2) Bytes() []byte
- func (s *Block2) Clone() *Block2
- func (b *Block2) Data() []byte
- func (s *Block2) Head() *BlockHeader
- func (b *Block2) Header() *BlockHeader
- func (s *Block2) MarshalBinary() ([]byte, error)
- func (s *Block2) MarshalBinaryTo(b []byte) []byte
- func (b *Block2) MarshalCompactTo(w *Writer) error
- func (s *Block2) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block2) MessageID() int64
- func (s *Block2) Mut() *Block2Mut
- func (s *Block2) Read(b []byte) (n int, err error)
- func (s *Block2) ReadFrom(r io.Reader) (int64, error)
- func (s *Block2) String() string
- func (b *Block2) Timestamp() int64
- func (*Block2) Type() MessageType
- func (s *Block2) UnmarshalBinary(b []byte) error
- func (b *Block2) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block2) WriteTo(w io.Writer) (int64, error)
- type Block2Mut
- func (b *Block2Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block2Mut) Clone() *Block2Mut
- func (s *Block2Mut) Freeze() *Block2
- func (s *Block2Mut) Head() *BlockHeaderMut
- func (b *Block2Mut) HeaderMut() *BlockHeaderMut
- func (s *Block2Mut) SetBody(v Bytes1968) *Block2Mut
- func (s *Block2Mut) SetHead(v *BlockHeader) *Block2Mut
- func (bm *Block2Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block2Mut) Uncompress(b []byte) error
- type Block32
- func (s *Block32) Body() *Bytes32688
- func (s *Block32) Bytes() []byte
- func (s *Block32) Clone() *Block32
- func (bm *Block32) Data() []byte
- func (s *Block32) Head() *BlockHeader
- func (b *Block32) Header() *BlockHeader
- func (s *Block32) MarshalBinary() ([]byte, error)
- func (s *Block32) MarshalBinaryTo(b []byte) []byte
- func (b *Block32) MarshalCompactTo(w *Writer) error
- func (s *Block32) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block32) MessageID() int64
- func (s *Block32) Mut() *Block32Mut
- func (s *Block32) Read(b []byte) (n int, err error)
- func (s *Block32) ReadFrom(r io.Reader) (int64, error)
- func (s *Block32) String() string
- func (b *Block32) Timestamp() int64
- func (*Block32) Type() MessageType
- func (s *Block32) UnmarshalBinary(b []byte) error
- func (b *Block32) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block32) WriteTo(w io.Writer) (int64, error)
- type Block32Mut
- func (b *Block32Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block32Mut) Clone() *Block32Mut
- func (s *Block32Mut) Freeze() *Block32
- func (s *Block32Mut) Head() *BlockHeaderMut
- func (b *Block32Mut) HeaderMut() *BlockHeaderMut
- func (s *Block32Mut) SetBody(v Bytes32688) *Block32Mut
- func (s *Block32Mut) SetHead(v *BlockHeader) *Block32Mut
- func (bm *Block32Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block32Mut) Uncompress(b []byte) error
- type Block4
- func (s *Block4) Body() *Bytes4016
- func (s *Block4) Bytes() []byte
- func (s *Block4) Clone() *Block4
- func (bm *Block4) Data() []byte
- func (s *Block4) Head() *BlockHeader
- func (b *Block4) Header() *BlockHeader
- func (s *Block4) MarshalBinary() ([]byte, error)
- func (s *Block4) MarshalBinaryTo(b []byte) []byte
- func (b *Block4) MarshalCompactTo(w *Writer) error
- func (s *Block4) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block4) MessageID() int64
- func (s *Block4) Mut() *Block4Mut
- func (s *Block4) Read(b []byte) (n int, err error)
- func (s *Block4) ReadFrom(r io.Reader) (int64, error)
- func (s *Block4) String() string
- func (b *Block4) Timestamp() int64
- func (*Block4) Type() MessageType
- func (s *Block4) UnmarshalBinary(b []byte) error
- func (b *Block4) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block4) WriteTo(w io.Writer) (int64, error)
- type Block4Mut
- func (b *Block4Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block4Mut) Clone() *Block4Mut
- func (s *Block4Mut) Freeze() *Block4
- func (s *Block4Mut) Head() *BlockHeaderMut
- func (b *Block4Mut) HeaderMut() *BlockHeaderMut
- func (s *Block4Mut) SetBody(v Bytes4016) *Block4Mut
- func (s *Block4Mut) SetHead(v *BlockHeader) *Block4Mut
- func (bm *Block4Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block4Mut) Uncompress(b []byte) error
- type Block64
- func (s *Block64) Body() *Bytes65456
- func (s *Block64) Bytes() []byte
- func (s *Block64) Clone() *Block64
- func (bm *Block64) Data() []byte
- func (s *Block64) Head() *BlockHeader
- func (b *Block64) Header() *BlockHeader
- func (s *Block64) MarshalBinary() ([]byte, error)
- func (s *Block64) MarshalBinaryTo(b []byte) []byte
- func (b *Block64) MarshalCompactTo(w *Writer) error
- func (s *Block64) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block64) MessageID() int64
- func (s *Block64) Mut() *Block64Mut
- func (s *Block64) Read(b []byte) (n int, err error)
- func (s *Block64) ReadFrom(r io.Reader) (int64, error)
- func (s *Block64) String() string
- func (b *Block64) Timestamp() int64
- func (*Block64) Type() MessageType
- func (s *Block64) UnmarshalBinary(b []byte) error
- func (b *Block64) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block64) WriteTo(w io.Writer) (int64, error)
- type Block64Mut
- func (b *Block64Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block64Mut) Clone() *Block64Mut
- func (s *Block64Mut) Freeze() *Block64
- func (s *Block64Mut) Head() *BlockHeaderMut
- func (b *Block64Mut) HeaderMut() *BlockHeaderMut
- func (s *Block64Mut) SetBody(v Bytes65456) *Block64Mut
- func (s *Block64Mut) SetHead(v *BlockHeader) *Block64Mut
- func (bm *Block64Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block64Mut) Uncompress(b []byte) error
- type Block8
- func (s *Block8) Body() *Bytes8112
- func (s *Block8) Bytes() []byte
- func (s *Block8) Clone() *Block8
- func (bm *Block8) Data() []byte
- func (s *Block8) Head() *BlockHeader
- func (b *Block8) Header() *BlockHeader
- func (s *Block8) MarshalBinary() ([]byte, error)
- func (s *Block8) MarshalBinaryTo(b []byte) []byte
- func (b *Block8) MarshalCompactTo(w *Writer) error
- func (s *Block8) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (b *Block8) MessageID() int64
- func (s *Block8) Mut() *Block8Mut
- func (s *Block8) Read(b []byte) (n int, err error)
- func (s *Block8) ReadFrom(r io.Reader) (int64, error)
- func (s *Block8) String() string
- func (b *Block8) Timestamp() int64
- func (*Block8) Type() MessageType
- func (s *Block8) UnmarshalBinary(b []byte) error
- func (b *Block8) UnmarshalCompactFrom(rd *Reader) error
- func (s *Block8) WriteTo(w io.Writer) (int64, error)
- type Block8Mut
- func (b *Block8Mut) AppendRecord(id, created, time, end int64, data []byte) error
- func (s *Block8Mut) Clone() *Block8Mut
- func (s *Block8Mut) Freeze() *Block8
- func (s *Block8Mut) Head() *BlockHeaderMut
- func (b *Block8Mut) HeaderMut() *BlockHeaderMut
- func (s *Block8Mut) SetBody(v Bytes8112) *Block8Mut
- func (s *Block8Mut) SetHead(v *BlockHeader) *Block8Mut
- func (bm *Block8Mut) ToMessage(compress bool) (*BlockMessage, error)
- func (bm *Block8Mut) Uncompress(b []byte) error
- type BlockAllocator
- type BlockHeader
- func (s *BlockHeader) Bytes() []byte
- func (s *BlockHeader) Clone() *BlockHeader
- func (s *BlockHeader) Completed() int64
- func (s *BlockHeader) Compression() Compression
- func (s *BlockHeader) Count() uint16
- func (s *BlockHeader) Created() int64
- func (s *BlockHeader) End() int64
- func (s *BlockHeader) Id() int64
- func (b *BlockHeader) IsComplete() bool
- func (b *BlockHeader) IsPartial() bool
- func (s *BlockHeader) MarshalBinary() ([]byte, error)
- func (s *BlockHeader) MarshalBinaryTo(b []byte) []byte
- func (h *BlockHeader) MarshalCompactTo(w *Writer) error
- func (s *BlockHeader) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *BlockHeader) Max() int64
- func (s *BlockHeader) Min() int64
- func (s *BlockHeader) Mut() *BlockHeaderMut
- func (s *BlockHeader) Read(b []byte) (n int, err error)
- func (s *BlockHeader) ReadFrom(r io.Reader) (int64, error)
- func (s *BlockHeader) Savepoint() int64
- func (s *BlockHeader) SavepointR() int64
- func (s *BlockHeader) Seq() uint16
- func (s *BlockHeader) Size() uint16
- func (s *BlockHeader) SizeU() uint16
- func (s *BlockHeader) SizeX() uint16
- func (s *BlockHeader) Start() int64
- func (s *BlockHeader) StreamID() int64
- func (s *BlockHeader) String() string
- func (s *BlockHeader) UnmarshalBinary(b []byte) error
- func (h *BlockHeader) UnmarshalCompactFrom(rd *Reader) error
- func (s *BlockHeader) WriteTo(w io.Writer) (int64, error)
- type BlockHeaderMut
- func (s *BlockHeaderMut) Clone() *BlockHeaderMut
- func (s *BlockHeaderMut) Freeze() *BlockHeader
- func (s *BlockHeaderMut) SetCompleted(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetCompression(v Compression) *BlockHeaderMut
- func (s *BlockHeaderMut) SetCount(v uint16) *BlockHeaderMut
- func (s *BlockHeaderMut) SetCreated(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetEnd(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetId(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetMax(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetMin(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetSavepoint(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetSavepointR(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetSeq(v uint16) *BlockHeaderMut
- func (s *BlockHeaderMut) SetSize(v uint16) *BlockHeaderMut
- func (s *BlockHeaderMut) SetSizeU(v uint16) *BlockHeaderMut
- func (s *BlockHeaderMut) SetSizeX(v uint16) *BlockHeaderMut
- func (s *BlockHeaderMut) SetStart(v int64) *BlockHeaderMut
- func (s *BlockHeaderMut) SetStreamID(v int64) *BlockHeaderMut
- type BlockID
- func (s *BlockID) Bytes() []byte
- func (s *BlockID) Clone() *BlockID
- func (s *BlockID) Id() int64
- func (s *BlockID) MarshalBinary() ([]byte, error)
- func (s *BlockID) MarshalBinaryTo(b []byte) []byte
- func (s *BlockID) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *BlockID) Mut() *BlockIDMut
- func (s *BlockID) Read(b []byte) (n int, err error)
- func (s *BlockID) ReadFrom(r io.Reader) (int64, error)
- func (s *BlockID) StreamID() int64
- func (s *BlockID) String() string
- func (s *BlockID) UnmarshalBinary(b []byte) error
- func (s *BlockID) WriteTo(w io.Writer) (int64, error)
- type BlockIDMut
- type BlockIterator
- type BlockMessage
- func (b *BlockMessage) Clone() *BlockMessage
- func (b *BlockMessage) Compress() (*BlockMessage, error)
- func (b *BlockMessage) CompressInline() error
- func (b *BlockMessage) Data() []byte
- func (b *BlockMessage) Decompress() (*BlockMessage, error)
- func (b *BlockMessage) DecompressInline() error
- func (b *BlockMessage) Header() *BlockHeader
- func (b *BlockMessage) HeaderMut() *BlockHeaderMut
- func (b *BlockMessage) MarshalCompactTo(w *Writer) error
- func (b *BlockMessage) MarshalTo(w *Writer) error
- func (s *BlockMessage) MessageID() int64
- func (b *BlockMessage) Sizeof() int
- func (s *BlockMessage) Timestamp() int64
- func (b *BlockMessage) Type() MessageType
- func (b *BlockMessage) Unmarshal(header []byte, data []byte) error
- func (b *BlockMessage) UnmarshalCompactFrom(rd *Reader) error
- func (b *BlockMessage) UnmarshalFrom(rd *Reader) error
- type BlockMessageBuffer
- func (b *BlockMessageBuffer) Clear()
- func (b *BlockMessageBuffer) Copy(to []*BlockMessage) []*BlockMessage
- func (b *BlockMessageBuffer) First() *BlockMessage
- func (b *BlockMessageBuffer) IsFull() bool
- func (b *BlockMessageBuffer) Last() *BlockMessage
- func (b *BlockMessageBuffer) PopFirst() *BlockMessage
- func (b *BlockMessageBuffer) PopLast() *BlockMessage
- func (b *BlockMessageBuffer) Push(block *BlockMessage)
- func (b *BlockMessageBuffer) PushNoEvict(block *BlockMessage) bool
- func (b *BlockMessageBuffer) PushSequential(block *BlockMessage) bool
- func (b *BlockMessageBuffer) Savepoint(id int64)
- type BlockMessageBuilder
- func (bw *BlockMessageBuilder) Alloc(maxSize int) error
- func (bw *BlockMessageBuilder) Append(record *RecordMessage, completed []*BlockMessage) ([]*BlockMessage, int, error)
- func (bw *BlockMessageBuilder) AppendBlock(block *BlockMessage, completed []*BlockMessage) ([]*BlockMessage, int, error)
- func (bw *BlockMessageBuilder) Clone() BlockMessageBuilder
- func (bw *BlockMessageBuilder) Data() []byte
- func (bw *BlockMessageBuilder) Flush(completed int64) *BlockMessage
- func (bw *BlockMessageBuilder) HasCapacity(size int) bool
- func (bw *BlockMessageBuilder) Header() *BlockHeaderMut
- func (bw *BlockMessageBuilder) IsEmpty() bool
- func (bw *BlockMessageBuilder) Reset()
- func (bw *BlockMessageBuilder) SetMaxSize(maxSize int)
- func (bw *BlockMessageBuilder) SizeofRecord(record *RecordMessage) int
- type BlockMessageWriter
- func (bw *BlockMessageWriter) Append(record *RecordMessage) (*BlockMessage, error)
- func (bw *BlockMessageWriter) AppendBlock(block *BlockMessage) (*BlockMessage, error)
- func (bw *BlockMessageWriter) Clone() BlockMessageWriter
- func (bw *BlockMessageWriter) Data() []byte
- func (bw *BlockMessageWriter) Flush(completed int64) *BlockMessage
- func (bw *BlockMessageWriter) HasCapacity(size int) bool
- func (bw *BlockMessageWriter) Header() *BlockHeaderMut
- func (bw *BlockMessageWriter) IsEmpty() bool
- func (bw *BlockMessageWriter) Reset()
- func (bw *BlockMessageWriter) SizeofRecord(record *RecordMessage) int
- type BlockMut
- type BlockWriter
- type Bytes16306
- func (s *Bytes16306) Bytes() []byte
- func (s *Bytes16306) Cap() int
- func (s *Bytes16306) Clone() *Bytes16306
- func (s *Bytes16306) Len() int
- func (s *Bytes16306) MarshalBinary() ([]byte, error)
- func (s *Bytes16306) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes16306) Mut() *Bytes16306Mut
- func (s *Bytes16306) ReadFrom(r io.Reader) error
- func (s *Bytes16306) String() string
- func (s *Bytes16306) UnmarshalBinary(b []byte) error
- func (s *Bytes16306) Unsafe() string
- func (s *Bytes16306) WriteTo(w io.Writer) (n int, err error)
- type Bytes16306Mut
- type Bytes1968
- func (s *Bytes1968) Bytes() []byte
- func (s *Bytes1968) Cap() int
- func (s *Bytes1968) Clone() *Bytes1968
- func (s *Bytes1968) Len() int
- func (s *Bytes1968) MarshalBinary() ([]byte, error)
- func (s *Bytes1968) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes1968) Mut() *Bytes1968Mut
- func (s *Bytes1968) ReadFrom(r io.Reader) error
- func (s *Bytes1968) String() string
- func (s *Bytes1968) UnmarshalBinary(b []byte) error
- func (s *Bytes1968) Unsafe() string
- func (s *Bytes1968) WriteTo(w io.Writer) (n int, err error)
- type Bytes1968Mut
- type Bytes32688
- func (s *Bytes32688) Bytes() []byte
- func (s *Bytes32688) Cap() int
- func (s *Bytes32688) Clone() *Bytes32688
- func (s *Bytes32688) Len() int
- func (s *Bytes32688) MarshalBinary() ([]byte, error)
- func (s *Bytes32688) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes32688) Mut() *Bytes32688Mut
- func (s *Bytes32688) ReadFrom(r io.Reader) error
- func (s *Bytes32688) String() string
- func (s *Bytes32688) UnmarshalBinary(b []byte) error
- func (s *Bytes32688) Unsafe() string
- func (s *Bytes32688) WriteTo(w io.Writer) (n int, err error)
- type Bytes32688Mut
- type Bytes4016
- func (s *Bytes4016) Bytes() []byte
- func (s *Bytes4016) Cap() int
- func (s *Bytes4016) Clone() *Bytes4016
- func (s *Bytes4016) Len() int
- func (s *Bytes4016) MarshalBinary() ([]byte, error)
- func (s *Bytes4016) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes4016) Mut() *Bytes4016Mut
- func (s *Bytes4016) ReadFrom(r io.Reader) error
- func (s *Bytes4016) String() string
- func (s *Bytes4016) UnmarshalBinary(b []byte) error
- func (s *Bytes4016) Unsafe() string
- func (s *Bytes4016) WriteTo(w io.Writer) (n int, err error)
- type Bytes4016Mut
- type Bytes65456
- func (s *Bytes65456) Bytes() []byte
- func (s *Bytes65456) Cap() int
- func (s *Bytes65456) Clone() *Bytes65456
- func (s *Bytes65456) Len() int
- func (s *Bytes65456) MarshalBinary() ([]byte, error)
- func (s *Bytes65456) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes65456) Mut() *Bytes65456Mut
- func (s *Bytes65456) ReadFrom(r io.Reader) error
- func (s *Bytes65456) String() string
- func (s *Bytes65456) UnmarshalBinary(b []byte) error
- func (s *Bytes65456) Unsafe() string
- func (s *Bytes65456) WriteTo(w io.Writer) (n int, err error)
- type Bytes65456Mut
- type Bytes8112
- func (s *Bytes8112) Bytes() []byte
- func (s *Bytes8112) Cap() int
- func (s *Bytes8112) Clone() *Bytes8112
- func (s *Bytes8112) Len() int
- func (s *Bytes8112) MarshalBinary() ([]byte, error)
- func (s *Bytes8112) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes8112) Mut() *Bytes8112Mut
- func (s *Bytes8112) ReadFrom(r io.Reader) error
- func (s *Bytes8112) String() string
- func (s *Bytes8112) UnmarshalBinary(b []byte) error
- func (s *Bytes8112) Unsafe() string
- func (s *Bytes8112) WriteTo(w io.Writer) (n int, err error)
- type Bytes8112Mut
- type Bytes944
- func (s *Bytes944) Bytes() []byte
- func (s *Bytes944) Cap() int
- func (s *Bytes944) Clone() *Bytes944
- func (s *Bytes944) Len() int
- func (s *Bytes944) MarshalBinary() ([]byte, error)
- func (s *Bytes944) MarshalBinaryTo(b []byte) []byte
- func (s *Bytes944) Mut() *Bytes944Mut
- func (s *Bytes944) ReadFrom(r io.Reader) error
- func (s *Bytes944) String() string
- func (s *Bytes944) UnmarshalBinary(b []byte) error
- func (s *Bytes944) Unsafe() string
- func (s *Bytes944) WriteTo(w io.Writer) (n int, err error)
- type Bytes944Mut
- type Compression
- type EOB
- func (s *EOB) Bytes() []byte
- func (s *EOB) Clone() *EOB
- func (s *EOB) MarshalBinary() ([]byte, error)
- func (s *EOB) MarshalBinaryTo(b []byte) []byte
- func (r *EOB) MarshalCompactTo(w *Writer) error
- func (s *EOB) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *EOB) MessageID() int64
- func (s *EOB) Mut() *EOBMut
- func (s *EOB) Read(b []byte) (n int, err error)
- func (s *EOB) ReadFrom(r io.Reader) (int64, error)
- func (s *EOB) RecordID() *RecordID
- func (s *EOB) Savepoint() int64
- func (s *EOB) String() string
- func (s *EOB) Timestamp() int64
- func (e *EOB) Type() MessageType
- func (s *EOB) UnmarshalBinary(b []byte) error
- func (r *EOB) UnmarshalCompactFrom(rd *Reader) error
- func (s *EOB) WriteTo(w io.Writer) (int64, error)
- type EOBMut
- type EOS
- func (s *EOS) Bytes() []byte
- func (s *EOS) Clone() *EOS
- func (s *EOS) Closed() bool
- func (s *EOS) MarshalBinary() ([]byte, error)
- func (s *EOS) MarshalBinaryTo(b []byte) []byte
- func (r *EOS) MarshalCompactTo(w *Writer) error
- func (s *EOS) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *EOS) MessageID() int64
- func (s *EOS) Mut() *EOSMut
- func (s *EOS) Read(b []byte) (n int, err error)
- func (s *EOS) ReadFrom(r io.Reader) (int64, error)
- func (s *EOS) RecordID() *RecordID
- func (s *EOS) String() string
- func (s *EOS) Timestamp() int64
- func (e *EOS) Type() MessageType
- func (s *EOS) UnmarshalBinary(b []byte) error
- func (r *EOS) UnmarshalCompactFrom(rd *Reader) error
- func (s *EOS) Waiting() bool
- func (s *EOS) WriteTo(w io.Writer) (int64, error)
- func (s *EOS) WriterID() int64
- type EOSMut
- func (s *EOSMut) Clone() *EOSMut
- func (s *EOSMut) Freeze() *EOS
- func (s *EOSMut) RecordID() *RecordIDMut
- func (s *EOSMut) SetClosed(v bool) *EOSMut
- func (s *EOSMut) SetRecordID(v *RecordID) *EOSMut
- func (s *EOSMut) SetTimestamp(v int64) *EOSMut
- func (s *EOSMut) SetWaiting(v bool) *EOSMut
- func (s *EOSMut) SetWriterID(v int64) *EOSMut
- type Message
- type MessageType
- type OnBlockMessageEvicted
- type Progress
- func (s *Progress) Bytes() []byte
- func (s *Progress) Clone() *Progress
- func (s *Progress) Count() int64
- func (s *Progress) MarshalBinary() ([]byte, error)
- func (s *Progress) MarshalBinaryTo(b []byte) []byte
- func (s *Progress) MarshalCompactTo(w *Writer) error
- func (s *Progress) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Progress) MessageID() int64
- func (s *Progress) Mut() *ProgressMut
- func (s *Progress) Read(b []byte) (n int, err error)
- func (s *Progress) ReadFrom(r io.Reader) (int64, error)
- func (s *Progress) RecordID() *RecordID
- func (s *Progress) Remaining() int64
- func (s *Progress) Started() int64
- func (s *Progress) String() string
- func (s *Progress) Timestamp() int64
- func (s *Progress) Type() MessageType
- func (s *Progress) UnmarshalBinary(b []byte) error
- func (s *Progress) UnmarshalCompactFrom(rd *Reader) error
- func (s *Progress) WriteTo(w io.Writer) (int64, error)
- func (s *Progress) WriterID() int64
- type ProgressMut
- func (s *ProgressMut) Clone() *ProgressMut
- func (s *ProgressMut) Freeze() *Progress
- func (s *ProgressMut) RecordID() *RecordIDMut
- func (s *ProgressMut) SetCount(v int64) *ProgressMut
- func (s *ProgressMut) SetRecordID(v *RecordID) *ProgressMut
- func (s *ProgressMut) SetRemaining(v int64) *ProgressMut
- func (s *ProgressMut) SetStarted(v int64) *ProgressMut
- func (s *ProgressMut) SetTimestamp(v int64) *ProgressMut
- func (s *ProgressMut) SetWriterID(v int64) *ProgressMut
- type Reader
- func (r *Reader) At() int
- func (r *Reader) ReadBool() (bool, error)
- func (r *Reader) ReadByte() (byte, error)
- func (r *Reader) ReadBytes(b []byte) error
- func (r *Reader) ReadBytesUnsafe(size int) ([]byte, error)
- func (r *Reader) ReadInt16() (int16, error)
- func (r *Reader) ReadInt32() (int32, error)
- func (r *Reader) ReadInt64() (int64, error)
- func (r *Reader) ReadTag(x uint64) (WireNumber, WireType, error)
- func (r *Reader) ReadUVarint16() (uint16, int, error)
- func (r *Reader) ReadUVarint32() (uint32, int, error)
- func (r *Reader) ReadUVarint64() (uint64, int, error)
- func (r *Reader) ReadUint16() (uint16, error)
- func (r *Reader) ReadUint32() (uint32, error)
- func (r *Reader) ReadUint64() (uint64, error)
- func (r *Reader) ReadVarint16() (int16, int, error)
- func (r *Reader) ReadVarint32() (int32, int, error)
- func (r *Reader) ReadVarint64() (int64, int, error)
- func (r *Reader) ReadVarintZigZag64() (int64, int, error)
- func (r *Reader) Remaining() int
- func (r *Reader) Reset(b []byte)
- type Record
- type RecordHeader
- func (s *RecordHeader) BlockID() int64
- func (s *RecordHeader) Bytes() []byte
- func (s *RecordHeader) Clone() *RecordHeader
- func (s *RecordHeader) Compression() Compression
- func (s *RecordHeader) End() int64
- func (s *RecordHeader) Eob() bool
- func (s *RecordHeader) MarshalBinary() ([]byte, error)
- func (s *RecordHeader) MarshalBinaryTo(b []byte) []byte
- func (h *RecordHeader) MarshalCompactTo(w *Writer) error
- func (s *RecordHeader) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *RecordHeader) MessageID() int64
- func (s *RecordHeader) Mut() *RecordHeaderMut
- func (s *RecordHeader) Read(b []byte) (n int, err error)
- func (s *RecordHeader) ReadFrom(r io.Reader) (int64, error)
- func (s *RecordHeader) Savepoint() int64
- func (s *RecordHeader) SavepointR() int64
- func (s *RecordHeader) Seq() uint16
- func (s *RecordHeader) Size() uint16
- func (s *RecordHeader) SizeU() uint16
- func (s *RecordHeader) SizeX() uint16
- func (s *RecordHeader) Start() int64
- func (s *RecordHeader) StreamID() int64
- func (s *RecordHeader) String() string
- func (s *RecordHeader) Timestamp() int64
- func (s *RecordHeader) UnmarshalBinary(b []byte) error
- func (r *RecordHeader) UnmarshalCompactFrom(rd *Reader) error
- func (s *RecordHeader) WriteTo(w io.Writer) (int64, error)
- type RecordHeaderMut
- func (s *RecordHeaderMut) Clone() *RecordHeaderMut
- func (s *RecordHeaderMut) Freeze() *RecordHeader
- func (s *RecordHeaderMut) SetBlockID(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetCompression(v Compression) *RecordHeaderMut
- func (s *RecordHeaderMut) SetEnd(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetEob(v bool) *RecordHeaderMut
- func (s *RecordHeaderMut) SetId(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetSavepoint(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetSavepointR(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetSeq(v uint16) *RecordHeaderMut
- func (s *RecordHeaderMut) SetSize(v uint16) *RecordHeaderMut
- func (s *RecordHeaderMut) SetSizeU(v uint16) *RecordHeaderMut
- func (s *RecordHeaderMut) SetSizeX(v uint16) *RecordHeaderMut
- func (s *RecordHeaderMut) SetStart(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetStreamID(v int64) *RecordHeaderMut
- func (s *RecordHeaderMut) SetTimestamp(v int64) *RecordHeaderMut
- type RecordID
- func (s *RecordID) BlockID() int64
- func (s *RecordID) Bytes() []byte
- func (s *RecordID) Clone() *RecordID
- func (s *RecordID) Id() int64
- func (s *RecordID) MarshalBinary() ([]byte, error)
- func (s *RecordID) MarshalBinaryTo(b []byte) []byte
- func (r *RecordID) MarshalCompactTo(w *Writer) error
- func (s *RecordID) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *RecordID) Mut() *RecordIDMut
- func (s *RecordID) Read(b []byte) (n int, err error)
- func (s *RecordID) ReadFrom(r io.Reader) (int64, error)
- func (s *RecordID) StreamID() int64
- func (s *RecordID) String() string
- func (s *RecordID) UnmarshalBinary(b []byte) error
- func (r *RecordID) UnmarshalCompactFrom(rd *Reader) error
- func (s *RecordID) WriteTo(w io.Writer) (int64, error)
- type RecordIDMut
- type RecordMessage
- func (r *RecordMessage) CompressInline() error
- func (r *RecordMessage) CompressedClone() (*RecordMessage, error)
- func (r *RecordMessage) Decompress() (*RecordMessage, error)
- func (r *RecordMessage) DecompressInline() error
- func (r *RecordMessage) MarshalCompactTo(w *Writer) error
- func (r *RecordMessage) Type() MessageType
- func (r *RecordMessage) UnmarshalCompactFrom(rd *Reader) error
- type Savepoint
- func (s *Savepoint) Bytes() []byte
- func (s *Savepoint) Clone() *Savepoint
- func (s *Savepoint) MarshalBinary() ([]byte, error)
- func (s *Savepoint) MarshalBinaryTo(b []byte) []byte
- func (s *Savepoint) MarshalCompactTo(w *Writer) error
- func (s *Savepoint) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Savepoint) MessageID() int64
- func (s *Savepoint) Mut() *SavepointMut
- func (s *Savepoint) Read(b []byte) (n int, err error)
- func (s *Savepoint) ReadFrom(r io.Reader) (int64, error)
- func (s *Savepoint) RecordID() *RecordID
- func (s *Savepoint) String() string
- func (s *Savepoint) Timestamp() int64
- func (s *Savepoint) Type() MessageType
- func (s *Savepoint) UnmarshalBinary(b []byte) error
- func (s *Savepoint) UnmarshalCompactFrom(rd *Reader) error
- func (s *Savepoint) WriteTo(w io.Writer) (int64, error)
- func (s *Savepoint) WriterID() int64
- type SavepointMut
- func (s *SavepointMut) Clone() *SavepointMut
- func (s *SavepointMut) Freeze() *Savepoint
- func (s *SavepointMut) RecordID() *RecordIDMut
- func (s *SavepointMut) SetRecordID(v *RecordID) *SavepointMut
- func (s *SavepointMut) SetTimestamp(v int64) *SavepointMut
- func (s *SavepointMut) SetWriterID(v int64) *SavepointMut
- type SchemaKind
- type Started
- func (s *Started) Bytes() []byte
- func (s *Started) Clone() *Started
- func (s *Started) MarshalBinary() ([]byte, error)
- func (s *Started) MarshalBinaryTo(b []byte) []byte
- func (s *Started) MarshalCompactTo(w *Writer) error
- func (s *Started) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Started) MessageID() int64
- func (s *Started) Mut() *StartedMut
- func (s *Started) Read(b []byte) (n int, err error)
- func (s *Started) ReadFrom(r io.Reader) (int64, error)
- func (s *Started) RecordID() *RecordID
- func (s *Started) Stops() int64
- func (s *Started) String() string
- func (s *Started) Timestamp() int64
- func (s *Started) Type() MessageType
- func (s *Started) UnmarshalBinary(b []byte) error
- func (s *Started) UnmarshalCompactFrom(rd *Reader) error
- func (s *Started) WriteTo(w io.Writer) (int64, error)
- func (s *Started) WriterID() int64
- type StartedMut
- func (s *StartedMut) Clone() *StartedMut
- func (s *StartedMut) Freeze() *Started
- func (s *StartedMut) RecordID() *RecordIDMut
- func (s *StartedMut) SetRecordID(v *RecordID) *StartedMut
- func (s *StartedMut) SetStops(v int64) *StartedMut
- func (s *StartedMut) SetTimestamp(v int64) *StartedMut
- func (s *StartedMut) SetWriterID(v int64) *StartedMut
- type Starting
- func (s *Starting) Bytes() []byte
- func (s *Starting) Clone() *Starting
- func (s *Starting) MarshalBinary() ([]byte, error)
- func (s *Starting) MarshalBinaryTo(b []byte) []byte
- func (s *Starting) MarshalCompactTo(w *Writer) error
- func (s *Starting) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Starting) MessageID() int64
- func (s *Starting) Mut() *StartingMut
- func (s *Starting) Read(b []byte) (n int, err error)
- func (s *Starting) ReadFrom(r io.Reader) (int64, error)
- func (s *Starting) RecordID() *RecordID
- func (s *Starting) String() string
- func (s *Starting) Timestamp() int64
- func (s *Starting) Type() MessageType
- func (s *Starting) UnmarshalBinary(b []byte) error
- func (s *Starting) UnmarshalCompactFrom(rd *Reader) error
- func (s *Starting) WriteTo(w io.Writer) (int64, error)
- func (s *Starting) WriterID() int64
- type StartingMut
- func (s *StartingMut) Clone() *StartingMut
- func (s *StartingMut) Freeze() *Starting
- func (s *StartingMut) RecordID() *RecordIDMut
- func (s *StartingMut) SetRecordID(v *RecordID) *StartingMut
- func (s *StartingMut) SetTimestamp(v int64) *StartingMut
- func (s *StartingMut) SetWriterID(v int64) *StartingMut
- type Stats
- func (s *Stats) Blocks() int64
- func (s *Stats) Bytes() []byte
- func (s *Stats) Clone() *Stats
- func (s *Stats) Count() int64
- func (s *Stats) MarshalBinary() ([]byte, error)
- func (s *Stats) MarshalBinaryTo(b []byte) []byte
- func (s *Stats) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Stats) Mut() *StatsMut
- func (s *Stats) Read(b []byte) (n int, err error)
- func (s *Stats) ReadFrom(r io.Reader) (int64, error)
- func (s *Stats) Size() int64
- func (s *Stats) String() string
- func (s *Stats) UnmarshalBinary(b []byte) error
- func (s *Stats) WriteTo(w io.Writer) (int64, error)
- type StatsMut
- type StopReason
- type Stopped
- func (s *Stopped) Bytes() []byte
- func (s *Stopped) Clone() *Stopped
- func (s *Stopped) MarshalBinary() ([]byte, error)
- func (s *Stopped) MarshalBinaryTo(b []byte) []byte
- func (s *Stopped) MarshalCompactTo(w *Writer) error
- func (s *Stopped) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Stopped) MessageID() int64
- func (s *Stopped) Mut() *StoppedMut
- func (s *Stopped) Read(b []byte) (n int, err error)
- func (s *Stopped) ReadFrom(r io.Reader) (int64, error)
- func (s *Stopped) Reason() StopReason
- func (s *Stopped) RecordID() *RecordID
- func (s *Stopped) Starts() int64
- func (s *Stopped) String() string
- func (s *Stopped) Timestamp() int64
- func (s *Stopped) Type() MessageType
- func (s *Stopped) UnmarshalBinary(b []byte) error
- func (s *Stopped) UnmarshalCompactFrom(rd *Reader) error
- func (s *Stopped) WriteTo(w io.Writer) (int64, error)
- type StoppedMut
- func (s *StoppedMut) Clone() *StoppedMut
- func (s *StoppedMut) Freeze() *Stopped
- func (s *StoppedMut) RecordID() *RecordIDMut
- func (s *StoppedMut) SetReason(v StopReason) *StoppedMut
- func (s *StoppedMut) SetRecordID(v *RecordID) *StoppedMut
- func (s *StoppedMut) SetStarts(v int64) *StoppedMut
- func (s *StoppedMut) SetTimestamp(v int64) *StoppedMut
- type Stream
- func (s *Stream) AccountID() int64
- func (s *Stream) BlockSize() byte
- func (s *Stream) Bytes() []byte
- func (s *Stream) Clone() *Stream
- func (s *Stream) Created() int64
- func (s *Stream) Duration() int64
- func (s *Stream) Id() int64
- func (s *Stream) Kind() StreamKind
- func (s *Stream) MarshalBinary() ([]byte, error)
- func (s *Stream) MarshalBinaryTo(b []byte) []byte
- func (s *Stream) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *Stream) Mut() *StreamMut
- func (s *Stream) Name() *String32
- func (s *Stream) Read(b []byte) (n int, err error)
- func (s *Stream) ReadFrom(r io.Reader) (int64, error)
- func (s *Stream) RealTime() bool
- func (s *Stream) Record() int32
- func (s *Stream) Schema() SchemaKind
- func (s *Stream) String() string
- func (s *Stream) UnmarshalBinary(b []byte) error
- func (s *Stream) WriteTo(w io.Writer) (int64, error)
- type StreamID
- type StreamKind
- type StreamMut
- func (s *StreamMut) Clone() *StreamMut
- func (s *StreamMut) Freeze() *Stream
- func (s *StreamMut) Name() *String32Mut
- func (s *StreamMut) SetAccountID(v int64) *StreamMut
- func (s *StreamMut) SetBlockSize(v byte) *StreamMut
- func (s *StreamMut) SetCreated(v int64) *StreamMut
- func (s *StreamMut) SetDuration(v int64) *StreamMut
- func (s *StreamMut) SetId(v int64) *StreamMut
- func (s *StreamMut) SetKind(v StreamKind) *StreamMut
- func (s *StreamMut) SetName(v *String32) *StreamMut
- func (s *StreamMut) SetRealTime(v bool) *StreamMut
- func (s *StreamMut) SetRecord(v int32) *StreamMut
- func (s *StreamMut) SetSchema(v SchemaKind) *StreamMut
- type StreamStats
- func (s *StreamStats) Appender() *Stats
- func (s *StreamStats) Bytes() []byte
- func (s *StreamStats) Clone() *StreamStats
- func (s *StreamStats) MarshalBinary() ([]byte, error)
- func (s *StreamStats) MarshalBinaryTo(b []byte) []byte
- func (s *StreamStats) MarshalMap(m map[string]interface{}) map[string]interface{}
- func (s *StreamStats) Mut() *StreamStatsMut
- func (s *StreamStats) Read(b []byte) (n int, err error)
- func (s *StreamStats) ReadFrom(r io.Reader) (int64, error)
- func (s *StreamStats) Storage() *Stats
- func (s *StreamStats) String() string
- func (s *StreamStats) UnmarshalBinary(b []byte) error
- func (s *StreamStats) WriteTo(w io.Writer) (int64, error)
- type StreamStatsMut
- func (s *StreamStatsMut) Appender() *StatsMut
- func (s *StreamStatsMut) Clone() *StreamStatsMut
- func (s *StreamStatsMut) Freeze() *StreamStats
- func (s *StreamStatsMut) SetAppender(v *Stats) *StreamStatsMut
- func (s *StreamStatsMut) SetStorage(v *Stats) *StreamStatsMut
- func (s *StreamStatsMut) Storage() *StatsMut
- type String32
- func (s *String32) Bytes() []byte
- func (s *String32) Cap() int
- func (s *String32) Clone() *String32
- func (s *String32) Len() int
- func (s *String32) MarshalBinary() ([]byte, error)
- func (s *String32) MarshalBinaryTo(b []byte) []byte
- func (s *String32) Mut() *String32Mut
- func (s *String32) ReadFrom(r io.Reader) error
- func (s *String32) String() string
- func (s *String32) UnmarshalBinary(b []byte) error
- func (s *String32) Unsafe() string
- func (s *String32) WriteTo(w io.Writer) (n int, err error)
- type String32Mut
- type WireNumber
- type WireType
- type Writer
- func (w *Writer) Alloc()
- func (w *Writer) At() int
- func (w *Writer) Clone() Writer
- func (w *Writer) Close() error
- func (w *Writer) Ensure(n int) error
- func (w *Writer) Remaining() int
- func (w *Writer) Reset()
- func (w *Writer) Size() int
- func (w *Writer) Take() []byte
- func (w *Writer) Write(value []byte) error
- func (w *Writer) WriteBool(value bool) error
- func (w *Writer) WriteByte(value byte) error
- func (w *Writer) WriteInt16(value int16) error
- func (w *Writer) WriteInt32(value int32) error
- func (w *Writer) WriteInt64(value int64) error
- func (w *Writer) WriteString(s string) error
- func (w *Writer) WriteTag(num WireNumber, typ WireType) (int, error)
- func (w *Writer) WriteUVarint16(value uint16) (int, error)
- func (w *Writer) WriteUVarint32(value uint32) (int, error)
- func (w *Writer) WriteUVarint64(value uint64) (int, error)
- func (w *Writer) WriteUint16(value uint16) error
- func (w *Writer) WriteUint32(value uint32) error
- func (w *Writer) WriteUint64(value uint64) error
- func (w *Writer) WriteVarint16(value int16) (int, error)
- func (w *Writer) WriteVarint32(value int32) (int, error)
- func (w *Writer) WriteVarint64(value int64) (int, error)
- func (w *Writer) WriteVarintZigZag64(value int64) (int, error)
Constants ¶
const ( Compression_None = Compression(0) Compression_LZ4 = Compression(1) )
const ( StreamKind_Log = StreamKind(0) StreamKind_TimeSeries = StreamKind(1) StreamKind_Table = StreamKind(2) )
const ( MessageType_Record = MessageType(1) MessageType_Block = MessageType(2) MessageType_EOS = MessageType(3) MessageType_EOB = MessageType(4) MessageType_Savepoint = MessageType(5) MessageType_Starting = MessageType(6) MessageType_Progress = MessageType(7) MessageType_Started = MessageType(8) MessageType_Stopped = MessageType(9) )
const ( // Stream is composed from another stream or external datasource and it stopped StopReason_Source = StopReason(1) // Stream has been paused StopReason_Paused = StopReason(2) // Stream is being migrated to a new writer StopReason_Migrate = StopReason(3) // Stream has stopped unexpectedly StopReason_Error = StopReason(4) )
const ( SchemaKind_Bytes = SchemaKind(0) SchemaKind_MoonBuf = SchemaKind(1) SchemaKind_ProtoBuf = SchemaKind(2) SchemaKind_FlatBuffers = SchemaKind(3) SchemaKind_Json = SchemaKind(4) SchemaKind_MessagePack = SchemaKind(5) )
const (
BlockRecordHeaderSize = 36 // ID (8 bytes) | Timestamp (8 bytes) | Start (8 bytes) | End (8 bytes) | Size (2 bytes) ... 2 (bytes)
)
const (
MinCompressSize = 128
)
Variables ¶
var ( Block1MaxDataSize = (1024 - SizeofBlockHeader) - (lz4.CompressBlockBound(1024-SizeofBlockHeader) + 1) Block2MaxDataSize = (2048 - SizeofBlockHeader) - (lz4.CompressBlockBound(2048-SizeofBlockHeader) + 1) Block4MaxDataSize = (4096 - SizeofBlockHeader) - (lz4.CompressBlockBound(4096-SizeofBlockHeader) + 1) Block8MaxDataSize = (8192 - SizeofBlockHeader) - (lz4.CompressBlockBound(8192-SizeofBlockHeader) + 1) Block16MaxDataSize = (16384 - SizeofBlockHeader) - (lz4.CompressBlockBound(16384-SizeofBlockHeader) + 1) Block32MaxDataSize = (32768 - SizeofBlockHeader) - (lz4.CompressBlockBound(32768-SizeofBlockHeader) + 1) Block64MaxDataSize = (65536 - SizeofBlockHeader) - (lz4.CompressBlockBound(65536-SizeofBlockHeader) + 1) )
var ( SizeofBlockHeader = int(unsafe.Sizeof(BlockHeader{})) SizeofRecordHeader = int(unsafe.Sizeof(RecordHeader{})) )
var ( MaxDataSize = math.MaxUint16 - int(unsafe.Sizeof(BlockHeader{})) MaxDataSizeUncompressed = MaxDataSize - lz4.CompressBlockBound(MaxDataSize) - 1 )
var ( ErrUnknownCompression = errors.New("unknown compression algorithm") ErrOverflow = errors.New("overflow") ErrVarintOverflow = errors.New("varint overflow") ErrFieldTagTooBig = errors.New("field tag too big") ErrIDTooSmall = errors.New("id is equal or smaller than top item") ErrTimeIsPast = errors.New("time is less than top item") ErrRecordTooBig = errors.New("record too big") ErrRecordNotFixed = errors.New("expected a fixed record size") ErrCorrupted = errors.New("corrupted") ErrNil = errors.New("nil") ErrNotExist = errors.New("corrupted") ErrSizeDataMismatch = errors.New("size != len(data)") ErrBlockAllocatorOOM = errors.New("blockAllocator.Alloc() returned nil") ErrOutOfMemory = errors.New("out of memory") ErrOutOfSync = errors.New("out of sync") ErrOutOfOrder = errors.New("out of order") ErrRecordOrBlocks = errors.New("oneof record or blocks") ErrGap = errors.New("gap") ErrWrongStream = errors.New("wrong stream") ErrWrongBlock = errors.New("wrong block") ErrBlockCompleted = errors.New("block completed") ErrConcurrentWriters = errors.New("concurrent writers") ErrUnknownMessage = errors.New("unknown message") ErrNotEnd = errors.New("not end") )
Functions ¶
func MarshalMessageCompactTo ¶
func PutBlock16Mut ¶
func PutBlock16Mut(b *Block16Mut)
func PutBlock1Mut ¶
func PutBlock1Mut(b *Block1Mut)
func PutBlock2Mut ¶
func PutBlock2Mut(b *Block2Mut)
func PutBlock32Mut ¶
func PutBlock32Mut(b *Block32Mut)
func PutBlock4Mut ¶
func PutBlock4Mut(b *Block4Mut)
func PutBlock64Mut ¶
func PutBlock64Mut(b *Block64Mut)
func PutBlock8Mut ¶
func PutBlock8Mut(b *Block8Mut)
func PutBlockMessage ¶
func PutBlockMessage(block *BlockMessage)
func PutBlockMut ¶
func PutBlockMut(b BlockMut)
func PutProgress ¶
func PutProgress(msg *Progress)
func PutRecord ¶
func PutRecord(record *RecordMessage)
func PutSavepoint ¶
func PutSavepoint(msg *Savepoint)
func PutStarted ¶
func PutStarted(msg *Started)
func PutStarting ¶
func PutStarting(msg *Starting)
func PutStopped ¶
func PutStopped(msg *Stopped)
Types ¶
type AccountStats ¶
type AccountStats struct {
// contains filtered or unexported fields
}
func (*AccountStats) Appender ¶
func (s *AccountStats) Appender() *Stats
func (*AccountStats) Bytes ¶
func (s *AccountStats) Bytes() []byte
func (*AccountStats) Clone ¶
func (s *AccountStats) Clone() *AccountStats
func (*AccountStats) Id ¶
func (s *AccountStats) Id() int64
func (*AccountStats) MarshalBinary ¶
func (s *AccountStats) MarshalBinary() ([]byte, error)
func (*AccountStats) MarshalBinaryTo ¶
func (s *AccountStats) MarshalBinaryTo(b []byte) []byte
func (*AccountStats) MarshalMap ¶
func (s *AccountStats) MarshalMap(m map[string]interface{}) map[string]interface{}
func (*AccountStats) Mut ¶
func (s *AccountStats) Mut() *AccountStatsMut
func (*AccountStats) Storage ¶
func (s *AccountStats) Storage() *Stats
func (*AccountStats) Streams ¶
func (s *AccountStats) Streams() int64
func (*AccountStats) String ¶
func (s *AccountStats) String() string
func (*AccountStats) UnmarshalBinary ¶
func (s *AccountStats) UnmarshalBinary(b []byte) error
type AccountStatsMut ¶
type AccountStatsMut struct {
AccountStats
}
func (*AccountStatsMut) Appender ¶
func (s *AccountStatsMut) Appender() *StatsMut
func (*AccountStatsMut) Clone ¶
func (s *AccountStatsMut) Clone() *AccountStatsMut
func (*AccountStatsMut) Freeze ¶
func (s *AccountStatsMut) Freeze() *AccountStats
func (*AccountStatsMut) SetAppender ¶
func (s *AccountStatsMut) SetAppender(v *Stats) *AccountStatsMut
func (*AccountStatsMut) SetId ¶
func (s *AccountStatsMut) SetId(v int64) *AccountStatsMut
func (*AccountStatsMut) SetStorage ¶
func (s *AccountStatsMut) SetStorage(v *Stats) *AccountStatsMut
func (*AccountStatsMut) SetStreams ¶
func (s *AccountStatsMut) SetStreams(v int64) *AccountStatsMut
func (*AccountStatsMut) Storage ¶
func (s *AccountStatsMut) Storage() *StatsMut
type Block ¶
type Block interface { Message Header() *BlockHeader Data() []byte }
type Block1 ¶
type Block1 struct {
// contains filtered or unexported fields
}
Block1
func (*Block1) Head ¶
func (s *Block1) Head() *BlockHeader
func (*Block1) Header ¶
func (b1 *Block1) Header() *BlockHeader
func (*Block1) MarshalBinary ¶
func (*Block1) MarshalBinaryTo ¶
func (*Block1) MarshalCompactTo ¶
func (*Block1) MarshalMap ¶
func (*Block1) Type ¶
func (b1 *Block1) Type() MessageType
func (*Block1) UnmarshalBinary ¶
func (*Block1) UnmarshalCompactFrom ¶
type Block16 ¶
type Block16 struct {
// contains filtered or unexported fields
}
Block16
func (*Block16) Body ¶
func (s *Block16) Body() *Bytes16306
func (*Block16) Head ¶
func (s *Block16) Head() *BlockHeader
func (*Block16) Header ¶
func (b *Block16) Header() *BlockHeader
func (*Block16) MarshalBinary ¶
func (*Block16) MarshalBinaryTo ¶
func (*Block16) MarshalCompactTo ¶
func (*Block16) MarshalMap ¶
func (*Block16) Mut ¶
func (s *Block16) Mut() *Block16Mut
func (*Block16) Type ¶
func (*Block16) Type() MessageType
func (*Block16) UnmarshalBinary ¶
func (*Block16) UnmarshalCompactFrom ¶
type Block16Mut ¶
type Block16Mut struct {
Block16
}
Block16
func GetBlock16Mut ¶
func GetBlock16Mut() *Block16Mut
func (*Block16Mut) AppendRecord ¶
func (b *Block16Mut) AppendRecord(id, created, time, end int64, data []byte) error
func (*Block16Mut) Clone ¶
func (s *Block16Mut) Clone() *Block16Mut
func (*Block16Mut) Freeze ¶
func (s *Block16Mut) Freeze() *Block16
func (*Block16Mut) Head ¶
func (s *Block16Mut) Head() *BlockHeaderMut
func (*Block16Mut) HeaderMut ¶
func (b *Block16Mut) HeaderMut() *BlockHeaderMut
func (*Block16Mut) SetBody ¶
func (s *Block16Mut) SetBody(v Bytes16306) *Block16Mut
func (*Block16Mut) SetHead ¶
func (s *Block16Mut) SetHead(v *BlockHeader) *Block16Mut
func (*Block16Mut) ToMessage ¶
func (bm *Block16Mut) ToMessage(compress bool) (*BlockMessage, error)
func (*Block16Mut) Uncompress ¶
func (bm *Block16Mut) Uncompress(b []byte) error
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type Block1Mut ¶
type Block1Mut struct {
Block1
}
Block1
func GetBlock1Mut ¶
func GetBlock1Mut() *Block1Mut
func (*Block1Mut) AppendRecord ¶
func (*Block1Mut) Head ¶
func (s *Block1Mut) Head() *BlockHeaderMut
func (*Block1Mut) HeaderMut ¶
func (b1 *Block1Mut) HeaderMut() *BlockHeaderMut
func (*Block1Mut) SetHead ¶
func (s *Block1Mut) SetHead(v *BlockHeader) *Block1Mut
func (*Block1Mut) Uncompress ¶
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type Block2 ¶
type Block2 struct {
// contains filtered or unexported fields
}
Block2
func (*Block2) Head ¶
func (s *Block2) Head() *BlockHeader
func (*Block2) Header ¶
func (b *Block2) Header() *BlockHeader
func (*Block2) MarshalBinary ¶
func (*Block2) MarshalBinaryTo ¶
func (*Block2) MarshalCompactTo ¶
func (*Block2) MarshalMap ¶
func (*Block2) Type ¶
func (*Block2) Type() MessageType
func (*Block2) UnmarshalBinary ¶
func (*Block2) UnmarshalCompactFrom ¶
type Block2Mut ¶
type Block2Mut struct {
Block2
}
Block2
func GetBlock2Mut ¶
func GetBlock2Mut() *Block2Mut
func (*Block2Mut) AppendRecord ¶
func (*Block2Mut) Head ¶
func (s *Block2Mut) Head() *BlockHeaderMut
func (*Block2Mut) HeaderMut ¶
func (b *Block2Mut) HeaderMut() *BlockHeaderMut
func (*Block2Mut) SetHead ¶
func (s *Block2Mut) SetHead(v *BlockHeader) *Block2Mut
func (*Block2Mut) Uncompress ¶
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type Block32 ¶
type Block32 struct {
// contains filtered or unexported fields
}
Block32
func (*Block32) Body ¶
func (s *Block32) Body() *Bytes32688
func (*Block32) Head ¶
func (s *Block32) Head() *BlockHeader
func (*Block32) Header ¶
func (b *Block32) Header() *BlockHeader
func (*Block32) MarshalBinary ¶
func (*Block32) MarshalBinaryTo ¶
func (*Block32) MarshalCompactTo ¶
func (*Block32) MarshalMap ¶
func (*Block32) Mut ¶
func (s *Block32) Mut() *Block32Mut
func (*Block32) Type ¶
func (*Block32) Type() MessageType
func (*Block32) UnmarshalBinary ¶
func (*Block32) UnmarshalCompactFrom ¶
type Block32Mut ¶
type Block32Mut struct {
Block32
}
Block32
func GetBlock32Mut ¶
func GetBlock32Mut() *Block32Mut
func (*Block32Mut) AppendRecord ¶
func (b *Block32Mut) AppendRecord(id, created, time, end int64, data []byte) error
func (*Block32Mut) Clone ¶
func (s *Block32Mut) Clone() *Block32Mut
func (*Block32Mut) Freeze ¶
func (s *Block32Mut) Freeze() *Block32
func (*Block32Mut) Head ¶
func (s *Block32Mut) Head() *BlockHeaderMut
func (*Block32Mut) HeaderMut ¶
func (b *Block32Mut) HeaderMut() *BlockHeaderMut
func (*Block32Mut) SetBody ¶
func (s *Block32Mut) SetBody(v Bytes32688) *Block32Mut
func (*Block32Mut) SetHead ¶
func (s *Block32Mut) SetHead(v *BlockHeader) *Block32Mut
func (*Block32Mut) ToMessage ¶
func (bm *Block32Mut) ToMessage(compress bool) (*BlockMessage, error)
func (*Block32Mut) Uncompress ¶
func (bm *Block32Mut) Uncompress(b []byte) error
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type Block4 ¶
type Block4 struct {
// contains filtered or unexported fields
}
Block4
func (*Block4) Head ¶
func (s *Block4) Head() *BlockHeader
func (*Block4) Header ¶
func (b *Block4) Header() *BlockHeader
func (*Block4) MarshalBinary ¶
func (*Block4) MarshalBinaryTo ¶
func (*Block4) MarshalCompactTo ¶
func (*Block4) MarshalMap ¶
func (*Block4) Type ¶
func (*Block4) Type() MessageType
func (*Block4) UnmarshalBinary ¶
func (*Block4) UnmarshalCompactFrom ¶
type Block4Mut ¶
type Block4Mut struct {
Block4
}
Block4
func GetBlock4Mut ¶
func GetBlock4Mut() *Block4Mut
func (*Block4Mut) AppendRecord ¶
func (*Block4Mut) Head ¶
func (s *Block4Mut) Head() *BlockHeaderMut
func (*Block4Mut) HeaderMut ¶
func (b *Block4Mut) HeaderMut() *BlockHeaderMut
func (*Block4Mut) SetHead ¶
func (s *Block4Mut) SetHead(v *BlockHeader) *Block4Mut
func (*Block4Mut) Uncompress ¶
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type Block64 ¶
type Block64 struct {
// contains filtered or unexported fields
}
Block64
func (*Block64) Body ¶
func (s *Block64) Body() *Bytes65456
func (*Block64) Head ¶
func (s *Block64) Head() *BlockHeader
func (*Block64) Header ¶
func (b *Block64) Header() *BlockHeader
func (*Block64) MarshalBinary ¶
func (*Block64) MarshalBinaryTo ¶
func (*Block64) MarshalCompactTo ¶
func (*Block64) MarshalMap ¶
func (*Block64) Mut ¶
func (s *Block64) Mut() *Block64Mut
func (*Block64) Type ¶
func (*Block64) Type() MessageType
func (*Block64) UnmarshalBinary ¶
func (*Block64) UnmarshalCompactFrom ¶
type Block64Mut ¶
type Block64Mut struct {
Block64
}
Block64
func GetBlock64Mut ¶
func GetBlock64Mut() *Block64Mut
func (*Block64Mut) AppendRecord ¶
func (b *Block64Mut) AppendRecord(id, created, time, end int64, data []byte) error
func (*Block64Mut) Clone ¶
func (s *Block64Mut) Clone() *Block64Mut
func (*Block64Mut) Freeze ¶
func (s *Block64Mut) Freeze() *Block64
func (*Block64Mut) Head ¶
func (s *Block64Mut) Head() *BlockHeaderMut
func (*Block64Mut) HeaderMut ¶
func (b *Block64Mut) HeaderMut() *BlockHeaderMut
func (*Block64Mut) SetBody ¶
func (s *Block64Mut) SetBody(v Bytes65456) *Block64Mut
func (*Block64Mut) SetHead ¶
func (s *Block64Mut) SetHead(v *BlockHeader) *Block64Mut
func (*Block64Mut) ToMessage ¶
func (bm *Block64Mut) ToMessage(compress bool) (*BlockMessage, error)
func (*Block64Mut) Uncompress ¶
func (bm *Block64Mut) Uncompress(b []byte) error
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type Block8 ¶
type Block8 struct {
// contains filtered or unexported fields
}
Block8
func (*Block8) Head ¶
func (s *Block8) Head() *BlockHeader
func (*Block8) Header ¶
func (b *Block8) Header() *BlockHeader
func (*Block8) MarshalBinary ¶
func (*Block8) MarshalBinaryTo ¶
func (*Block8) MarshalCompactTo ¶
func (*Block8) MarshalMap ¶
func (*Block8) Type ¶
func (*Block8) Type() MessageType
func (*Block8) UnmarshalBinary ¶
func (*Block8) UnmarshalCompactFrom ¶
type Block8Mut ¶
type Block8Mut struct {
Block8
}
Block8
func GetBlock8Mut ¶
func GetBlock8Mut() *Block8Mut
func (*Block8Mut) AppendRecord ¶
func (*Block8Mut) Head ¶
func (s *Block8Mut) Head() *BlockHeaderMut
func (*Block8Mut) HeaderMut ¶
func (b *Block8Mut) HeaderMut() *BlockHeaderMut
func (*Block8Mut) SetHead ¶
func (s *Block8Mut) SetHead(v *BlockHeader) *Block8Mut
func (*Block8Mut) Uncompress ¶
Uncompress decompresses the LZ4 encoded input into the memory of BlockMut
type BlockAllocator ¶
BlockAllocator allocates a new Block
var ( PooledBlock1Allocator BlockAllocator = block1Allocator{} PooledBlock2Allocator BlockAllocator = block2Allocator{} PooledBlock4Allocator BlockAllocator = block4Allocator{} PooledBlock8Allocator BlockAllocator = block8Allocator{} PooledBlock16Allocator BlockAllocator = block16Allocator{} PooledBlock32Allocator BlockAllocator = block32Allocator{} PooledBlock64Allocator BlockAllocator = block64Allocator{} )
func GetBlockAllocator ¶
func GetBlockAllocator(size int) BlockAllocator
type BlockHeader ¶
type BlockHeader struct {
// contains filtered or unexported fields
}
BlockHeader
func (*BlockHeader) Bytes ¶
func (s *BlockHeader) Bytes() []byte
func (*BlockHeader) Clone ¶
func (s *BlockHeader) Clone() *BlockHeader
func (*BlockHeader) Completed ¶
func (s *BlockHeader) Completed() int64
func (*BlockHeader) Compression ¶
func (s *BlockHeader) Compression() Compression
func (*BlockHeader) Count ¶
func (s *BlockHeader) Count() uint16
func (*BlockHeader) Created ¶
func (s *BlockHeader) Created() int64
func (*BlockHeader) End ¶
func (s *BlockHeader) End() int64
func (*BlockHeader) Id ¶
func (s *BlockHeader) Id() int64
func (*BlockHeader) IsComplete ¶
func (b *BlockHeader) IsComplete() bool
func (*BlockHeader) IsPartial ¶
func (b *BlockHeader) IsPartial() bool
func (*BlockHeader) MarshalBinary ¶
func (s *BlockHeader) MarshalBinary() ([]byte, error)
func (*BlockHeader) MarshalBinaryTo ¶
func (s *BlockHeader) MarshalBinaryTo(b []byte) []byte
func (*BlockHeader) MarshalCompactTo ¶
func (h *BlockHeader) MarshalCompactTo(w *Writer) error
func (*BlockHeader) MarshalMap ¶
func (s *BlockHeader) MarshalMap(m map[string]interface{}) map[string]interface{}
func (*BlockHeader) Max ¶
func (s *BlockHeader) Max() int64
func (*BlockHeader) Min ¶
func (s *BlockHeader) Min() int64
func (*BlockHeader) Mut ¶
func (s *BlockHeader) Mut() *BlockHeaderMut
func (*BlockHeader) Savepoint ¶
func (s *BlockHeader) Savepoint() int64
func (*BlockHeader) SavepointR ¶
func (s *BlockHeader) SavepointR() int64
func (*BlockHeader) Seq ¶
func (s *BlockHeader) Seq() uint16
func (*BlockHeader) Size ¶
func (s *BlockHeader) Size() uint16
func (*BlockHeader) SizeU ¶
func (s *BlockHeader) SizeU() uint16
func (*BlockHeader) SizeX ¶
func (s *BlockHeader) SizeX() uint16
func (*BlockHeader) Start ¶
func (s *BlockHeader) Start() int64
func (*BlockHeader) StreamID ¶
func (s *BlockHeader) StreamID() int64
func (*BlockHeader) String ¶
func (s *BlockHeader) String() string
func (*BlockHeader) UnmarshalBinary ¶
func (s *BlockHeader) UnmarshalBinary(b []byte) error
func (*BlockHeader) UnmarshalCompactFrom ¶
func (h *BlockHeader) UnmarshalCompactFrom(rd *Reader) error
type BlockHeaderMut ¶
type BlockHeaderMut struct {
BlockHeader
}
BlockHeader
func (*BlockHeaderMut) Clone ¶
func (s *BlockHeaderMut) Clone() *BlockHeaderMut
func (*BlockHeaderMut) Freeze ¶
func (s *BlockHeaderMut) Freeze() *BlockHeader
func (*BlockHeaderMut) SetCompleted ¶
func (s *BlockHeaderMut) SetCompleted(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetCompression ¶
func (s *BlockHeaderMut) SetCompression(v Compression) *BlockHeaderMut
func (*BlockHeaderMut) SetCount ¶
func (s *BlockHeaderMut) SetCount(v uint16) *BlockHeaderMut
func (*BlockHeaderMut) SetCreated ¶
func (s *BlockHeaderMut) SetCreated(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetEnd ¶
func (s *BlockHeaderMut) SetEnd(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetId ¶
func (s *BlockHeaderMut) SetId(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetMax ¶
func (s *BlockHeaderMut) SetMax(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetMin ¶
func (s *BlockHeaderMut) SetMin(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetSavepoint ¶
func (s *BlockHeaderMut) SetSavepoint(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetSavepointR ¶
func (s *BlockHeaderMut) SetSavepointR(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetSeq ¶
func (s *BlockHeaderMut) SetSeq(v uint16) *BlockHeaderMut
func (*BlockHeaderMut) SetSize ¶
func (s *BlockHeaderMut) SetSize(v uint16) *BlockHeaderMut
func (*BlockHeaderMut) SetSizeU ¶
func (s *BlockHeaderMut) SetSizeU(v uint16) *BlockHeaderMut
func (*BlockHeaderMut) SetSizeX ¶
func (s *BlockHeaderMut) SetSizeX(v uint16) *BlockHeaderMut
func (*BlockHeaderMut) SetStart ¶
func (s *BlockHeaderMut) SetStart(v int64) *BlockHeaderMut
func (*BlockHeaderMut) SetStreamID ¶
func (s *BlockHeaderMut) SetStreamID(v int64) *BlockHeaderMut
type BlockID ¶
type BlockID struct {
// contains filtered or unexported fields
}
BlockID represents a globally unique ID of a single page of a single stream. String representation
func NewBlockID ¶
func (*BlockID) MarshalBinary ¶
func (*BlockID) MarshalBinaryTo ¶
func (*BlockID) MarshalMap ¶
func (*BlockID) Mut ¶
func (s *BlockID) Mut() *BlockIDMut
func (*BlockID) UnmarshalBinary ¶
type BlockIDMut ¶
type BlockIDMut struct {
BlockID
}
BlockID represents a globally unique ID of a single page of a single stream. String representation
func (*BlockIDMut) Clone ¶
func (s *BlockIDMut) Clone() *BlockIDMut
func (*BlockIDMut) Freeze ¶
func (s *BlockIDMut) Freeze() *BlockID
func (*BlockIDMut) SetId ¶
func (s *BlockIDMut) SetId(v int64) *BlockIDMut
func (*BlockIDMut) SetStreamID ¶
func (s *BlockIDMut) SetStreamID(v int64) *BlockIDMut
type BlockIterator ¶
type BlockIterator interface { Reset(d []byte) BlockIterator Prev() (*Record, error) Next() (*Record, error) }
func NewBlockReader ¶
func NewBlockReader(d []byte) BlockIterator
type BlockMessage ¶
type BlockMessage struct { BlockHeaderMut Body []byte }
func GetBlockMessage ¶
func GetBlockMessage(size int) *BlockMessage
func GetBlockMessageWith ¶
func GetBlockMessageWith(data []byte) *BlockMessage
func ToBlockMessage ¶
func ToBlockMessage(b Block, compress bool) (*BlockMessage, error)
func (*BlockMessage) Clone ¶
func (b *BlockMessage) Clone() *BlockMessage
func (*BlockMessage) Compress ¶
func (b *BlockMessage) Compress() (*BlockMessage, error)
Compress creates a LZ4 compressed clone if not compressed, otherwise it returns itself.
func (*BlockMessage) CompressInline ¶
func (b *BlockMessage) CompressInline() error
Compress compresses the block using LZ4 and replaces current data buffer
func (*BlockMessage) Data ¶
func (b *BlockMessage) Data() []byte
func (*BlockMessage) Decompress ¶
func (b *BlockMessage) Decompress() (*BlockMessage, error)
Decompress decompresses
func (*BlockMessage) DecompressInline ¶
func (b *BlockMessage) DecompressInline() error
DecompressInline decompresses and replaces current data buffer
func (*BlockMessage) Header ¶
func (b *BlockMessage) Header() *BlockHeader
func (*BlockMessage) HeaderMut ¶
func (b *BlockMessage) HeaderMut() *BlockHeaderMut
func (*BlockMessage) MarshalCompactTo ¶
func (b *BlockMessage) MarshalCompactTo(w *Writer) error
func (*BlockMessage) MarshalTo ¶
func (b *BlockMessage) MarshalTo(w *Writer) error
func (*BlockMessage) MessageID ¶
func (s *BlockMessage) MessageID() int64
func (*BlockMessage) Sizeof ¶
func (b *BlockMessage) Sizeof() int
func (*BlockMessage) Timestamp ¶
func (s *BlockMessage) Timestamp() int64
func (*BlockMessage) Type ¶
func (b *BlockMessage) Type() MessageType
func (*BlockMessage) UnmarshalCompactFrom ¶
func (b *BlockMessage) UnmarshalCompactFrom(rd *Reader) error
func (*BlockMessage) UnmarshalFrom ¶
func (b *BlockMessage) UnmarshalFrom(rd *Reader) error
type BlockMessageBuffer ¶
type BlockMessageBuffer struct {
// contains filtered or unexported fields
}
func NewBlockMessageBuffer ¶
func NewBlockMessageBuffer(maxLength, maxSize int, evicted OnBlockMessageEvicted) *BlockMessageBuffer
func (*BlockMessageBuffer) Clear ¶
func (b *BlockMessageBuffer) Clear()
func (*BlockMessageBuffer) Copy ¶
func (b *BlockMessageBuffer) Copy(to []*BlockMessage) []*BlockMessage
func (*BlockMessageBuffer) First ¶
func (b *BlockMessageBuffer) First() *BlockMessage
func (*BlockMessageBuffer) IsFull ¶
func (b *BlockMessageBuffer) IsFull() bool
func (*BlockMessageBuffer) Last ¶
func (b *BlockMessageBuffer) Last() *BlockMessage
func (*BlockMessageBuffer) PopFirst ¶
func (b *BlockMessageBuffer) PopFirst() *BlockMessage
func (*BlockMessageBuffer) PopLast ¶
func (b *BlockMessageBuffer) PopLast() *BlockMessage
func (*BlockMessageBuffer) Push ¶
func (b *BlockMessageBuffer) Push(block *BlockMessage)
func (*BlockMessageBuffer) PushNoEvict ¶
func (b *BlockMessageBuffer) PushNoEvict(block *BlockMessage) bool
func (*BlockMessageBuffer) PushSequential ¶
func (b *BlockMessageBuffer) PushSequential(block *BlockMessage) bool
func (*BlockMessageBuffer) Savepoint ¶
func (b *BlockMessageBuffer) Savepoint(id int64)
PushSavepoint Clears all blocks <= supplied Block ID
type BlockMessageBuilder ¶
type BlockMessageBuilder struct { BlockHeaderMut W Writer // contains filtered or unexported fields }
BlockMessageBuilder forges new blocks for a stream
func (*BlockMessageBuilder) Alloc ¶
func (bw *BlockMessageBuilder) Alloc(maxSize int) error
func (*BlockMessageBuilder) Append ¶
func (bw *BlockMessageBuilder) Append(record *RecordMessage, completed []*BlockMessage) ([]*BlockMessage, int, error)
func (*BlockMessageBuilder) AppendBlock ¶
func (bw *BlockMessageBuilder) AppendBlock(block *BlockMessage, completed []*BlockMessage) ([]*BlockMessage, int, error)
func (*BlockMessageBuilder) Clone ¶
func (bw *BlockMessageBuilder) Clone() BlockMessageBuilder
func (*BlockMessageBuilder) Data ¶
func (bw *BlockMessageBuilder) Data() []byte
func (*BlockMessageBuilder) Flush ¶
func (bw *BlockMessageBuilder) Flush(completed int64) *BlockMessage
func (*BlockMessageBuilder) HasCapacity ¶
func (bw *BlockMessageBuilder) HasCapacity(size int) bool
func (*BlockMessageBuilder) Header ¶
func (bw *BlockMessageBuilder) Header() *BlockHeaderMut
func (*BlockMessageBuilder) IsEmpty ¶
func (bw *BlockMessageBuilder) IsEmpty() bool
func (*BlockMessageBuilder) Reset ¶
func (bw *BlockMessageBuilder) Reset()
func (*BlockMessageBuilder) SetMaxSize ¶
func (bw *BlockMessageBuilder) SetMaxSize(maxSize int)
func (*BlockMessageBuilder) SizeofRecord ¶
func (bw *BlockMessageBuilder) SizeofRecord(record *RecordMessage) int
type BlockMessageWriter ¶
type BlockMessageWriter struct { BlockHeaderMut W Writer }
BlockMessageWriter reassembles blocks forged elsewhere. It adheres to the rules and limitations of Blocks.
func (*BlockMessageWriter) Append ¶
func (bw *BlockMessageWriter) Append(record *RecordMessage) (*BlockMessage, error)
func (*BlockMessageWriter) AppendBlock ¶
func (bw *BlockMessageWriter) AppendBlock(block *BlockMessage) (*BlockMessage, error)
AppendBlock assumes the block was created elsewhere and must build "as is".
func (*BlockMessageWriter) Clone ¶
func (bw *BlockMessageWriter) Clone() BlockMessageWriter
func (*BlockMessageWriter) Data ¶
func (bw *BlockMessageWriter) Data() []byte
func (*BlockMessageWriter) Flush ¶
func (bw *BlockMessageWriter) Flush(completed int64) *BlockMessage
func (*BlockMessageWriter) HasCapacity ¶
func (bw *BlockMessageWriter) HasCapacity(size int) bool
func (*BlockMessageWriter) Header ¶
func (bw *BlockMessageWriter) Header() *BlockHeaderMut
func (*BlockMessageWriter) IsEmpty ¶
func (bw *BlockMessageWriter) IsEmpty() bool
func (*BlockMessageWriter) Reset ¶
func (bw *BlockMessageWriter) Reset()
func (*BlockMessageWriter) SizeofRecord ¶
func (bw *BlockMessageWriter) SizeofRecord(record *RecordMessage) int
type BlockMut ¶
type BlockMut interface { Block HeaderMut() *BlockHeaderMut // Uncompress decompresses the LZ4 encoded input into the memory of BlockMut Uncompress(b []byte) error AppendRecord(id, created, time, end int64, data []byte) error }
func GetBlockMut ¶
type BlockWriter ¶
type BlockWriter struct {
// contains filtered or unexported fields
}
BlockWriter simplifies building Blocks by appending 1 record at a time
func NewBlockWriter ¶
func NewBlockWriter(max BlockHeaderMut, allocator BlockAllocator) *BlockWriter
func (*BlockWriter) Append ¶
func (w *BlockWriter) Append(id, created, time, end int64, data []byte) (BlockMut, int64, uint16, error)
Append tries to append the next record returning a full Block once filled.
func (*BlockWriter) AppendRecord ¶
func (w *BlockWriter) AppendRecord(record *RecordMessage) (BlockMut, int64, uint16, error)
Record tries to append the next record returning a full Block once filled.
func (*BlockWriter) Current ¶
func (bw *BlockWriter) Current() BlockMut
func (*BlockWriter) NextBlock ¶
func (w *BlockWriter) NextBlock() BlockMut
type Bytes16306 ¶
type Bytes16306 [16306]byte
func NewBytes16306 ¶
func NewBytes16306(s string) *Bytes16306
func (*Bytes16306) Bytes ¶
func (s *Bytes16306) Bytes() []byte
func (*Bytes16306) Cap ¶
func (s *Bytes16306) Cap() int
func (*Bytes16306) Clone ¶
func (s *Bytes16306) Clone() *Bytes16306
func (*Bytes16306) Len ¶
func (s *Bytes16306) Len() int
func (*Bytes16306) MarshalBinary ¶
func (s *Bytes16306) MarshalBinary() ([]byte, error)
func (*Bytes16306) MarshalBinaryTo ¶
func (s *Bytes16306) MarshalBinaryTo(b []byte) []byte
func (*Bytes16306) Mut ¶
func (s *Bytes16306) Mut() *Bytes16306Mut
func (*Bytes16306) String ¶
func (s *Bytes16306) String() string
func (*Bytes16306) UnmarshalBinary ¶
func (s *Bytes16306) UnmarshalBinary(b []byte) error
func (*Bytes16306) Unsafe ¶
func (s *Bytes16306) Unsafe() string
type Bytes16306Mut ¶
type Bytes16306Mut struct {
Bytes16306
}
func (*Bytes16306Mut) Set ¶
func (s *Bytes16306Mut) Set(v string)
type Bytes1968 ¶
type Bytes1968 [1968]byte
func NewBytes1968 ¶
func (*Bytes1968) MarshalBinary ¶
func (*Bytes1968) MarshalBinaryTo ¶
func (*Bytes1968) Mut ¶
func (s *Bytes1968) Mut() *Bytes1968Mut
func (*Bytes1968) UnmarshalBinary ¶
type Bytes1968Mut ¶
type Bytes1968Mut struct {
Bytes1968
}
func (*Bytes1968Mut) Set ¶
func (s *Bytes1968Mut) Set(v string)
type Bytes32688 ¶
type Bytes32688 [32688]byte
func NewBytes32688 ¶
func NewBytes32688(s string) *Bytes32688
func (*Bytes32688) Bytes ¶
func (s *Bytes32688) Bytes() []byte
func (*Bytes32688) Cap ¶
func (s *Bytes32688) Cap() int
func (*Bytes32688) Clone ¶
func (s *Bytes32688) Clone() *Bytes32688
func (*Bytes32688) Len ¶
func (s *Bytes32688) Len() int
func (*Bytes32688) MarshalBinary ¶
func (s *Bytes32688) MarshalBinary() ([]byte, error)
func (*Bytes32688) MarshalBinaryTo ¶
func (s *Bytes32688) MarshalBinaryTo(b []byte) []byte
func (*Bytes32688) Mut ¶
func (s *Bytes32688) Mut() *Bytes32688Mut
func (*Bytes32688) String ¶
func (s *Bytes32688) String() string
func (*Bytes32688) UnmarshalBinary ¶
func (s *Bytes32688) UnmarshalBinary(b []byte) error
func (*Bytes32688) Unsafe ¶
func (s *Bytes32688) Unsafe() string
type Bytes32688Mut ¶
type Bytes32688Mut struct {
Bytes32688
}
func (*Bytes32688Mut) Set ¶
func (s *Bytes32688Mut) Set(v string)
type Bytes4016 ¶
type Bytes4016 [4016]byte
func NewBytes4016 ¶
func (*Bytes4016) MarshalBinary ¶
func (*Bytes4016) MarshalBinaryTo ¶
func (*Bytes4016) Mut ¶
func (s *Bytes4016) Mut() *Bytes4016Mut
func (*Bytes4016) UnmarshalBinary ¶
type Bytes4016Mut ¶
type Bytes4016Mut struct {
Bytes4016
}
func (*Bytes4016Mut) Set ¶
func (s *Bytes4016Mut) Set(v string)
type Bytes65456 ¶
type Bytes65456 [65456]byte
func NewBytes65456 ¶
func NewBytes65456(s string) *Bytes65456
func (*Bytes65456) Bytes ¶
func (s *Bytes65456) Bytes() []byte
func (*Bytes65456) Cap ¶
func (s *Bytes65456) Cap() int
func (*Bytes65456) Clone ¶
func (s *Bytes65456) Clone() *Bytes65456
func (*Bytes65456) Len ¶
func (s *Bytes65456) Len() int
func (*Bytes65456) MarshalBinary ¶
func (s *Bytes65456) MarshalBinary() ([]byte, error)
func (*Bytes65456) MarshalBinaryTo ¶
func (s *Bytes65456) MarshalBinaryTo(b []byte) []byte
func (*Bytes65456) Mut ¶
func (s *Bytes65456) Mut() *Bytes65456Mut
func (*Bytes65456) String ¶
func (s *Bytes65456) String() string
func (*Bytes65456) UnmarshalBinary ¶
func (s *Bytes65456) UnmarshalBinary(b []byte) error
func (*Bytes65456) Unsafe ¶
func (s *Bytes65456) Unsafe() string
type Bytes65456Mut ¶
type Bytes65456Mut struct {
Bytes65456
}
func (*Bytes65456Mut) Set ¶
func (s *Bytes65456Mut) Set(v string)
type Bytes8112 ¶
type Bytes8112 [8112]byte
func NewBytes8112 ¶
func (*Bytes8112) MarshalBinary ¶
func (*Bytes8112) MarshalBinaryTo ¶
func (*Bytes8112) Mut ¶
func (s *Bytes8112) Mut() *Bytes8112Mut
func (*Bytes8112) UnmarshalBinary ¶
type Bytes8112Mut ¶
type Bytes8112Mut struct {
Bytes8112
}
func (*Bytes8112Mut) Set ¶
func (s *Bytes8112Mut) Set(v string)
type Bytes944 ¶
type Bytes944 [944]byte
func NewBytes944 ¶
func (*Bytes944) MarshalBinary ¶
func (*Bytes944) MarshalBinaryTo ¶
func (*Bytes944) Mut ¶
func (s *Bytes944) Mut() *Bytes944Mut
func (*Bytes944) UnmarshalBinary ¶
type Bytes944Mut ¶
type Bytes944Mut struct {
Bytes944
}
func (*Bytes944Mut) Set ¶
func (s *Bytes944Mut) Set(v string)
type Compression ¶
type Compression byte
type EOB ¶
type EOB struct {
// contains filtered or unexported fields
}
End of Block
func (*EOB) MarshalBinary ¶
func (*EOB) MarshalBinaryTo ¶
func (*EOB) MarshalCompactTo ¶
func (*EOB) MarshalMap ¶
func (*EOB) Type ¶
func (e *EOB) Type() MessageType
func (*EOB) UnmarshalBinary ¶
func (*EOB) UnmarshalCompactFrom ¶
type EOBMut ¶
type EOBMut struct {
EOB
}
End of Block
func (*EOBMut) RecordID ¶
func (s *EOBMut) RecordID() *RecordIDMut
func (*EOBMut) SetRecordID ¶
func (*EOBMut) SetSavepoint ¶
func (*EOBMut) SetTimestamp ¶
type EOS ¶
type EOS struct {
// contains filtered or unexported fields
}
End of Stream The reader is caught up on the stream.
func (*EOS) MarshalBinary ¶
func (*EOS) MarshalBinaryTo ¶
func (*EOS) MarshalCompactTo ¶
func (*EOS) MarshalMap ¶
func (*EOS) Type ¶
func (e *EOS) Type() MessageType
func (*EOS) UnmarshalBinary ¶
func (*EOS) UnmarshalCompactFrom ¶
type EOSMut ¶
type EOSMut struct {
EOS
}
End of Stream The reader is caught up on the stream.
func (*EOSMut) RecordID ¶
func (s *EOSMut) RecordID() *RecordIDMut
func (*EOSMut) SetRecordID ¶
func (*EOSMut) SetTimestamp ¶
func (*EOSMut) SetWaiting ¶
func (*EOSMut) SetWriterID ¶
type Message ¶
type Message interface { Type() MessageType // Sequential ID of message MessageID() int64 // Timestamp of the message Timestamp() int64 MarshalBinary() ([]byte, error) UnmarshalBinary(b []byte) error MarshalCompactTo(w *Writer) error UnmarshalCompactFrom(rd *Reader) error }
func UnmarshalMessageCompact ¶
type MessageType ¶
type MessageType byte
type OnBlockMessageEvicted ¶
type OnBlockMessageEvicted func(block *BlockMessage)
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func GetProgress ¶
func GetProgress() *Progress
func (*Progress) MarshalBinary ¶
func (*Progress) MarshalBinaryTo ¶
func (*Progress) MarshalCompactTo ¶
func (*Progress) MarshalMap ¶
func (*Progress) Mut ¶
func (s *Progress) Mut() *ProgressMut
func (*Progress) Type ¶
func (s *Progress) Type() MessageType
func (*Progress) UnmarshalBinary ¶
func (*Progress) UnmarshalCompactFrom ¶
type ProgressMut ¶
type ProgressMut struct {
Progress
}
func (*ProgressMut) Clone ¶
func (s *ProgressMut) Clone() *ProgressMut
func (*ProgressMut) Freeze ¶
func (s *ProgressMut) Freeze() *Progress
func (*ProgressMut) RecordID ¶
func (s *ProgressMut) RecordID() *RecordIDMut
func (*ProgressMut) SetCount ¶
func (s *ProgressMut) SetCount(v int64) *ProgressMut
func (*ProgressMut) SetRecordID ¶
func (s *ProgressMut) SetRecordID(v *RecordID) *ProgressMut
func (*ProgressMut) SetRemaining ¶
func (s *ProgressMut) SetRemaining(v int64) *ProgressMut
func (*ProgressMut) SetStarted ¶
func (s *ProgressMut) SetStarted(v int64) *ProgressMut
func (*ProgressMut) SetTimestamp ¶
func (s *ProgressMut) SetTimestamp(v int64) *ProgressMut
func (*ProgressMut) SetWriterID ¶
func (s *ProgressMut) SetWriterID(v int64) *ProgressMut
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) ReadTag ¶
func (r *Reader) ReadTag(x uint64) (WireNumber, WireType, error)
ReadTag decodes the field Number and wire Type from its unified form. The Number is -1 if the decoded field number overflows int32. Other than overflow, this does not check for field number validity.
func (*Reader) ReadUint16 ¶
func (*Reader) ReadUint32 ¶
func (*Reader) ReadUint64 ¶
type RecordHeader ¶
type RecordHeader struct {
// contains filtered or unexported fields
}
func (*RecordHeader) BlockID ¶
func (s *RecordHeader) BlockID() int64
func (*RecordHeader) Bytes ¶
func (s *RecordHeader) Bytes() []byte
func (*RecordHeader) Clone ¶
func (s *RecordHeader) Clone() *RecordHeader
func (*RecordHeader) Compression ¶
func (s *RecordHeader) Compression() Compression
func (*RecordHeader) End ¶
func (s *RecordHeader) End() int64
func (*RecordHeader) Eob ¶
func (s *RecordHeader) Eob() bool
func (*RecordHeader) MarshalBinary ¶
func (s *RecordHeader) MarshalBinary() ([]byte, error)
func (*RecordHeader) MarshalBinaryTo ¶
func (s *RecordHeader) MarshalBinaryTo(b []byte) []byte
func (*RecordHeader) MarshalCompactTo ¶
func (h *RecordHeader) MarshalCompactTo(w *Writer) error
func (*RecordHeader) MarshalMap ¶
func (s *RecordHeader) MarshalMap(m map[string]interface{}) map[string]interface{}
func (*RecordHeader) MessageID ¶
func (s *RecordHeader) MessageID() int64
func (*RecordHeader) Mut ¶
func (s *RecordHeader) Mut() *RecordHeaderMut
func (*RecordHeader) Savepoint ¶
func (s *RecordHeader) Savepoint() int64
func (*RecordHeader) SavepointR ¶
func (s *RecordHeader) SavepointR() int64
func (*RecordHeader) Seq ¶
func (s *RecordHeader) Seq() uint16
func (*RecordHeader) Size ¶
func (s *RecordHeader) Size() uint16
func (*RecordHeader) SizeU ¶
func (s *RecordHeader) SizeU() uint16
func (*RecordHeader) SizeX ¶
func (s *RecordHeader) SizeX() uint16
func (*RecordHeader) Start ¶
func (s *RecordHeader) Start() int64
func (*RecordHeader) StreamID ¶
func (s *RecordHeader) StreamID() int64
func (*RecordHeader) String ¶
func (s *RecordHeader) String() string
func (*RecordHeader) Timestamp ¶
func (s *RecordHeader) Timestamp() int64
func (*RecordHeader) UnmarshalBinary ¶
func (s *RecordHeader) UnmarshalBinary(b []byte) error
func (*RecordHeader) UnmarshalCompactFrom ¶
func (r *RecordHeader) UnmarshalCompactFrom(rd *Reader) error
type RecordHeaderMut ¶
type RecordHeaderMut struct {
RecordHeader
}
func (*RecordHeaderMut) Clone ¶
func (s *RecordHeaderMut) Clone() *RecordHeaderMut
func (*RecordHeaderMut) Freeze ¶
func (s *RecordHeaderMut) Freeze() *RecordHeader
func (*RecordHeaderMut) SetBlockID ¶
func (s *RecordHeaderMut) SetBlockID(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetCompression ¶
func (s *RecordHeaderMut) SetCompression(v Compression) *RecordHeaderMut
func (*RecordHeaderMut) SetEnd ¶
func (s *RecordHeaderMut) SetEnd(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetEob ¶
func (s *RecordHeaderMut) SetEob(v bool) *RecordHeaderMut
func (*RecordHeaderMut) SetId ¶
func (s *RecordHeaderMut) SetId(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetSavepoint ¶
func (s *RecordHeaderMut) SetSavepoint(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetSavepointR ¶
func (s *RecordHeaderMut) SetSavepointR(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetSeq ¶
func (s *RecordHeaderMut) SetSeq(v uint16) *RecordHeaderMut
func (*RecordHeaderMut) SetSize ¶
func (s *RecordHeaderMut) SetSize(v uint16) *RecordHeaderMut
func (*RecordHeaderMut) SetSizeU ¶
func (s *RecordHeaderMut) SetSizeU(v uint16) *RecordHeaderMut
func (*RecordHeaderMut) SetSizeX ¶
func (s *RecordHeaderMut) SetSizeX(v uint16) *RecordHeaderMut
func (*RecordHeaderMut) SetStart ¶
func (s *RecordHeaderMut) SetStart(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetStreamID ¶
func (s *RecordHeaderMut) SetStreamID(v int64) *RecordHeaderMut
func (*RecordHeaderMut) SetTimestamp ¶
func (s *RecordHeaderMut) SetTimestamp(v int64) *RecordHeaderMut
type RecordID ¶
type RecordID struct {
// contains filtered or unexported fields
}
func (*RecordID) MarshalBinary ¶
func (*RecordID) MarshalBinaryTo ¶
func (*RecordID) MarshalCompactTo ¶
func (*RecordID) MarshalMap ¶
func (*RecordID) Mut ¶
func (s *RecordID) Mut() *RecordIDMut
func (*RecordID) UnmarshalBinary ¶
func (*RecordID) UnmarshalCompactFrom ¶
type RecordIDMut ¶
type RecordIDMut struct {
RecordID
}
func (*RecordIDMut) Clone ¶
func (s *RecordIDMut) Clone() *RecordIDMut
func (*RecordIDMut) Freeze ¶
func (s *RecordIDMut) Freeze() *RecordID
func (*RecordIDMut) SetBlockID ¶
func (s *RecordIDMut) SetBlockID(v int64) *RecordIDMut
func (*RecordIDMut) SetId ¶
func (s *RecordIDMut) SetId(v int64) *RecordIDMut
func (*RecordIDMut) SetStreamID ¶
func (s *RecordIDMut) SetStreamID(v int64) *RecordIDMut
type RecordMessage ¶
type RecordMessage struct { RecordHeader Data []byte // Record data }
RecordMessage represents a single record in a block. Appenders append as few as a single record at a time.
func GetRecord ¶
func GetRecord(size int) *RecordMessage
func (*RecordMessage) CompressInline ¶
func (r *RecordMessage) CompressInline() error
CompressInline compresses the entire block using LZ4
func (*RecordMessage) CompressedClone ¶
func (r *RecordMessage) CompressedClone() (*RecordMessage, error)
CompressedClone creates a LZ4 compressed clone if not compressed, otherwise it returns itself.
func (*RecordMessage) Decompress ¶
func (r *RecordMessage) Decompress() (*RecordMessage, error)
func (*RecordMessage) DecompressInline ¶
func (r *RecordMessage) DecompressInline() error
func (*RecordMessage) MarshalCompactTo ¶
func (r *RecordMessage) MarshalCompactTo(w *Writer) error
func (*RecordMessage) Type ¶
func (r *RecordMessage) Type() MessageType
func (*RecordMessage) UnmarshalCompactFrom ¶
func (r *RecordMessage) UnmarshalCompactFrom(rd *Reader) error
type Savepoint ¶
type Savepoint struct {
// contains filtered or unexported fields
}
func GetSavepoint ¶
func GetSavepoint() *Savepoint
func (*Savepoint) MarshalBinary ¶
func (*Savepoint) MarshalBinaryTo ¶
func (*Savepoint) MarshalCompactTo ¶
func (*Savepoint) MarshalMap ¶
func (*Savepoint) Mut ¶
func (s *Savepoint) Mut() *SavepointMut
func (*Savepoint) Type ¶
func (s *Savepoint) Type() MessageType
func (*Savepoint) UnmarshalBinary ¶
func (*Savepoint) UnmarshalCompactFrom ¶
type SavepointMut ¶
type SavepointMut struct {
Savepoint
}
func (*SavepointMut) Clone ¶
func (s *SavepointMut) Clone() *SavepointMut
func (*SavepointMut) Freeze ¶
func (s *SavepointMut) Freeze() *Savepoint
func (*SavepointMut) RecordID ¶
func (s *SavepointMut) RecordID() *RecordIDMut
func (*SavepointMut) SetRecordID ¶
func (s *SavepointMut) SetRecordID(v *RecordID) *SavepointMut
func (*SavepointMut) SetTimestamp ¶
func (s *SavepointMut) SetTimestamp(v int64) *SavepointMut
func (*SavepointMut) SetWriterID ¶
func (s *SavepointMut) SetWriterID(v int64) *SavepointMut
type SchemaKind ¶
type SchemaKind byte
type Started ¶
type Started struct {
// contains filtered or unexported fields
}
func GetStarted ¶
func GetStarted() *Started
func (*Started) MarshalBinary ¶
func (*Started) MarshalBinaryTo ¶
func (*Started) MarshalCompactTo ¶
func (*Started) MarshalMap ¶
func (*Started) Mut ¶
func (s *Started) Mut() *StartedMut
func (*Started) Type ¶
func (s *Started) Type() MessageType
func (*Started) UnmarshalBinary ¶
func (*Started) UnmarshalCompactFrom ¶
type StartedMut ¶
type StartedMut struct {
Started
}
func (*StartedMut) Clone ¶
func (s *StartedMut) Clone() *StartedMut
func (*StartedMut) Freeze ¶
func (s *StartedMut) Freeze() *Started
func (*StartedMut) RecordID ¶
func (s *StartedMut) RecordID() *RecordIDMut
func (*StartedMut) SetRecordID ¶
func (s *StartedMut) SetRecordID(v *RecordID) *StartedMut
func (*StartedMut) SetStops ¶
func (s *StartedMut) SetStops(v int64) *StartedMut
func (*StartedMut) SetTimestamp ¶
func (s *StartedMut) SetTimestamp(v int64) *StartedMut
func (*StartedMut) SetWriterID ¶
func (s *StartedMut) SetWriterID(v int64) *StartedMut
type Starting ¶
type Starting struct {
// contains filtered or unexported fields
}
func GetStarting ¶
func GetStarting() *Starting
func (*Starting) MarshalBinary ¶
func (*Starting) MarshalBinaryTo ¶
func (*Starting) MarshalCompactTo ¶
func (*Starting) MarshalMap ¶
func (*Starting) Mut ¶
func (s *Starting) Mut() *StartingMut
func (*Starting) Type ¶
func (s *Starting) Type() MessageType
func (*Starting) UnmarshalBinary ¶
func (*Starting) UnmarshalCompactFrom ¶
type StartingMut ¶
type StartingMut struct {
Starting
}
func (*StartingMut) Clone ¶
func (s *StartingMut) Clone() *StartingMut
func (*StartingMut) Freeze ¶
func (s *StartingMut) Freeze() *Starting
func (*StartingMut) RecordID ¶
func (s *StartingMut) RecordID() *RecordIDMut
func (*StartingMut) SetRecordID ¶
func (s *StartingMut) SetRecordID(v *RecordID) *StartingMut
func (*StartingMut) SetTimestamp ¶
func (s *StartingMut) SetTimestamp(v int64) *StartingMut
func (*StartingMut) SetWriterID ¶
func (s *StartingMut) SetWriterID(v int64) *StartingMut
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
func (*Stats) MarshalBinary ¶
func (*Stats) MarshalBinaryTo ¶
func (*Stats) MarshalMap ¶
func (*Stats) UnmarshalBinary ¶
type StopReason ¶
type StopReason byte
type Stopped ¶
type Stopped struct {
// contains filtered or unexported fields
}
func GetStopped ¶
func GetStopped() *Stopped
func (*Stopped) MarshalBinary ¶
func (*Stopped) MarshalBinaryTo ¶
func (*Stopped) MarshalCompactTo ¶
func (*Stopped) MarshalMap ¶
func (*Stopped) Mut ¶
func (s *Stopped) Mut() *StoppedMut
func (*Stopped) Reason ¶
func (s *Stopped) Reason() StopReason
func (*Stopped) Type ¶
func (s *Stopped) Type() MessageType
func (*Stopped) UnmarshalBinary ¶
func (*Stopped) UnmarshalCompactFrom ¶
type StoppedMut ¶
type StoppedMut struct {
Stopped
}
func (*StoppedMut) Clone ¶
func (s *StoppedMut) Clone() *StoppedMut
func (*StoppedMut) Freeze ¶
func (s *StoppedMut) Freeze() *Stopped
func (*StoppedMut) RecordID ¶
func (s *StoppedMut) RecordID() *RecordIDMut
func (*StoppedMut) SetReason ¶
func (s *StoppedMut) SetReason(v StopReason) *StoppedMut
func (*StoppedMut) SetRecordID ¶
func (s *StoppedMut) SetRecordID(v *RecordID) *StoppedMut
func (*StoppedMut) SetStarts ¶
func (s *StoppedMut) SetStarts(v int64) *StoppedMut
func (*StoppedMut) SetTimestamp ¶
func (s *StoppedMut) SetTimestamp(v int64) *StoppedMut
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) Kind ¶
func (s *Stream) Kind() StreamKind
func (*Stream) MarshalBinary ¶
func (*Stream) MarshalBinaryTo ¶
func (*Stream) MarshalMap ¶
func (*Stream) Schema ¶
func (s *Stream) Schema() SchemaKind
func (*Stream) UnmarshalBinary ¶
type StreamKind ¶
type StreamKind byte
type StreamMut ¶
type StreamMut struct {
Stream
}
func (*StreamMut) Name ¶
func (s *StreamMut) Name() *String32Mut
func (*StreamMut) SetAccountID ¶
func (*StreamMut) SetBlockSize ¶
func (*StreamMut) SetCreated ¶
func (*StreamMut) SetDuration ¶
func (*StreamMut) SetKind ¶
func (s *StreamMut) SetKind(v StreamKind) *StreamMut
func (*StreamMut) SetRealTime ¶
func (*StreamMut) SetSchema ¶
func (s *StreamMut) SetSchema(v SchemaKind) *StreamMut
type StreamStats ¶
type StreamStats struct {
// contains filtered or unexported fields
}
func (*StreamStats) Appender ¶
func (s *StreamStats) Appender() *Stats
func (*StreamStats) Bytes ¶
func (s *StreamStats) Bytes() []byte
func (*StreamStats) Clone ¶
func (s *StreamStats) Clone() *StreamStats
func (*StreamStats) MarshalBinary ¶
func (s *StreamStats) MarshalBinary() ([]byte, error)
func (*StreamStats) MarshalBinaryTo ¶
func (s *StreamStats) MarshalBinaryTo(b []byte) []byte
func (*StreamStats) MarshalMap ¶
func (s *StreamStats) MarshalMap(m map[string]interface{}) map[string]interface{}
func (*StreamStats) Mut ¶
func (s *StreamStats) Mut() *StreamStatsMut
func (*StreamStats) Storage ¶
func (s *StreamStats) Storage() *Stats
func (*StreamStats) String ¶
func (s *StreamStats) String() string
func (*StreamStats) UnmarshalBinary ¶
func (s *StreamStats) UnmarshalBinary(b []byte) error
type StreamStatsMut ¶
type StreamStatsMut struct {
StreamStats
}
func (*StreamStatsMut) Appender ¶
func (s *StreamStatsMut) Appender() *StatsMut
func (*StreamStatsMut) Clone ¶
func (s *StreamStatsMut) Clone() *StreamStatsMut
func (*StreamStatsMut) Freeze ¶
func (s *StreamStatsMut) Freeze() *StreamStats
func (*StreamStatsMut) SetAppender ¶
func (s *StreamStatsMut) SetAppender(v *Stats) *StreamStatsMut
func (*StreamStatsMut) SetStorage ¶
func (s *StreamStatsMut) SetStorage(v *Stats) *StreamStatsMut
func (*StreamStatsMut) Storage ¶
func (s *StreamStatsMut) Storage() *StatsMut
type String32 ¶
type String32 [32]byte
func NewString32 ¶
func (*String32) MarshalBinary ¶
func (*String32) MarshalBinaryTo ¶
func (*String32) Mut ¶
func (s *String32) Mut() *String32Mut
func (*String32) UnmarshalBinary ¶
type String32Mut ¶
type String32Mut struct {
String32
}
func (*String32Mut) Set ¶
func (s *String32Mut) Set(v string)
type WireNumber ¶
type WireNumber int32
WireNumber represents the field number.
const ( MinValidNumber WireNumber = 1 FirstReservedNumber WireNumber = 19000 LastReservedNumber WireNumber = 19999 MaxValidNumber WireNumber = 1<<29 - 1 )
func (WireNumber) IsValid ¶
func (n WireNumber) IsValid() bool
IsValid reports whether the field number is semantically valid.
Note that while numbers within the reserved range are semantically invalid, they are syntactically valid in the wire format. Implementations may treat records with reserved field numbers as unknown.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteInt16 ¶
func (*Writer) WriteInt32 ¶
func (*Writer) WriteInt64 ¶
func (*Writer) WriteString ¶
func (*Writer) WriteTag ¶
func (w *Writer) WriteTag(num WireNumber, typ WireType) (int, error)
WriteTag encodes the field Number and wire Type into its unified form.
func (*Writer) WriteUint16 ¶
func (*Writer) WriteUint32 ¶
func (*Writer) WriteUint64 ¶
Source Files
¶
- block.go
- block_header.go
- block_iterator.go
- block_message.go
- block_message_buffer.go
- block_message_builder.go
- block_message_pool.go
- block_message_writer.go
- block_pool.go
- block_writer.go
- compress.go
- eob.go
- eos.go
- error.go
- message.go
- pool.go
- proto.go
- reader.go
- record.go
- record_id.go
- record_message.go
- record_message_header.go
- record_pool.go
- savepoint.go
- stream.go
- stream_id.go
- wire.go
- writer.go