Documentation ¶
Index ¶
- type Config
- type DBTX
- type Queries
- type Queue
- func (q *Queue) AddUser(userID string) error
- func (q *Queue) GetFirstUser() string
- func (q *Queue) GetUsersInLine() []string
- func (q *Queue) IsEmpty() bool
- func (q *Queue) RemoveUser(userID string) (bool, error)
- func (q *Queue) SkipTurn(userId string) (bool, error)
- func (q *Queue) ToSaveParams() SaveQueueParams
- type SaveQueueParams
- type UpsertQueueParams
- type UserAlreadyInQueueError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { InitialAckTimeout int64 `json:"initial_ack_timeout"` SubsequentAckTimeouts []int64 `json:"subsequent_ack_timeouts"` }
func (Config) SubsequentAckTimeoutsStr ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) SaveQueue ¶
func (q *Queries) SaveQueue(ctx context.Context, arg SaveQueueParams) error
func (*Queries) UpsertQueue ¶
func (q *Queries) UpsertQueue(ctx context.Context, arg UpsertQueueParams) error
type Queue ¶
type Queue struct { QueueID string ChannelID string ChannelName string TeamDomain string TeamID string UserList string RequireAckBefore int64 AckedBy string Config Config }
func (*Queue) GetFirstUser ¶
func (*Queue) GetUsersInLine ¶
func (*Queue) ToSaveParams ¶
func (q *Queue) ToSaveParams() SaveQueueParams
type SaveQueueParams ¶
type UpsertQueueParams ¶
type UserAlreadyInQueueError ¶
type UserAlreadyInQueueError string
func (UserAlreadyInQueueError) Error ¶
func (u UserAlreadyInQueueError) Error() string
Click to show internal directories.
Click to hide internal directories.