dto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dto provides data transfer objects for the ephemeralfiles API. These structures define the request and response formats used in API communications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Err     bool   `json:"error"`
	Message string `json:"msg"`
}

APIError is the error response from the API.

type File

type File struct {
	FileID          string    `json:"file_id"`
	OwnerID         string    `json:"owner_id"`
	FileName        string    `json:"filename"`
	Size            int64     `json:"size"`
	UpdateDateBegin time.Time `json:"update_date_begin"`
	UpdateDateEnd   time.Time `json:"update_date_end"`
	ExpirationDate  time.Time `json:"expiration_date"`
}

File is the struct that represents a file in the API.

type FileList

type FileList []File

FileList is a list of files.

type InfoFile

type InfoFile struct {
	Filename string `json:"filename"`
	Size     int64  `json:"size"`
	NbParts  int    `json:"nb_parts"`
}

InfoFile contains information about a file to be uploaded.

type RequestAESKey

type RequestAESKey struct {
	AESKey string `json:"aeskey"`
}

RequestAESKey contains the AES encryption key for E2E encrypted operations.

Jump to

Keyboard shortcuts

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