media

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(baseDir string, ttl time.Duration, log *zap.Logger) (*Storage, error)

func (*Storage) Exists

func (s *Storage) Exists(instanceID string, mediaID string) bool

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, instanceID string, mediaID string) ([]byte, error)

func (*Storage) GetPath

func (s *Storage) GetPath(instanceID string, mediaID string) string

GetPath retorna o caminho completo do arquivo

func (*Storage) Save

func (s *Storage) Save(ctx context.Context, instanceID string, messageID string, data []byte, mimetype string) (string, error)

Jump to

Keyboard shortcuts

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