datastore

package
v0.0.0-...-b5ea2e0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore interface {
	Tokenstore
	Execstore
	Userdatastore
}

Datastore access to database

type Execstore

type Execstore interface {
	Executions() ([]model.Execution, error)
}

type Tokenstore

type Tokenstore interface {
	SaveToken(userID int64, token *oauth2.Token) error
	Schedule(userID int64, date time.Time) error
}

type Userdatastore

type Userdatastore interface {
	Disable(userID int64) error
	GetFollowers(userID int64) ([]string, error)
	SaveFollowers(userID int64, followers []string) error
	GetStars(userID int64) ([]model.Star, error)
	SaveStars(userID int64, stars []model.Star) error
	FollowerCount(userID int64) (int, error)
	StarCount(userID int64) (int, error)
	RepositoryCount(userID int64) (int, error)
	UserExist(userID int64) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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