lib

package
v0.0.0-...-5c51805 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxClient

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

func NewBoxClient

func NewBoxClient(token string) BoxClient

func (BoxClient) FetchUserData

func (client BoxClient) FetchUserData(username string) (User, error)

func (BoxClient) UpdateGist

func (client BoxClient) UpdateGist(id, filename, content string) error

type User

type User struct {
	Handle            string `json:"handle"`
	Bio               string `json:"bio"`
	SolvedCount       int    `json:"solvedCount"`
	VoteCount         int    `json:"voteCount"`
	Tier              int    `json:"tier"`
	Rating            int    `json:"rating"`
	Class             int    `json:"class"`
	ClassDecoration   string `json:"classDecoration"`
	RivalCount        int    `json:"rivalCount"`
	ReverseRivalCount int    `json:"reverseRivalCount"`
	Rank              int    `json:"rank"`
}

func (User) Render

func (user User) Render() (string, error)

Jump to

Keyboard shortcuts

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