Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Close()
- func (c *Client) Ping() error
- func (c *Client) ReadAt(buf []byte, offset int64) (int, error)
- func (c *Client) SetError(err error)
- func (c *Client) TargetID() string
- func (c *Client) UnmapAt(length uint32, offset int64) (int, error)
- func (c *Client) WriteAt(buf []byte, offset int64) (int, error)
- type Message
- type Server
- type Wire
Constants ¶
View Source
const ( TypeRead = iota TypeWrite TypeResponse TypeError TypeEOF TypeClose TypePing TypeUnmap )
View Source
const (
MagicVersion = uint16(0x1b01) // LongHorn01
)
Variables ¶
View Source
var ( //ErrRWTimeout r/w operation timeout ErrRWTimeout = errors.New("r/w timeout") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client replica client
Click to show internal directories.
Click to hide internal directories.