recorder

package
v0.0.0-...-f377a24 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BQRecorder

type BQRecorder struct {
	// contains filtered or unexported fields
}

func NewBQRecorder

func NewBQRecorder(ctx context.Context, settings *BQSettings) (*BQRecorder, error)

func (*BQRecorder) GetRecordedISBN

func (s *BQRecorder) GetRecordedISBN(ctx context.Context, targetDate time.Time) ([]string, error)

func (*BQRecorder) SaveRecords

func (s *BQRecorder) SaveRecords(ctx context.Context, bookList *models.BookList) error

type BQSettings

type BQSettings struct {
	ProjectID   string
	DatasetName string
	TableName   string
}

type Record

type Record struct {
	ISBN          string
	Title         string
	Url           string
	Authors       string
	Publisher     string
	Categories    string
	Ccode         string
	Target        string
	Format        string
	Content       string
	PubDate       civil.Date
	CreatedAt     time.Time
	LastUpdatedAt time.Time
	UploadedAt    time.Time
	UploadedDate  civil.Date
}

Jump to

Keyboard shortcuts

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