feeder

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package feeder is a collection of feeders

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Json

type Json struct {
	Path string
}

Json is a feeder that feeds using a single json file.

func (Json) Feed

func (j Json) Feed() (map[string]interface{}, error)

Feed returns all the content.

type JsonDirectory

type JsonDirectory struct {
	Path string
}

JsonDirectory is a feeder that feeds using a directory of json files.

func (JsonDirectory) Feed

func (jd JsonDirectory) Feed() (map[string]interface{}, error)

Feed returns all the content.

type Map

type Map map[string]interface{}

Map is a feeder that feeds using a simple runtime map[string]interface{}

func (Map) Feed

func (m Map) Feed() (map[string]interface{}, error)

Feed returns all the content.

type Yaml added in v1.1.0

type Yaml struct {
	Path string
}

Yaml is a feeder that feeds using a single json file.

func (Yaml) Feed added in v1.1.0

func (j Yaml) Feed() (map[string]interface{}, error)

Feed returns all the content.

Jump to

Keyboard shortcuts

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