icon

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

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

func (*Entity) CreateIcon

func (e *Entity) CreateIcon(ctx context.Context, id, guildId int64, object string) error

func (*Entity) GetIcon

func (e *Entity) GetIcon(ctx context.Context, id int64) (model.Icon, error)

func (*Entity) GetIconsByUserId

func (e *Entity) GetIconsByUserId(ctx context.Context, userId int64) ([]model.Icon, error)

func (*Entity) RemoveIcon

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

type Icon

type Icon interface {
	CreateIcon(ctx context.Context, id, guildId int64, object string) error
	RemoveIcon(ctx context.Context, id int64) error
	GetIcon(ctx context.Context, id int64) (model.Icon, error)
	GetIconsByUserId(ctx context.Context, userId int64) ([]model.Icon, error)
}

func New

func New(c *db.CQLCon) Icon

Jump to

Keyboard shortcuts

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