db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDb

func MigrateDb(db *sql.DB) error

func SetupDB

func SetupDB(path string) (*sql.DB, error)

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database implements the applications core logic.

func NewDatabase

func NewDatabase(db *goqu.Database) *Database

func (*Database) CreateDomain

func (db *Database) CreateDomain(domain string) error

func (*Database) Resolve

func (db *Database) Resolve(domain, name string) (string, error)

func (*Database) SavePURL

func (db *Database) SavePURL(domain, name, target string) error

Jump to

Keyboard shortcuts

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