fileclient

package
v0.0.0-...-15d1ce6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL