file

package
v0.0.0-...-247c3a5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("file not found")
View Source
var ErrStorageNotDefined = errors.New("storage not defined")

Functions

This section is empty.

Types

type ID

type ID string

type ImageSize

type ImageSize struct {
	Width  uint
	Height uint
	Link   Link
}
type Link struct {
	StorageType StorageType
	ID          ID
}

func NewLinkFromBase64

func NewLinkFromBase64(base64Str string) (Link, error)

func (*Link) Base64

func (l *Link) Base64() string

type StorageType

type StorageType string
const (
	StorageTypeInMemory    StorageType = "in_memory"
	StorageTypePostgres    StorageType = "postgres"
	StorageTypeTelegramBot StorageType = "telegram_bot"
	StorageTypeRemoteLink  StorageType = "remote_link"
)

Directories

Path Synopsis
storage

Jump to

Keyboard shortcuts

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