package
0.0.0-20231010210529-9fdc65e443d0
Repository: https://github.com/seventv/7tv-bot.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DeleteChannel deletes a channel by ID, returns an error if the channel ID was not found.
No description provided by the author
GetChannel finds a single channel based on the BSON filter provided.
GetChannels gets all channels, and runs the given callback in batches, where channels with the highest weight get the highest priority.
InsertChannel inserts a channel, returns error if it already exists.
No description provided by the author
UpsertChannel inserts a channel, or updates it if it already exists.

# Constants

Operations the API performs on the database, to be sent as OP header through NATS.
Operations the API performs on the database, to be sent as OP header through NATS.
Operations the API performs on the database, to be sent as OP header through NATS.

# Variables

ErrChannelAlreadyExists is returned when trying to add a channel that already exists in the database.
ErrChannelNotFound is returned when the channel you're trying to perform an operation on doesn't exist.