database

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 ConnectDB

func ConnectDB() (*Database, error)

func (*Database) CheckShortLinkIDExists added in v1.1.1

func (d *Database) CheckShortLinkIDExists(id string) (bool, error)
func (d *Database) CreateShortLink(shortLink *model.ShortLink) error
func (d *Database) DeleteShortLink(id string) error

func (*Database) FindShortLinkByID added in v1.1.1

func (d *Database) FindShortLinkByID(id string) (model.ShortLink, error)
func (d *Database) UpdataShortLink(id string, name string, value any) error

Jump to

Keyboard shortcuts

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