Documentation ¶
Index ¶
- Constants
- type Api
- func (c *Api) DownloadClientFileActions(lastId int64) (clientFileActionsResponse structs.ClientFileActionsResponse, err error)
- func (c *Api) DownloadFileFromServer(hash string) (s3_url string, err error)
- func (c *Api) SendFileActionsToServer(fileActions []structs.FileAction) (filesToUpload []string, err error)
- func (c *Api) UploadFileToServer(fileBody []byte) (err error)
Constants ¶
View Source
const ( ApiEndpoint = "http://127.0.0.1:8000/" UDPEndpoint = "127.0.0.1:4242" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
SessionKey string
}
func (*Api) DownloadClientFileActions ¶
func (c *Api) DownloadClientFileActions(lastId int64) ( clientFileActionsResponse structs.ClientFileActionsResponse, err error)
func (*Api) DownloadFileFromServer ¶
func (*Api) SendFileActionsToServer ¶
func (c *Api) SendFileActionsToServer( fileActions []structs.FileAction) ( filesToUpload []string, err error)
func (*Api) UploadFileToServer ¶
Click to show internal directories.
Click to hide internal directories.