streak

package module
v0.0.0-...-dc129f1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 6 Imported by: 0

README

golang-github-streak

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindStreakInPastYear

func FindStreakInPastYear(client Client, username string) (Streak, Streak, error)

FindStreakInPastYear returns the Current streak as the first return and the Longest streak in the second return as well as a potential error.

Types

type Client

type Client struct {
	Client  *http.Client
	BaseURL string
}

Client with http Client for dependency injection

type Streak

type Streak struct {
	From  time.Time `json:"from"`
	To    time.Time `json:"to"`
	Count int       `json:"count"`
}

Streak with count and the dates of the streak

Jump to

Keyboard shortcuts

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