overrustle

package
v0.0.0-...-7fde326 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package overrustle allows integration with the overrustlelogs.net API

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotOK is returned when a request does not return the http status code 200
	ErrNotOK = errors.New("requested url did not return status code 200")
)

Functions

This section is empty.

Types

type File

type File struct {
	Month    string
	Day      string
	URL      string
	Filename string
}

File represents a file saved on overrustlelogs.net

func (*File) Download

func (f *File) Download() ([]byte, error)

Download downloads the file and return its contents as bytes

type Streamer

type Streamer string

Streamer represents a streamer

func GetAllStreamers

func GetAllStreamers() ([]Streamer, error)

GetAllStreamers returns all streamers covered by overrustlelogs.net

func (Streamer) GetAllFileURLs

func (s Streamer) GetAllFileURLs() ([]*File, error)

GetAllFileURLs return all files which are associated with the streamer

Jump to

Keyboard shortcuts

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