iconoflix

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

README

Iconoflix

Build Status Go Report Card GoDoc





A sample Iconoflix movies loader library. An Iconoflix movie is a representation of a movie as a collection of icons.


© 2018 Imhotep Software LLC. All materials licensed under Apache v2.0

Documentation

Overview

Package iconoflix A playground lib to load Iconoflix movies from mem or file. An Iconoflix movie is a representation of a movie as a collection of icons.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(c Httper, method, url string, payload io.Reader, res interface{}, cookie []*http.Cookie) error

Call a service URL by specifying method, payload and optional cookies

Types

type Httper added in v0.0.2

type Httper interface {
	Do(req *http.Request) (*http.Response, error)
}

Httper a client that handles HTTP calls

type Icon

type Icon struct {
	Emoji string `yaml:"emoji"`
}

Icon an emoji representation

type Movie

type Movie struct {
	Name  string `yaml:"name"`
	Icons []Icon `yaml':",inline"`
}

Movie an Iconoflix movie representation

func RandMovie

func RandMovie(v string) Movie

RandMovie picks a random movie...

type Movies

type Movies struct {
	Movies []Movie `yaml:"movies"`
}

Movies a collection of Iconoflix movies

func LoadFile

func LoadFile(path string) (Movies, error)

LoadFile the movie database from file

func LoadMem

func LoadMem(s string) (d Movies, err error)

LoadMem the movie database from memory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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