db

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAndMigrateDB

func SetupAndMigrateDB(path string) (*sql.DB, *goqu.Database, error)

func SetupDB

func SetupDB(path string) (*sql.DB, *goqu.Database, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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