db

package
v0.0.0-...-c652e2d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(postgresUrl string) (*DB, error)

func (*DB) Close

func (d *DB) Close()

func (*DB) GetUsers

func (d *DB) GetUsers(shard int, totalShards int) ([]Player, error)

type Player

type Player struct {
	ID         string `json:"id"`
	SummonerID string `json:"summoner_id"`
	Platform   string `json:"platform"`
}

Jump to

Keyboard shortcuts

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