tetrach

package
v0.0.0-...-e2d7ea5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadStatusError

type BadStatusError struct {
	StatusCode int
	Status     string
}

func (BadStatusError) Error

func (e BadStatusError) Error() string

type NoSuchUserError

type NoSuchUserError struct {
	UID string
	// contains filtered or unexported fields
}

func (NoSuchUserError) Error

func (e NoSuchUserError) Error() string

func (NoSuchUserError) Unwrap

func (e NoSuchUserError) Unwrap() error

type Record

type Record struct {
	ReplayID     string
	PlayerName   string
	OpponentName string
	Score        int64
	Duration     time.Duration
	Timestamp    time.Time
}

func Get40L

func Get40L(ctx context.Context, uid string) ([]Record, error)

func GetBlitz

func GetBlitz(ctx context.Context, uid string) ([]Record, error)

func GetLeague

func GetLeague(ctx context.Context, uid string) ([]Record, error)

func GetRecent

func GetRecent(ctx context.Context, uid string) ([]Record, error)

func (*Record) UnmarshalJSON

func (r *Record) UnmarshalJSON(data []byte) error

type TetraChannelError

type TetraChannelError struct {
	Message string
}

func (TetraChannelError) Error

func (e TetraChannelError) Error() string

type User

type User struct {
	ID       string `json:"_id"`
	Username string `json:"username"`
}

func GetUser

func GetUser(ctx context.Context, uid string) (User, error)

Jump to

Keyboard shortcuts

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