Documentation
¶
Index ¶
- type Database
- func (d *Database) CheckShortLinkIDExists(id string) (bool, error)
- func (d *Database) CreateShortLink(shortLink *model.ShortLink) error
- func (d *Database) DeleteShortLink(id string) error
- func (d *Database) FindShortLinkByID(id string) (model.ShortLink, error)
- func (d *Database) UpdataShortLink(id string, name string, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶ added in v1.1.1
type Database struct {
// contains filtered or unexported fields
}
func (*Database) CheckShortLinkIDExists ¶ added in v1.1.1
func (*Database) CreateShortLink ¶ added in v1.1.1
func (*Database) DeleteShortLink ¶ added in v1.1.1
func (*Database) FindShortLinkByID ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.