persistence

package
v0.0.0-...-e478a94 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAllSource

func DeleteAllSource()

func DeleteSourceByName

func DeleteSourceByName(name string) (err error)

func NewSource

func NewSource(name string, sourceType source.Type, src string, origin string) (err error)

Types

type Source

type Source struct {
	gorm.Model
	Name       string
	Type       source.Type
	Src        string
	OriginFile string
}

Source

func FetchAllSource

func FetchAllSource() (sources []Source, err error)

func GetSourceSByName

func GetSourceSByName(name string) (sources []Source, err error)

Jump to

Keyboard shortcuts

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