Documentation ¶
Overview ¶
Package database is a database interface for mirror settings.
Index ¶
- type MirrorDB
- func (db *MirrorDB) AddMirror(ctx context.Context, m *model.Mirror) error
- func (db *MirrorDB) DeleteMirror(ctx context.Context, m *model.Mirror) error
- func (db *MirrorDB) ListFiles(ctx context.Context, mirrorID int64) ([]*model.MirrorFile, error)
- func (db *MirrorDB) Mirrors(ctx context.Context) ([]*model.Mirror, error)
- func (db *MirrorDB) SaveFiles(ctx context.Context, mirrorID int64, filenames []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.