Documentation ¶
Index ¶
- Constants
- Variables
- func SetRPCTimeout()
- type Client
- func (c *Client) Close() error
- func (c *Client) Ping() error
- func (c *Client) ReadAt(buf []byte, offset int64) (int, error)
- func (c *Client) SetError(err error)
- func (c *Client) Sync() (int, error)
- func (c *Client) TargetID() string
- func (c *Client) Unmap(offset int64, length int64) (int, error)
- func (c *Client) WriteAt(buf []byte, offset int64) (int, error)
- type Message
- type SampleOp
- type Server
- type Wire
Constants ¶
View Source
const ( TypeRead = iota TypeWrite TypeResponse TypeError TypeEOF TypeClose TypePing TypeUpdate TypeSync TypeUnmap )
View Source
const (
MagicVersion = uint16(0x1b03) // Jiva03
)
Variables ¶
View Source
var ( //ErrRWTimeout r/w operation timeout ErrRWTimeout = errors.New("r/w timeout") ErrPingTimeout = errors.New("Ping timeout") )
Functions ¶
func SetRPCTimeout ¶
func SetRPCTimeout()
SetRPCTimeout is used to custom timeouts for read and write
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client replica client
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetMonitorChannel ¶
func (s *Server) SetMonitorChannel(monitorChan chan struct{})
Click to show internal directories.
Click to hide internal directories.