foldercode

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FileName string `json:"filename"`
	FileUrl  string `json:"file_url"`
}

type FileResponse

type FileResponse struct {
	Files []File `json:"files"`
}

type FoldercodeClient

type FoldercodeClient struct{}

func (FoldercodeClient) DownloadFile

func (fc FoldercodeClient) DownloadFile(file File) error

func (FoldercodeClient) GenerateSession

func (fc FoldercodeClient) GenerateSession() (Session, error)

func (FoldercodeClient) GetFiles

func (fc FoldercodeClient) GetFiles(code string) ([]File, error)

func (FoldercodeClient) UploadFile

func (fc FoldercodeClient) UploadFile(s Session, fileName string) error

type Session

type Session struct {
	Id         string `json:"id"`
	FolderCode string `json:"folderCode"`
}

Jump to

Keyboard shortcuts

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