Documentation
¶
Index ¶
- 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 RpcMaster
- type RpcSlave
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOOperator ¶
type IOOperator struct {
// contains filtered or unexported fields
}
func NewIOOperator ¶
func NewIOOperator(stream *net.TCPConn, readLength uint64) *IOOperator
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 RpcMaster ¶
type RpcMaster struct {
// contains filtered or unexported fields
}
func (*RpcMaster) RegisterRPC ¶
func (*RpcMaster) ShowCapabilities ¶
func (r *RpcMaster) ShowCapabilities() ([]struct { RpcID uint32 `json:"rpcId"` *MasterCapabilities }, error)
type RpcSlave ¶
type RpcSlave struct {
// contains filtered or unexported fields
}
func NewRpcSlave ¶
func (*RpcSlave) DeInitialize ¶
func (r *RpcSlave) DeInitialize()
func (*RpcSlave) GetMasterCapabilities ¶
func (r *RpcSlave) GetMasterCapabilities() ([]struct { RpcID uint32 `json:"rpcId"` *MasterCapabilities }, error)
Click to show internal directories.
Click to hide internal directories.