source

package
v1.3.48 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertSource

func InsertSource(source Source) (int, error)

func RemoveSource

func RemoveSource(sourceID int) error

func UpdateSource

func UpdateSource(source Source) error

Types

type Source

type Source struct {
	ID            *int      `json:"id"`
	UUID          string    `json:"uuid"`
	Name          string    `json:"name"`
	AlternateName string    `json:"alternateName"`
	URL           string    `json:"url"`
	Ticker        string    `json:"ticker"`
	Description   string    `json:"description"`
	CreatedBy     string    `json:"createdBy"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedBy     string    `json:"updatedBy"`
	UpdatedAt     time.Time `json:"updatedAt"`
}

Source

func GetSource

func GetSource(sourceID int) (*Source, error)

func GetSourceList

func GetSourceList(ids []int) ([]Source, error)

func GetTopTenSources

func GetTopTenSources() ([]Source, error)

Jump to

Keyboard shortcuts

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