database

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetadataItem

func AddMetadataItem(provider string, itemId string, item interface{}) error

func AddValidatedProviderItem

func AddValidatedProviderItem(provider string, itemId string) error

func ExistsValidatedProviderItem

func ExistsValidatedProviderItem(provider string, itemId string) bool

func GetMetadataItem

func GetMetadataItem(provider string, itemId string) (*string, error)

func Init

func Init(databaseFilePath string) error

func ShowUsing

func ShowUsing(databaseFilePath *string)

Types

type ProviderItemMetadata

type ProviderItemMetadata struct {
	Provider string `gorm:"primary_key"`
	Id       string `gorm:"primary_key"`
	Json     string `gorm:"type:text"`
}

type ValidatedProviderItem

type ValidatedProviderItem struct {
	Provider string `gorm:"primary_key"`
	Id       string `gorm:"primary_key"`
	Expires  time.Time
}

Jump to

Keyboard shortcuts

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