repository

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetList(ctx context.Context, guildID string) []entity.Song
	IsEmpty(ctx context.Context, guildID string) bool
	Add(ctx context.Context, guildID string, data entity.Song) error
	Remove(ctx context.Context, guildID string, i ...int) error
	Purge(ctx context.Context, guildID string) error

	GetIndex(ctx context.Context, guildID string) int
	SetIndex(ctx context.Context, guildID string, i int) error
}

Repository contains functions for queue domain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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