repo

package
v0.0.0-...-a450fc5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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 Repo

type Repo interface {
	Add(ctx context.Context, name string, describe string) (uint64, error)
	Get(ctx context.Context, packID uint64) (*model.Pack, error)
	List(ctx context.Context, cursor uint64, limit uint64) ([]*model.Pack, error)
	Update(ctx context.Context, packId uint64, name string, describe string) (bool, error)
	Remove(ctx context.Context, packID uint64) (bool, error)
}

Repo is DAO for Pack

func NewRepo

func NewRepo(db *sqlx.DB, batchSize uint) Repo

NewRepo returns Repo interface

Jump to

Keyboard shortcuts

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