Documentation ¶
Index ¶
- Constants
- type FileClient
- type FileClientImpl
- func (fc FileClientImpl) Close() cerror.CPPError
- func (fc *FileClientImpl) Connect(address string, port int) cerror.CPPError
- func (fc FileClientImpl) Free()
- func (fc *FileClientImpl) SendCreateRequest(cr request.CreateRequest) (*response.CreateResponseImpl, cerror.CPPError)
- func (fc *FileClientImpl) SendGetRequest(filepath string) cerror.CPPError
- func (fc *FileClientImpl) SendReadRequest(numberOfBytesToRead, offset int, readFile, writeFile string) cerror.CPPError
- func (fc *FileClientImpl) SendWriteRequest(numberOfBytesToWrite, offset int, readFile, writeFile string) cerror.CPPError
Constants ¶
View Source
const READ = int(C.READ_MODE)
View Source
const WRITE = int(C.WRITE_MODE)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileClient ¶
type FileClient interface { Connect(address string, port int) cerror.CPPError SendCreateRequest(cr request.CreateRequest) (*response.CreateResponseImpl, cerror.CPPError) SendGetRequest(filepath string) cerror.CPPError SendReadRequest(numberOfBytesToRead, offset int, readFile, writeFile string) cerror.CPPError SendWriteRequest(numberOfBytesToWrite, offset int, readFile, writeFile string) cerror.CPPError Close() cerror.CPPError Free() }
type FileClientImpl ¶
type FileClientImpl struct {
// contains filtered or unexported fields
}
func NewFileClient ¶
func NewFileClient() FileClientImpl
NewFileClient creates a new instance of FileClient
func (FileClientImpl) Close ¶
func (fc FileClientImpl) Close() cerror.CPPError
Close closes the connection to the server, returns false upon failure
func (*FileClientImpl) Connect ¶
func (fc *FileClientImpl) Connect(address string, port int) cerror.CPPError
Close closes the connection to the server, returns false upon failure
func (FileClientImpl) Free ¶
func (fc FileClientImpl) Free()
Free deallocates the memory allocataed to the FileClientImpl instance
func (*FileClientImpl) SendCreateRequest ¶
func (fc *FileClientImpl) SendCreateRequest(cr request.CreateRequest) (*response.CreateResponseImpl, cerror.CPPError)
func (*FileClientImpl) SendGetRequest ¶
func (fc *FileClientImpl) SendGetRequest(filepath string) cerror.CPPError
func (*FileClientImpl) SendReadRequest ¶
func (fc *FileClientImpl) SendReadRequest(numberOfBytesToRead, offset int, readFile, writeFile string) cerror.CPPError
func (*FileClientImpl) SendWriteRequest ¶
func (fc *FileClientImpl) SendWriteRequest(numberOfBytesToWrite, offset int, readFile, writeFile string) cerror.CPPError
Click to show internal directories.
Click to hide internal directories.