Documentation ¶
Index ¶
- type Guild
- type GuildRepository
- func (r *GuildRepository) Create(ctx context.Context, guild *Guild) error
- func (r *GuildRepository) FindByID(ctx context.Context, id string) (*Guild, error)
- func (r *GuildRepository) FindOrCreate(ctx context.Context, id string) (*Guild, error)
- func (r *GuildRepository) RemoveMembers(ctx context.Context, guildID string, userID []string) error
- func (r *GuildRepository) SetGuildTimezone(ctx context.Context, guildID, timezone string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuildRepository ¶
type GuildRepository struct {
// contains filtered or unexported fields
}
func NewGuildRepository ¶
func NewGuildRepository(pool *pgxpool.Pool) *GuildRepository
func (*GuildRepository) Create ¶
func (r *GuildRepository) Create(ctx context.Context, guild *Guild) error
func (*GuildRepository) FindOrCreate ¶
func (*GuildRepository) RemoveMembers ¶
func (*GuildRepository) SetGuildTimezone ¶
func (r *GuildRepository) SetGuildTimezone(ctx context.Context, guildID, timezone string) error
Click to show internal directories.
Click to hide internal directories.