Documentation ¶
Index ¶
- type DBTX
- type IsPunishedPlayerParams
- type LogIntoLookupTableParams
- type LookupUser
- type NullPunishtype
- type PunishPlayerParams
- type PunishedUser
- type Punishtype
- type Queries
- func (q *Queries) CreateLookupUserTable(ctx context.Context) error
- func (q *Queries) CreatePunishType(ctx context.Context) error
- func (q *Queries) CreatePunishUsersTable(ctx context.Context) error
- func (q *Queries) GetPlayerUUID(ctx context.Context, lower string) (uuid.UUID, error)
- func (q *Queries) IsPunishedPlayer(ctx context.Context, arg IsPunishedPlayerParams) (PunishedUser, error)
- func (q *Queries) LogIntoLookupTable(ctx context.Context, arg LogIntoLookupTableParams) error
- func (q *Queries) PunishPlayer(ctx context.Context, arg PunishPlayerParams) error
- func (q *Queries) UnpunishPlayer(ctx context.Context, arg UnpunishPlayerParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UnpunishPlayerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsPunishedPlayerParams ¶
type IsPunishedPlayerParams struct { UserUuid uuid.UUID PunishType Punishtype }
type LookupUser ¶
type NullPunishtype ¶
type NullPunishtype struct { Punishtype Punishtype Valid bool // Valid is true if Punishtype is not NULL }
func (*NullPunishtype) Scan ¶
func (ns *NullPunishtype) Scan(value interface{}) error
Scan implements the Scanner interface.
type PunishPlayerParams ¶
type PunishedUser ¶
type Punishtype ¶
type Punishtype string
const ( PunishtypeBAN Punishtype = "BAN" PunishtypeMUTE Punishtype = "MUTE" )
func (*Punishtype) Scan ¶
func (e *Punishtype) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
var DB *Queries
func (*Queries) CreateLookupUserTable ¶
func (*Queries) CreatePunishUsersTable ¶
func (*Queries) GetPlayerUUID ¶
func (*Queries) IsPunishedPlayer ¶
func (q *Queries) IsPunishedPlayer(ctx context.Context, arg IsPunishedPlayerParams) (PunishedUser, error)
func (*Queries) LogIntoLookupTable ¶
func (q *Queries) LogIntoLookupTable(ctx context.Context, arg LogIntoLookupTableParams) error
func (*Queries) PunishPlayer ¶
func (q *Queries) PunishPlayer(ctx context.Context, arg PunishPlayerParams) error
func (*Queries) UnpunishPlayer ¶
func (q *Queries) UnpunishPlayer(ctx context.Context, arg UnpunishPlayerParams) error
type UnpunishPlayerParams ¶
type UnpunishPlayerParams struct { UserUuid uuid.UUID PunishType Punishtype }
Click to show internal directories.
Click to hide internal directories.