Documentation
¶
Index ¶
- Constants
- type ConnectionState
- type IOOperator
- func (i *IOOperator) ReadDataLeft() uint64
- func (i *IOOperator) ReadIOStream(count int) ([]byte, error)
- func (i *IOOperator) WriteError(message string) error
- func (i *IOOperator) WriteIOFromBuffer(buf []byte) error
- func (i *IOOperator) WriteIOFromReader(reader io.Reader, count int, chunkSize int) error
- func (i *IOOperator) WriteNothing() error
- type MasterCapabilities
- type MasterCapabilitiesDTO
- type RpcMaster
- type RpcSlave
Constants ¶
View Source
const ( MAX_RETRY_COUNT = 50 BUFFER_SIZE = 2 * 1024 * 1024 )
View Source
const (
DEFAULT_CHUNK_SIZE = 65536
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionState ¶ added in v0.2.0
type ConnectionState struct {
// contains filtered or unexported fields
}
type IOOperator ¶
type IOOperator struct {
// contains filtered or unexported fields
}
func NewIOOperator ¶
func (*IOOperator) ReadDataLeft ¶
func (i *IOOperator) ReadDataLeft() uint64
func (*IOOperator) ReadIOStream ¶
func (i *IOOperator) ReadIOStream(count int) ([]byte, error)
func (*IOOperator) WriteError ¶
func (i *IOOperator) WriteError(message string) error
func (*IOOperator) WriteIOFromBuffer ¶
func (i *IOOperator) WriteIOFromBuffer(buf []byte) error
func (*IOOperator) WriteIOFromReader ¶
func (*IOOperator) WriteNothing ¶
func (i *IOOperator) WriteNothing() error
type MasterCapabilities ¶
type MasterCapabilitiesDTO ¶ added in v0.0.7
type RpcMaster ¶
type RpcMaster struct {
// contains filtered or unexported fields
}
func (*RpcMaster) RegisterRPC ¶
func (*RpcMaster) ShowCapabilities ¶
func (r *RpcMaster) ShowCapabilities() ([]MasterCapabilitiesDTO, error)
type RpcSlave ¶
type RpcSlave struct {
// contains filtered or unexported fields
}
func (*RpcSlave) CallForBuffer ¶ added in v0.1.0
func (*RpcSlave) DeInitialize ¶
func (r *RpcSlave) DeInitialize()
func (*RpcSlave) GetMasterCapabilities ¶
func (r *RpcSlave) GetMasterCapabilities() ([]MasterCapabilitiesDTO, error)
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
client_concurrent
command
|
|
|
client_simple
command
|
|
|
server
command
|
|
|
test_server
command
|
Click to show internal directories.
Click to hide internal directories.