models

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 3 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 {
	Id     uuid.UUID `json:"id"`
	UserId uuid.UUID `json:"user_id"`

	UploadedFilename          string `json:"filename"`
	DecryptedUploadedFilename string `json:"decrypted_uploaded_filename"`

	Status         FileStatus `json:"status"`
	DecryptionTime time.Time  `json:"decryption_time"`

	CreatedAt time.Time `json:"created_at"`
}

func (*File) DecryptedFilename

func (f *File) DecryptedFilename() string

func (*File) EncryptedFilename

func (f *File) EncryptedFilename() string

type FileStatus

type FileStatus int
const (
	StatusWaiting FileStatus = iota
	StatusProcessing
	StatusDecrypted
	StatusAborted
)

func (FileStatus) String

func (s FileStatus) String() string

type User

type User struct {
	Id uuid.UUID `json:"id"`

	Name       string `json:"name"`
	ApiKeyHash string `json:"api_key_hash"`

	IsActive bool `json:"is_active"`

	CreatedAt time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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