scorestore

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Score

type Score struct {
	IssueNumber int       `bson:"issueNumber"`
	Date        time.Time `bson:"date"`
	Score       float64   `bson:"score"`
}

type ScoreStore

type ScoreStore interface {
	GetAll(ctx context.Context, owner, repo string) ([]Score, error)
	Put(ctx context.Context, owner, repo string, score Score) error
	UpdateAll(ctx context.Context, owner, repo string, scores []Score) error
	Delete(ctx context.Context, owner, repo string, issueNumber int) error
}

func NewStore

func NewStore(db mongodb.MongoDB, database string) ScoreStore

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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