steambox

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

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

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

Box defines the steam box.

func NewBox

func NewBox(apikey string, ghUsername, ghToken string) *Box

NewBox creates a new Box with the given API key.

func (*Box) GetGist

func (b *Box) GetGist(ctx context.Context, id string) (*github.Gist, error)

GetGist gets the gist from github.com.

func (*Box) GetPlayTime

func (b *Box) GetPlayTime(ctx context.Context, steamID uint64) ([]string, error)

GetPlayTime gets the paytime form steam web API.

func (*Box) UpdateGist

func (b *Box) UpdateGist(ctx context.Context, id string, gist *github.Gist) error

UpdateGist updates the gist.

func (*Box) UpdateMarkdown

func (b *Box) UpdateMarkdown(ctx context.Context, title, filename string, content []byte) error

UpdateMarkdown updates the content to the markdown file.

Jump to

Keyboard shortcuts

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