Versions in this module Expand all Collapse all v0 v0.0.3 Mar 3, 2024 Changes in this version + var ChunkBuffCount = ChunkSize / ChunkBuffSize + var ChunkBuffSize int64 = 32 * 1024 + var ChunkSize int64 = 1 * 1024 * 1024 type FileToUpload + func (f *FileToUpload) Base64BuildChunk() (chan *FileToUploadChunk, error) v0.0.2 Jan 8, 2023 v0.0.1 Jan 5, 2022 Changes in this version + var CHUNK_BUFF_COUNT = CHUNK_SIZE / CHUNK_BUFF_SIZE + var CHUNK_BUFF_SIZE int64 = 32 * 1024 + var CHUNK_SIZE int64 = 1 * 1024 * 1024 + type ActivePlugin map[string]bool + func (uft *ActivePlugin) UnmarshalJSON(data []byte) error + func (uft ActivePlugin) MarshalJSON() ([]byte, error) + func (uft ActivePlugin) String() string + type Categories []*Category + func (c *Categories) Names() []string + type Category struct + Id int + ImagesCount int + Name string + TotalImagesCount int + Url string + type FileInfo struct + type FileToUpload struct + CategoryId int + Dir string + Name string + func (f *FileToUpload) Base64Chunker() (chan *FileToUploadChunk, error) + func (f *FileToUpload) Checked() bool + func (f *FileToUpload) CreatedAt() *TimeResult + func (f *FileToUpload) Ext() *string + func (f *FileToUpload) FullPath() *string + func (f *FileToUpload) MD5() *string + func (f *FileToUpload) Size() *int64 + type FileToUploadChunk struct + Buffer bytes.Buffer + Position int64 + Size int64 + type FileToUploadStat struct + Checked int64 + Failed int64 + Progress *progressbar.ProgressBar + Skipped int64 + Total int64 + TotalBytes int64 + Uploaded int64 + UploadedBytes int64 + func NewFileToUploadStat() *FileToUploadStat + func (s *FileToUploadStat) Add() + func (s *FileToUploadStat) AddBytes(filesize int64) + func (s *FileToUploadStat) Check() + func (s *FileToUploadStat) Close() + func (s *FileToUploadStat) Commit(filereaded int64) + func (s *FileToUploadStat) Done() + func (s *FileToUploadStat) Error(origin string, filename string, err error) error + func (s *FileToUploadStat) Fail() + func (s *FileToUploadStat) Refresh() + func (s *FileToUploadStat) Skip() + type ImageDetails struct + Categories Categories + DateAvailable TimeResult + DateCreation TimeResult + Derivatives map[string]struct{ ... } + Filename string + Filesize int64 + Height int + Id int + ImageUrl string + LastModified TimeResult + Md5 string + Name string + Tags Tags + Url string + Width int + func (img *ImageDetails) Preview(height int) (string, error) + type Tag struct + Birthdate TimeResult + Id int + ImageUrl string + LastModified TimeResult + Name string + Url string + UrlName string + func (t *Tag) NameWithAgeAt(createdAt *TimeResult) string + type Tags []*Tag + func (t Tags) Ids() []int + func (t Tags) JoinIds(sep string) string + func (t Tags) NamesWithAgeAt(createdAt *TimeResult) []string + func (t Tags) Selector(exclude *regexp.Regexp, keepFilter bool, keepPreviousAnswer bool) func() Tags + type TimeResult time.Time + func (c *TimeResult) UnmarshalJSON(b []byte) error + func (c TimeResult) AgeAt(createdAt *TimeResult) string + func (c TimeResult) MarshalJSON() ([]byte, error) + func (c TimeResult) String() string + type UploadFileType map[string]bool + func (uft *UploadFileType) UnmarshalJSON(data []byte) error + func (uft UploadFileType) Has(s string) bool + func (uft UploadFileType) MarshalJSON() ([]byte, error) + func (uft UploadFileType) String() string