odb

package module
v0.0.0-...-2e0c416 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2015 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

A library to fetch Our Daily Bread online and parse it

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language int

Language of odb website

const (
	English Language = iota
	SimplifiedChinese
	TraditionalChinese
)

type Odb

type Odb struct {
	// contains filtered or unexported fields
}

Odb represents an odb website accessor

func NewOdb

func NewOdb(l Language) *Odb

Create an accessor to a odb website in a specific language

func NewOdbWithHttpClient

func NewOdbWithHttpClient(l Language, c *http.Client) *Odb

func (*Odb) GetPost

func (odb *Odb) GetPost(year, month, day int) (*Post, error)

Get a post in specific date

func (*Odb) SetBibleVerse

func (odb *Odb) SetBibleVerse(p *Post, bibleVerse string)

type Post

type Post struct {
	Year, Month, Day int
	Url              string
	Title            string
	BibleVerse       string
	BibleVerseRef    bible.RefRangeList
	GoldenVerse      string
	Passages         []string
	Poem             []string
	Thought          string
}

The metadata of a odb page

Directories

Path Synopsis
Commandline tool to fetch and print odb post
Commandline tool to fetch and print odb post

Jump to

Keyboard shortcuts

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