sheets

package
v0.0.0-...-92a07c5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SheetsDB

type SheetsDB struct {
	Service   *sheets.Service
	SheetID   string
	SheetName string
}

func NewSheetsService

func NewSheetsService(ctx context.Context, cfg config.SheetsConfig) (*SheetsDB, error)

func (*SheetsDB) Delete

func (sheetsDB *SheetsDB) Delete(ids []string) error

func (*SheetsDB) Find

func (sheetsDB *SheetsDB) Find(terms string) (*core.ArticleSeries, error)

func (*SheetsDB) Get

func (sheetsDB *SheetsDB) Get(offset, limit int) (*core.ArticleSeries, error)

func (*SheetsDB) GetArticle

func (sheetsDB *SheetsDB) GetArticle(id uuid.UUID) (*core.Article, error)

func (*SheetsDB) GetQuestion

func (sheetsDB *SheetsDB) GetQuestion(qnNo string) (string, error)

func (*SheetsDB) Store

func (sheetsDB *SheetsDB) Store(data *core.ArticleSeries) error

func (*SheetsDB) Update

func (sheetsDB *SheetsDB) Update(data *core.ArticleSeries) error

Jump to

Keyboard shortcuts

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