link

package
v0.0.0-...-57202d7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Uid         int
	Identifier  string
	Url         string
	ContentType string
}

type Repository

type Repository struct {
	Db *sql.DB
}

func (*Repository) DeleteByUid

func (r *Repository) DeleteByUid(uid int) error

func (*Repository) FindAll

func (r *Repository) FindAll() ([]*Link, error)

func (*Repository) FindByIdentifier

func (r *Repository) FindByIdentifier(ident string) (*Link, error)

func (*Repository) InitSchema

func (r *Repository) InitSchema() error

func (*Repository) InsertNew

func (r *Repository) InsertNew(identifier, url, contentType string) error

Jump to

Keyboard shortcuts

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