Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2025 v1.0.0 Mar 11, 2025 Changes in this version + func GenerateSecret(length int) (string, error) + func GetAdminToken(claims *AdminClaims, key string) (string, error) + func GetJsonStruct(byteArr []byte, val interface{}) error + func GetMimetypeByPath(path string) string + func GetSessionToken(claims *SessionClaims, key string) (string, error) + func GetTempPath(root string, id string, filename string) string + func GetValidatedPayload(c echo.Context, payload interface{}) error + func StringToPGUUID(uuidStr string) (pgtype.UUID, error) + type AdminClaims struct + AdminID string + func GetAdminInfo(token string, key string) (*AdminClaims, error) + type FileIO struct + func NewFileIO(local string, temp string) *FileIO + func (fio *FileIO) AddChunk(path string, chunkCount int, fileData []byte) error + func (fio *FileIO) DeleteFile(path string) error + func (fio *FileIO) MergeChunksAndWriteToStore(path string, fileName string, totalChunks int64, data []byte) (string, string, error) + func (fio *FileIO) WriteToStoreOnly(fileName string, data []byte) (string, error) + type SessionClaims struct + SessionID string + func GetSessionInfo(token string, key string) (*SessionClaims, error)