Documentation ¶
Index ¶
- type User
- type UserRepository
- func (r *UserRepository) Create(ctx context.Context, user *User) error
- func (r *UserRepository) FindByID(ctx context.Context, id string) (*User, error)
- func (r *UserRepository) FindOrCreate(ctx context.Context, id string) (*User, error)
- func (r *UserRepository) SetBookReadingSpeed(ctx context.Context, userID string, speed float32) error
- func (r *UserRepository) SetDailyGoal(ctx context.Context, userID string, goal int) error
- func (r *UserRepository) SetMangaReadingSpeed(ctx context.Context, userID string, speed float32) error
- func (r *UserRepository) SetUserTimezone(ctx context.Context, userID, timezone string) error
- func (r *UserRepository) SetVisualNovelReadingSpeed(ctx context.Context, userID string, speed float32) error
- type UserTimeService
- func (s *UserTimeService) GetTime(ctx context.Context, userID, guildID string) (time.Time, error)
- func (s *UserTimeService) GetTimeLocation(ctx context.Context, userID, guildID string) (*time.Location, error)
- func (s *UserTimeService) GetTimezone(ctx context.Context, userID, guildID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(pool *pgxpool.Pool) *UserRepository
func (*UserRepository) Create ¶
func (r *UserRepository) Create(ctx context.Context, user *User) error
func (*UserRepository) FindOrCreate ¶
func (*UserRepository) SetBookReadingSpeed ¶
func (*UserRepository) SetDailyGoal ¶
func (*UserRepository) SetMangaReadingSpeed ¶
func (*UserRepository) SetUserTimezone ¶
func (r *UserRepository) SetUserTimezone(ctx context.Context, userID, timezone string) error
func (*UserRepository) SetVisualNovelReadingSpeed ¶
type UserTimeService ¶
type UserTimeService struct { Default string // contains filtered or unexported fields }
func NewUserTimeService ¶
func NewUserTimeService(u *UserRepository, g *guilds.GuildRepository) *UserTimeService
func (*UserTimeService) GetTimeLocation ¶
func (*UserTimeService) GetTimezone ¶
Click to show internal directories.
Click to hide internal directories.