Documentation ¶
Index ¶
- type DB
- func (d *DB) BatchWrite(ctx context.Context, uid string, originals []models.BatchOriginal) ([]string, error)
- func (d *DB) Delete(ctx context.Context, uid string, link string) error
- func (d *DB) Get(ctx context.Context, short string) (string, error)
- func (d *DB) GetByUserID(ctx context.Context, id string) ([]models.LinkJSON, error)
- func (d *DB) Ping(ctx context.Context) bool
- func (d *DB) Write(ctx context.Context, uuid, long string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func NewDatabaseStore ¶
func (*DB) BatchWrite ¶
func (*DB) GetByUserID ¶
Click to show internal directories.
Click to hide internal directories.