Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultAddr = ":20202"
)
Default settings
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents an HTTP API server for LiteFS.
type StreamReader ¶
type StreamReader struct {
// contains filtered or unexported fields
}
StreamReader represents a stream of changes from a primary server.
func (*StreamReader) Close ¶
func (r *StreamReader) Close() (err error)
Close closes the underlying reader.
func (*StreamReader) NextFrame ¶
func (r *StreamReader) NextFrame() (litefs.StreamFrame, error)
NextFrame returns the frame from the underlying reader.. This call will block until a record is available. After calling NextFrame(), the frame payload can be read by calling Read() until io.EOF is reached.
Click to show internal directories.
Click to hide internal directories.