slackbot

package
v0.0.0-...-ffea89a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionJoin  = "joinQueue"
	ActionLeave = "leaveQueue"
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, clientID, clientSecret string, tknStore TokenStore, queueStore QueueStore) (*bot, error)

Types

type QueueStore

type QueueStore interface {
	Enqueue(ctx context.Context, ID string, item queue.Item) ([]queue.Item, error)
	Dequeue(ctx context.Context, ID string, item queue.Item) ([]queue.Item, error)
}

type TokenStore

type TokenStore interface {
	GetToken(ctx context.Context) (string, error)
	SetToken(ctx context.Context, token string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL