Documentation ¶
Index ¶
- Constants
- func MarshalBinary(m encoding.BinaryMarshaler) ([]byte, error)
- func MarshalBinaryFull(opcode uint8, m encoding.BinaryMarshaler) ([]byte, error)
- func UnmarshalBinary(buf []byte, u encoding.BinaryUnmarshaler) error
- type AckResponse
- type AddPointPacket
- type CreatePacket
- type DeletePacket
- type Header
- func (h *Header) Len() uint64
- func (h Header) MarshalBinary() ([]byte, error)
- func (h *Header) Opcode() byte
- func (h *Header) SetOpcode(opcode byte)
- func (h *Header) SetStatus(status byte)
- func (h *Header) Status() byte
- func (header Header) String() string
- func (h *Header) UnmarshalBinary(buf []byte) error
- type QueryPacket
- func (q *QueryPacket) Apply(ts *timeseries.TimeSeries) (encoding.BinaryMarshaler, error)
- func (q *QueryPacket) First() bool
- func (q *QueryPacket) Last() bool
- func (q *QueryPacket) MarshalBinary() ([]byte, error)
- func (q *QueryPacket) Max() bool
- func (q *QueryPacket) Min() bool
- func (q *QueryPacket) UnmarshalBinary(buf []byte) error
- type QueryResponsePacket
- type Response
Constants ¶
View Source
const ( CREATE = iota DELETE ADDPOINT MADDPOINT QUERY QUERYRESPONSE ACK )
View Source
const ( OK = iota ACCEPTED TSNOTFOUND TSEXISTS UNKNOWNCMD )
View Source
const ( MIN = 1 MAX = 2 FIRST = 3 LAST = 4 )
Variables ¶
This section is empty.
Functions ¶
func MarshalBinary ¶
func MarshalBinary(m encoding.BinaryMarshaler) ([]byte, error)
func MarshalBinaryFull ¶
func MarshalBinaryFull(opcode uint8, m encoding.BinaryMarshaler) ([]byte, error)
func UnmarshalBinary ¶
func UnmarshalBinary(buf []byte, u encoding.BinaryUnmarshaler) error
Types ¶
type AckResponse ¶
type AckResponse = Header
type AddPointPacket ¶
func (*AddPointPacket) Apply ¶
func (a *AddPointPacket) Apply(ts *timeseries.TimeSeries) (encoding.BinaryMarshaler, error)
func (*AddPointPacket) MarshalBinary ¶
func (a *AddPointPacket) MarshalBinary() ([]byte, error)
func (*AddPointPacket) UnmarshalBinary ¶
func (a *AddPointPacket) UnmarshalBinary(buf []byte) error
type CreatePacket ¶
func (*CreatePacket) MarshalBinary ¶
func (c *CreatePacket) MarshalBinary() ([]byte, error)
func (*CreatePacket) UnmarshalBinary ¶
func (c *CreatePacket) UnmarshalBinary(buf []byte) error
type DeletePacket ¶
type DeletePacket struct {
Name string
}
func (*DeletePacket) MarshalBinary ¶
func (d *DeletePacket) MarshalBinary() ([]byte, error)
func (*DeletePacket) UnmarshalBinary ¶
func (d *DeletePacket) UnmarshalBinary(buf []byte) error
type QueryPacket ¶
func (*QueryPacket) Apply ¶
func (q *QueryPacket) Apply(ts *timeseries.TimeSeries) (encoding.BinaryMarshaler, error)
func (*QueryPacket) First ¶
func (q *QueryPacket) First() bool
func (*QueryPacket) Last ¶
func (q *QueryPacket) Last() bool
func (*QueryPacket) MarshalBinary ¶
func (q *QueryPacket) MarshalBinary() ([]byte, error)
func (*QueryPacket) Max ¶
func (q *QueryPacket) Max() bool
func (*QueryPacket) Min ¶
func (q *QueryPacket) Min() bool
func (*QueryPacket) UnmarshalBinary ¶
func (q *QueryPacket) UnmarshalBinary(buf []byte) error
type QueryResponsePacket ¶
type QueryResponsePacket struct {
Records []timeseries.Record
}
func (*QueryResponsePacket) MarshalBinary ¶
func (qr *QueryResponsePacket) MarshalBinary() ([]byte, error)
func (*QueryResponsePacket) String ¶
func (qr *QueryResponsePacket) String() string
func (*QueryResponsePacket) UnmarshalBinary ¶
func (qr *QueryResponsePacket) UnmarshalBinary(buf []byte) error
Click to show internal directories.
Click to hide internal directories.