Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { AuthToken string Cluster string ClusterID string HTTPClient *http.Client // contains filtered or unexported fields }
Client implements the LiteFS Cloud HTTP API client.
type ResumableReader ¶
type ResumableReader struct {
// contains filtered or unexported fields
}
func NewResumableReader ¶
func NewResumableReader() *ResumableReader
func (*ResumableReader) Reading ¶
func (r *ResumableReader) Reading() <-chan struct{}
Reading returns a channel that sends a value when the Read() function is called. Resume must be called after this to resume the Read().
func (*ResumableReader) Resume ¶
func (r *ResumableReader) Resume(err error)
Resume should be called after Reading() is signaled. The err value will be returned by the paused Read() call.
type StatefulBlob ¶
type StatefulBlob struct {
// contains filtered or unexported fields
}
StatefulBlob represents a binary blob that LTX changesets can be generated from.
func NewStatefulBlob ¶
func NewStatefulBlob(seed int64, pageSize uint32) *StatefulBlob
NewStatefulBlob returns a zero-length StatefulBlob.
func (*StatefulBlob) Clone ¶
func (b *StatefulBlob) Clone() *StatefulBlob
Clone returns a copy of the entire state of the blob with a new PRNG.
func (*StatefulBlob) Commit ¶
func (b *StatefulBlob) Commit() uint32
Commit returns the number of pages in the blob.
func (*StatefulBlob) Extend ¶
Extend adds pages to change b to the given size. Fatal if n is less than len. Returns a reader of LTX data with the changes.
func (*StatefulBlob) Pos ¶
func (b *StatefulBlob) Pos() ltx.Pos
Pos returns the current replication position.