db

package
v0.0.0-...-24b8df2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(name string, active bool) error

func ActiveNames

func ActiveNames() (*[]string, error)

func Delete

func Delete(name string) error

func Insert

func Insert(name string, service string, url string, comment string) error

func List

func List() (*[]Name, error)

Types

type Name

type Name struct {
	gorm.Model
	Name    string `gorm:"unique"`
	Active  bool
	Service string
	Url     string
	Comment string
}

Jump to

Keyboard shortcuts

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