frinkiac

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

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 8 Imported by: 1

README

GoDoc

Frinkiac API Go

A wrapper for the Frinkiac and Morbotron APIs for Go.

Documentation

Overview

Package frinkiac provides go bindings for the Frinkiac and Morbotron apis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFrinkiacFrame

func GetFrinkiacFrame(query string) (string, error)

GetFrinkiacFrame Sends a URL of a frame from Frinkiac

func GetFrinkiacGif

func GetFrinkiacGif(query string) (string, error)

GetFrinkiacGif Returns a URL for a GIF with a caption

func GetFrinkiacGifMeme

func GetFrinkiacGifMeme(query string) (string, error)

GetFrinkiacGifMeme Returns a URL for a GIF with a caption

func GetFrinkiacMeme

func GetFrinkiacMeme(query string) (string, error)

GetFrinkiacMeme Returns a URL of a frame with a caption

func GetMasterOfAllScienceFrame

func GetMasterOfAllScienceFrame(query string) (string, error)

GetMasterOfAllScienceFrame Sends a URL of a frame from Master of All Science

func GetMasterOfAllScienceGif

func GetMasterOfAllScienceGif(query string) (string, error)

GetMasterOfAllScienceGif Returns a URL for a GIF with a caption

func GetMasterOfAllScienceGifMeme

func GetMasterOfAllScienceGifMeme(query string) (string, error)

GetMasterOfAllScienceGifMeme Returns a URL for a GIF with a caption

func GetMasterOfAllScienceMeme

func GetMasterOfAllScienceMeme(query string) (string, error)

GetMasterOfAllScienceMeme Returns a URL of a frame with a caption

func GetMorbotronFrame

func GetMorbotronFrame(query string) (string, error)

GetMorbotronFrame Sends a URL of a frame from Morbotron

func GetMorbotronGif

func GetMorbotronGif(query string) (string, error)

GetMorbotronGif Returns a URL for a GIF with a caption

func GetMorbotronGifMeme

func GetMorbotronGifMeme(query string) (string, error)

GetMorbotronGifMeme Returns a URL for a GIF with a caption

func GetMorbotronMeme

func GetMorbotronMeme(query string) (string, error)

GetMorbotronMeme Returns a URL of a frame with a caption

Types

type Episode

type Episode struct {
	Frame     Frames `json:"Frame"`
	Subtitles []struct {
		ID             int    `json:"Id"`
		RepTimestamp   int    `json:"RepresentativeTimestamp"`
		Episode        string `json:"Episode"`
		StartTimestamp int    `json:"StartTimestamp"`
		EndTimestamp   int    `json:"EndTimestamp"`
		Content        string `json:"Content"`
	} `json:"Subtitles"`
	Nearby []Frames `json:"Nearby"`
}

Episode Holds information about an Episode

type Frames

type Frames struct {
	ID        int    `json:"Id"`
	Episode   string `json:"Episode"`
	Timestamp int    `json:"Timestamp"`
}

Frames Holds data about a Frinkiac (or Morbotron) search

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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