Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines a Tlog Client. This client is not thread/goroutine safe.
func New ¶
New creates a new tlog client for a vdisk with 'addr' is the tlogserver address. 'firstSequence' is the first sequence number this client is going to send. Set 'resetFirstSeq' to true to force reset the vdisk first/expected sequence. The client is not goroutine safe.
func (*Client) Close ¶
Close the open connection, making this client invalid. It is user responsibility to call this function.
func (*Client) ForceFlush ¶
ForceFlush send force flush command to server
func (*Client) ForceFlushAtSeq ¶
ForceFlushAtSeq force flush at given sequence
type Response ¶
type Response struct { Status tlog.BlockStatus // status of the call Sequences []uint64 // flushed sequences number (optional) }
Response defines a response from tlog server
Click to show internal directories.
Click to hide internal directories.