Documentation ¶
Index ¶
- type FitbitManagerTransactionKey
- type Logger
- func (l *Logger) Error(ctx context.Context, msg string, args ...any)
- func (l *Logger) Info(ctx context.Context, msg string, args ...any)
- func (l *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (l *Logger) Trace(ctx context.Context, begin time.Time, ...)
- func (l *Logger) Warn(ctx context.Context, msg string, args ...any)
- type OAuth2Token
- type PostgresClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FitbitManagerTransactionKey ¶
type FitbitManagerTransactionKey struct{}
type OAuth2Token ¶
type PostgresClient ¶
type PostgresClient struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
func (*PostgresClient) GetOAuth2Token ¶
func (p *PostgresClient) GetOAuth2Token(ctx context.Context, userID string) (domain.OAuth2Token, error)
func (*PostgresClient) SaveOAuth2Token ¶
func (p *PostgresClient) SaveOAuth2Token(ctx context.Context, userID string, token domain.OAuth2Token) error
Click to show internal directories.
Click to hide internal directories.