sqlc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveServer

type ActiveServer struct {
	Timestamp    int64
	Address      string
	Protocols    string
	Name         string
	Gametype     string
	Passworded   int64
	Map          string
	MapSha256sum *string
	MapSize      *int64
	Version      string
	MaxClients   int64
	MaxPlayers   int64
	ScoreKind    string
}

type ActiveServerClient

type ActiveServerClient struct {
	ID        int64
	MessageID int64
	Address   string
	Name      string
	Clan      string
	CountryID int64
	Score     int64
	IsPlayer  int64
	Team      *int64
}

type AddFlagMappingParams

type AddFlagMappingParams struct {
	GuildID   int64
	ChannelID int64
	FlagID    int64
	Emoji     string
}

type AddFlagParams

type AddFlagParams struct {
	FlagID int64
	Abbr   string
	Emoji  string
}

type AddGuildChannelParams

type AddGuildChannelParams struct {
	ChannelID int64
	GuildID   int64
	Running   int64
}

type AddGuildParams

type AddGuildParams struct {
	GuildID     int64
	Description string
}

type AddPrevActiveServerClientParams

type AddPrevActiveServerClientParams struct {
	MessageID int64
	GuildID   int64
	ChannelID int64
	Name      string
	Clan      string
	Team      *int64
	CountryID int64
	Score     int64
	IsPlayer  int64
	FlagAbbr  string
	FlagEmoji string
}

type AddPrevActiveServerParams

type AddPrevActiveServerParams struct {
	MessageID    int64
	GuildID      int64
	ChannelID    int64
	Timestamp    int64
	Address      string
	Protocols    string
	Name         string
	Gametype     string
	Passworded   int64
	Map          string
	MapSha256sum *string
	MapSize      *int64
	Version      string
	MaxClients   int64
	MaxPlayers   int64
	ScoreKind    string
}

type AddTrackingParams

type AddTrackingParams struct {
	GuildID   int64
	ChannelID int64
	Address   string
	MessageID int64
}

type Channel

type Channel struct {
	ChannelID int64
	GuildID   int64
	Running   int64
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Flag

type Flag struct {
	FlagID int64
	Abbr   string
	Emoji  string
}

type FlagMapping

type FlagMapping struct {
	GuildID   int64
	ChannelID int64
	FlagID    int64
	Emoji     string
}

type GetChannelParams

type GetChannelParams struct {
	GuildID   int64
	ChannelID int64
}

type GetFlagMappingParams

type GetFlagMappingParams struct {
	GuildID   int64
	ChannelID int64
	FlagID    int64
}

type GetFlagMappingRow

type GetFlagMappingRow struct {
	FlagID int64
	Emoji  string
	Abbr   string
}

type GetMessageTargetNotificationsParams

type GetMessageTargetNotificationsParams struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
}

type GetMessageTargetNotificationsRow

type GetMessageTargetNotificationsRow struct {
	UserID    int64
	Threshold int64
}

type GetPlayerCountNotificationParams

type GetPlayerCountNotificationParams struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
	UserID    int64
}

type GetPrevActiveServerClientsRow

type GetPrevActiveServerClientsRow struct {
	MessageID int64
	GuildID   int64
	ChannelID int64
	Name      string
	Clan      string
	Team      *int64
	CountryID int64
	Score     int64
	IsPlayer  int64
	FlagAbbr  string
	FlagEmoji string
}

type Guild

type Guild struct {
	GuildID     int64
	Description string
}

type InsertActiveServerClientsParams

type InsertActiveServerClientsParams struct {
	Address   string
	Name      string
	Clan      string
	CountryID int64
	Score     int64
	IsPlayer  int64
	Team      *int64
}

type InsertActiveServersParams

type InsertActiveServersParams struct {
	Timestamp    int64
	Address      string
	Protocols    string
	Name         string
	Gametype     string
	Passworded   int64
	Map          string
	MapSha256sum *string
	MapSize      *int64
	Version      string
	MaxClients   int64
	MaxPlayers   int64
	ScoreKind    string
}

type ListAllTrackingsRow

type ListAllTrackingsRow struct {
	GuildID   int64
	ChannelID int64
	Address   string
	MessageID int64
}

type ListChannelTrackingsParams

type ListChannelTrackingsParams struct {
	GuildID   int64
	ChannelID int64
}

type ListChannelTrackingsRow

type ListChannelTrackingsRow struct {
	GuildID   int64
	ChannelID int64
	Address   string
	MessageID int64
}

type ListFlagMappingsParams

type ListFlagMappingsParams struct {
	GuildID   int64
	ChannelID int64
}

type ListFlagMappingsRow

type ListFlagMappingsRow struct {
	FlagID int64
	Emoji  string
	Abbr   string
}

type ListGuildChannelsRow

type ListGuildChannelsRow struct {
	ChannelID int64
	Running   int64
}

type ListTrackedServerClientsRow

type ListTrackedServerClientsRow struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
	Name      string
	Clan      string
	CountryID int64
	Score     interface{}
	IsPlayer  int64
	Team      *int64
	Abbr      string
	FlagEmoji interface{}
}

type ListTrackedServersRow

type ListTrackedServersRow struct {
	GuildID      int64
	ChannelID    int64
	MessageID    int64
	Timestamp    int64
	Address      string
	Protocols    string
	Name         string
	Gametype     string
	Passworded   int64
	Map          string
	MapSha256sum *string
	MapSize      *int64
	Version      string
	MaxClients   int64
	MaxPlayers   int64
	ScoreKind    string
}

type PlayerCountNotification

type PlayerCountNotification struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
	UserID    int64
	Threshold int64
}

type PrevActiveServer

type PrevActiveServer struct {
	MessageID    int64
	GuildID      int64
	ChannelID    int64
	Timestamp    int64
	Address      string
	Protocols    string
	Name         string
	Gametype     string
	Passworded   int64
	Map          string
	MapSha256sum *string
	MapSize      *int64
	Version      string
	MaxClients   int64
	MaxPlayers   int64
	ScoreKind    string
}

type PrevActiveServerClient

type PrevActiveServerClient struct {
	ID        int64
	MessageID int64
	GuildID   int64
	ChannelID int64
	Name      string
	Clan      string
	Team      *int64
	CountryID int64
	Score     int64
	IsPlayer  int64
	FlagAbbr  string
	FlagEmoji string
}

type PrevMessageMention

type PrevMessageMention struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
	UserID    int64
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func Prepare

func Prepare(ctx context.Context, db DBTX) (*Queries, error)

func (*Queries) AddFlag

func (q *Queries) AddFlag(ctx context.Context, arg AddFlagParams) error

func (*Queries) AddFlagMapping

func (q *Queries) AddFlagMapping(ctx context.Context, arg AddFlagMappingParams) error

func (*Queries) AddGuild

func (q *Queries) AddGuild(ctx context.Context, arg AddGuildParams) error

func (*Queries) AddGuildChannel

func (q *Queries) AddGuildChannel(ctx context.Context, arg AddGuildChannelParams) error

func (*Queries) AddPrevActiveServer

func (q *Queries) AddPrevActiveServer(ctx context.Context, arg AddPrevActiveServerParams) error

func (*Queries) AddPrevActiveServerClient

func (q *Queries) AddPrevActiveServerClient(ctx context.Context, arg AddPrevActiveServerClientParams) error

func (*Queries) AddTracking

func (q *Queries) AddTracking(ctx context.Context, arg AddTrackingParams) error

func (*Queries) Close

func (q *Queries) Close() error

func (*Queries) DeleteActiveServerClients

func (q *Queries) DeleteActiveServerClients(ctx context.Context) error

func (*Queries) DeleteActiveServers

func (q *Queries) DeleteActiveServers(ctx context.Context) error

func (*Queries) ExistsServer

func (q *Queries) ExistsServer(ctx context.Context, address string) ([]string, error)

func (*Queries) GetChannel

func (q *Queries) GetChannel(ctx context.Context, arg GetChannelParams) ([]int64, error)

func (*Queries) GetFlag

func (q *Queries) GetFlag(ctx context.Context, flagID int64) ([]Flag, error)

func (*Queries) GetFlagByAbbr

func (q *Queries) GetFlagByAbbr(ctx context.Context, abbr string) ([]Flag, error)

func (*Queries) GetFlagMapping

func (q *Queries) GetFlagMapping(ctx context.Context, arg GetFlagMappingParams) ([]GetFlagMappingRow, error)

func (*Queries) GetGuild

func (q *Queries) GetGuild(ctx context.Context, guildID int64) ([]Guild, error)

func (*Queries) GetPlayerCountNotification

func (q *Queries) GetPlayerCountNotification(ctx context.Context, arg GetPlayerCountNotificationParams) ([]PlayerCountNotification, error)

func (*Queries) GetPrevActiveServerClients

func (q *Queries) GetPrevActiveServerClients(ctx context.Context, messageID int64) ([]GetPrevActiveServerClientsRow, error)

func (*Queries) InsertActiveServerClients

func (q *Queries) InsertActiveServerClients(ctx context.Context, arg InsertActiveServerClientsParams) error

func (*Queries) InsertActiveServers

func (q *Queries) InsertActiveServers(ctx context.Context, arg InsertActiveServersParams) error

func (*Queries) ListAllTrackings

func (q *Queries) ListAllTrackings(ctx context.Context) ([]ListAllTrackingsRow, error)

func (*Queries) ListChannelTrackings

func (q *Queries) ListChannelTrackings(ctx context.Context, arg ListChannelTrackingsParams) ([]ListChannelTrackingsRow, error)

func (*Queries) ListFlagMappings

func (q *Queries) ListFlagMappings(ctx context.Context, arg ListFlagMappingsParams) ([]ListFlagMappingsRow, error)

func (*Queries) ListFlags

func (q *Queries) ListFlags(ctx context.Context) ([]Flag, error)

func (*Queries) ListGuildChannels

func (q *Queries) ListGuildChannels(ctx context.Context, guildID int64) ([]ListGuildChannelsRow, error)

func (*Queries) ListGuilds

func (q *Queries) ListGuilds(ctx context.Context) ([]Guild, error)

func (*Queries) ListPlayerCountNotifications

func (q *Queries) ListPlayerCountNotifications(ctx context.Context) ([]PlayerCountNotification, error)

func (*Queries) ListPrevActiveServers

func (q *Queries) ListPrevActiveServers(ctx context.Context) ([]PrevActiveServer, error)

func (*Queries) ListPreviousMessageMentions

func (q *Queries) ListPreviousMessageMentions(ctx context.Context) ([]PrevMessageMention, error)

func (*Queries) ListTrackedServerClients

func (q *Queries) ListTrackedServerClients(ctx context.Context) ([]ListTrackedServerClientsRow, error)

func (*Queries) ListTrackedServers

func (q *Queries) ListTrackedServers(ctx context.Context) ([]ListTrackedServersRow, error)

func (*Queries) RemoveFlagMapping

func (q *Queries) RemoveFlagMapping(ctx context.Context, arg RemoveFlagMappingParams) error

func (*Queries) RemoveGuild

func (q *Queries) RemoveGuild(ctx context.Context, guildID int64) error

func (*Queries) RemoveGuildChannel

func (q *Queries) RemoveGuildChannel(ctx context.Context, arg RemoveGuildChannelParams) error

func (*Queries) RemoveMessageMentions

func (q *Queries) RemoveMessageMentions(ctx context.Context, arg RemoveMessageMentionsParams) error

func (*Queries) RemovePlayerCountNotification

func (q *Queries) RemovePlayerCountNotification(ctx context.Context, arg RemovePlayerCountNotificationParams) error

func (*Queries) RemovePlayerCountNotifications

func (q *Queries) RemovePlayerCountNotifications(ctx context.Context) error

func (*Queries) RemovePrevActiveServer

func (q *Queries) RemovePrevActiveServer(ctx context.Context, messageID int64) error

func (*Queries) RemovePrevActiveServerClient

func (q *Queries) RemovePrevActiveServerClient(ctx context.Context, messageID int64) error

func (*Queries) RemoveTrackingByMessageId

func (q *Queries) RemoveTrackingByMessageId(ctx context.Context, arg RemoveTrackingByMessageIdParams) error

func (*Queries) SetPlayerCountNotification

func (q *Queries) SetPlayerCountNotification(ctx context.Context, arg SetPlayerCountNotificationParams) error

func (*Queries) StartChannel

func (q *Queries) StartChannel(ctx context.Context, arg StartChannelParams) error

func (*Queries) StopChannel

func (q *Queries) StopChannel(ctx context.Context, arg StopChannelParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type RemoveFlagMappingParams

type RemoveFlagMappingParams struct {
	GuildID   int64
	ChannelID int64
	FlagID    int64
}

type RemoveGuildChannelParams

type RemoveGuildChannelParams struct {
	GuildID   int64
	ChannelID int64
}

type RemoveMessageMentionsParams

type RemoveMessageMentionsParams struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
}

type RemovePlayerCountNotificationParams

type RemovePlayerCountNotificationParams struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
	UserID    int64
	Threshold int64
}

type RemoveTrackingByMessageIdParams

type RemoveTrackingByMessageIdParams struct {
	GuildID   int64
	MessageID int64
}

type SetPlayerCountNotificationParams

type SetPlayerCountNotificationParams struct {
	GuildID   int64
	ChannelID int64
	MessageID int64
	UserID    int64
	Threshold int64
}

type StartChannelParams

type StartChannelParams struct {
	GuildID   int64
	ChannelID int64
}

type StopChannelParams

type StopChannelParams struct {
	GuildID   int64
	ChannelID int64
}

type Tracking

type Tracking struct {
	MessageID int64
	GuildID   int64
	ChannelID int64
	Address   string
}

Jump to

Keyboard shortcuts

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