database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: AGPL-3.0, AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() error

func Synchronize

func Synchronize()

Types

type Patch

type Patch struct {
	ID            uint64 `db:"id" json:"id"`
	Application   string `db:"app" json:"app"`
	Name          string `db:"name" json:"name"`
	Platform      string `db:"platform" json:"platform"`
	Issuer        uint64 `db:"issuer" json:"issuer"`
	URL           string `db:"url" json:"url"`
	Hash          uint32 `db:"url_hash" json:"hash"`
	Signature     string `db:"sig_url" json:"sig"`
	SignatureHash uint32 `db:"sig_url_hash" json:"sig_hash"`
}

func SelectIDGreaterThan

func SelectIDGreaterThan(id uint64, app, platform string) ([]*Patch, error)

func (*Patch) New

func (p *Patch) New() error

type Profile

type Profile struct {
	ID                uint64   `db:"id" json:"id"`
	UUID              string   `db:"uuid" json:"uuid,omitempty"`
	Username          string   `json:"name,omitempty"`
	Groups            []string `json:"groups,omitempty"`
	Experience        uint64   `db:"experience" json:"experience"`
	Level             uint64   `db:"level" json:"level"`
	TotalScore        uint64   `db:"total_score" json:"total_score"`
	PlayCount         uint64   `db:"play_count" json:"play_count"`
	Mastery           uint8    `db:"mastery" json:"mastery"`
	PerformanceRating uint64   `db:"performance_rating" json:"performance_rating"`
}

HACK: I'd like to get rid of this somehow, and get back to the pureness of a microservice application structure

func SelectProfileByUUID

func SelectProfileByUUID(uuid string) (error, *Profile)

Jump to

Keyboard shortcuts

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