Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelCreator ¶
type ChannelCreator interface {
CreateChannel(ctx context.Context, guildID, name string) (string, error)
}
ChannelCreator can create Discord channels.
type ChannelEnsurer ¶
type ChannelEnsurer interface {
EnsureChannel(ctx context.Context, dirPath string) (string, error)
}
ChannelEnsurer resolves a directory path to a Discord channel ID, creating the channel if it does not yet exist.
func NewChannelService ¶
func NewChannelService(store db.Store, creator ChannelCreator, guildID string) ChannelEnsurer
NewChannelService creates a new ChannelEnsurer.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server exposes a lightweight HTTP API for task CRUD operations.
func NewServer ¶
NewServer creates a new API server. The channels parameter may be nil if channel creation is not configured.
Click to show internal directories.
Click to hide internal directories.