attachment

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment interface {
	CreateAttachment(ctx context.Context, id, channelId, fileSize int64, height, width int64, name string) error
	RemoveAttachment(ctx context.Context, id, channelId int64) error
	GetAttachment(ctx context.Context, id, channelId int64) (model.Attachment, error)
	DoneAttachment(ctx context.Context, id, channelId int64, contentType *string) error
	SelectAttachmentByIDs(ctx context.Context, ids []int64) ([]model.Attachment, error)
}

func New

func New(c *db.CQLCon) Attachment

type Entity

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

func (*Entity) CreateAttachment

func (e *Entity) CreateAttachment(ctx context.Context, id, channelId, fileSize int64, height, width int64, name string) error

func (*Entity) DoneAttachment

func (e *Entity) DoneAttachment(ctx context.Context, id, channelId int64, contentType *string) error

func (*Entity) GetAttachment

func (e *Entity) GetAttachment(ctx context.Context, id, channelId int64) (model.Attachment, error)

func (*Entity) RemoveAttachment

func (e *Entity) RemoveAttachment(ctx context.Context, id, channelId int64) error

func (*Entity) SelectAttachmentByIDs

func (e *Entity) SelectAttachmentByIDs(ctx context.Context, ids []int64) ([]model.Attachment, error)

Jump to

Keyboard shortcuts

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