query

package
v0.0.0-...-28d8bff Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encounter

type Encounter struct {
	Uploader User

	ID            int32
	Difficulty    string
	UploadedBy    pgtype.UUID
	UploadedAt    pgtype.Timestamp
	Visibility    *structs2.EncounterVisibility
	Settings      structs2.EncounterSettings
	Tags          []string
	Header        structs2.EncounterHeader
	Boss          string
	Date          pgtype.Timestamp
	Duration      int32
	FocusedPlayer string
	LocalPlayer   string
	Place         int32
}

func Query

func Query(db *database.DB, params *Params) ([]Encounter, error)

type Params

type Params struct {
	User      pgtype.UUID
	Order     string
	Scope     string
	GearScore string
	PastID    *int32
	PastField *int64
	PastPlace *int32

	Selections Selections
	Privileged bool
	Admin      bool
}

type Raid

type Raid struct {
	Gates        []int    `json:"gates"`
	Difficulties []string `json:"difficulties"`
}

type Selections

type Selections struct {
	Raids     map[string]Raid `json:"raids"`
	Guardians []string        `json:"guardians"`
	Trials    []string        `json:"trials"`
	Classes   []string        `json:"classes"`

	Search string `json:"search"`
}

type User

type User struct {
	DiscordTag    string
	Username      pgtype.Text
	LogVisibility *structs2.EncounterVisibility
}

Jump to

Keyboard shortcuts

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