Documentation ¶
Index ¶
- Variables
- type PGStore
- func (s PGStore) CreateOAuthState(ctx context.Context, next string) (string, error)
- func (s PGStore) CreateSession(ctx context.Context, user *usertypes.User, accessToken string) (*sessiontypes.Session, error)
- func (s PGStore) CreateSessionNonce(ctx context.Context, sessionID string) (string, error)
- func (s PGStore) CreateUser(ctx context.Context, emailAddress string, avatarURL string) (*usertypes.User, error)
- func (s PGStore) CreateUserToken(ctx context.Context, userID string) (string, error)
- func (s PGStore) GetAverageDownloadSpeed(ctx context.Context) (float64, error)
- func (s PGStore) GetAveragePingTime(ctx context.Context) (float64, error)
- func (s PGStore) GetConnectedDishyCount(ctx context.Context) (int, error)
- func (s PGStore) GetDishy(ctx context.Context, id string) (*dishytypes.Dishy, error)
- func (s PGStore) GetDishyForUser(ctx context.Context, id string, userID string) (*dishytypes.Dishy, error)
- func (s PGStore) GetDishyTimezoneOffset(ctx context.Context, id string) (int, error)
- func (s PGStore) GetDishyVersions(ctx context.Context, id string) (string, string, error)
- func (s PGStore) GetHighestDownloadSpeed(ctx context.Context) (float64, error)
- func (s PGStore) GetLowestPingTime(ctx context.Context) (float64, error)
- func (s PGStore) GetNewDishyCount(ctx context.Context) (int, error)
- func (s PGStore) GetOAuthState(ctx context.Context, id string) (bool, string, error)
- func (s PGStore) GetQueuedEmails(ctx context.Context) ([]*mailertypes.Email, error)
- func (s PGStore) GetSession(ctx context.Context, id string) (*sessiontypes.Session, error)
- func (s PGStore) GetSessionNonce(ctx context.Context, id string) (string, error)
- func (s PGStore) GetToken(ctx context.Context, token string) (*tokentypes.Token, error)
- func (s PGStore) GetTotalDishyCount(ctx context.Context) (int, error)
- func (s PGStore) GetUserByDishy(ctx context.Context, id string) (*usertypes.User, error)
- func (s PGStore) GetUserByEmail(ctx context.Context, email string) (*usertypes.User, error)
- func (s PGStore) GetUserByID(ctx context.Context, id string) (*usertypes.User, error)
- func (s PGStore) IsNotFound(err error) bool
- func (s PGStore) ListDishies(ctx context.Context, userID string) ([]*dishytypes.Dishy, error)
- func (s PGStore) MarkQueuedEmailError(ctx context.Context, id string) error
- func (s PGStore) MarkQueuedEmailSent(ctx context.Context, id string) error
- func (s PGStore) QueueEmail(ctx context.Context, fromAddress string, toAddress string, templateID int64, ...) (*mailertypes.Email, error)
- func (s PGStore) SetDishyLastReceivedStats(ctx context.Context, id string, when time.Time) error
- func (s PGStore) UpdateDishyGeo(ctx context.Context, id string, when time.Time, geo *dishytypes.GeoCheck) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrNotImplemented = errors.New("not implemeted") )
Functions ¶
This section is empty.
Types ¶
type PGStore ¶
type PGStore struct { }
func (PGStore) CreateOAuthState ¶
func (PGStore) CreateSession ¶
func (PGStore) CreateSessionNonce ¶
func (PGStore) CreateUser ¶
func (PGStore) CreateUserToken ¶
func (PGStore) GetAverageDownloadSpeed ¶
func (PGStore) GetAveragePingTime ¶
func (PGStore) GetConnectedDishyCount ¶
func (PGStore) GetDishyForUser ¶
func (PGStore) GetDishyTimezoneOffset ¶
func (PGStore) GetDishyVersions ¶
func (PGStore) GetHighestDownloadSpeed ¶
func (PGStore) GetLowestPingTime ¶
func (PGStore) GetNewDishyCount ¶
func (PGStore) GetOAuthState ¶
func (PGStore) GetQueuedEmails ¶
func (PGStore) GetSession ¶
func (PGStore) GetSessionNonce ¶
func (PGStore) GetTotalDishyCount ¶
func (PGStore) GetUserByDishy ¶
func (PGStore) GetUserByEmail ¶
func (PGStore) GetUserByID ¶
func (PGStore) IsNotFound ¶
func (PGStore) ListDishies ¶
func (PGStore) MarkQueuedEmailError ¶
func (PGStore) MarkQueuedEmailSent ¶
func (PGStore) QueueEmail ¶
func (PGStore) SetDishyLastReceivedStats ¶
Click to show internal directories.
Click to hide internal directories.