Documentation
¶
Index ¶
- Constants
- Variables
- func AcronymizeDevo(msg string) (string, error)
- func CheckBibleReference(ref string) bool
- func CloseAction(env def.SessionData) def.SessionData
- func DumpUserList(env def.SessionData) def.SessionData
- func ExpandDevo(msg string) (string, error)
- func FormatQuery(query string, t TMSQueryType) string
- func GetBibleLexicon(word string, ver string) *html.Node
- func GetBiblePassage(env def.SessionData) def.SessionData
- func GetBibleWord(env def.SessionData) def.SessionData
- func GetDailyNewTestamentReadingReferences(env def.SessionData) string
- func GetDesiringGodArticles() []def.Option
- func GetDesiringGodHtml() *html.Node
- func GetDevo(env def.SessionData) def.SessionData
- func GetDevotionalData(env def.SessionData, devo string) def.ResponseData
- func GetDevotionalDispatchMethod(devo string) string
- func GetDevotionalText(devo string) string
- func GetDiscipleshipJournalReferences(env def.SessionData) []def.Option
- func GetMCheyneHtml() *html.Node
- func GetMCheyneReferences() []def.Option
- func GetNavigators5xReferences(env def.SessionData) string
- func GetNavigators5xRestDayPrompt(env def.SessionData) (string, []def.Option)
- func GetPassage(ref string, doc *html.Node, version string) string
- func GetPassageHtml(ref, ver string) *html.Node
- func GetRandomTMSVerse(env def.SessionData) string
- func GetReference(doc *html.Node) string
- func GetTMSVerse(env def.SessionData) def.SessionData
- func Migrate(env def.SessionData) def.SessionData
- func ParseNodesForPassage(node *html.Node) string
- func ProcessCommand(env def.SessionData) def.SessionData
- func QueryTMSPack(db TMSDatabase, p PackSelector) (TMSPack, TMSVerse, error)
- func QueryTMSSeries(db TMSDatabase, s SeriesSelector) (TMSPack, TMSVerse, error)
- func QueryTMSVerse(db TMSDatabase, v VerseSelector) (TMSPack, TMSVerse, error)
- func SanitizeVersion(msg string) (string, error)
- func SetVersion(env def.SessionData) def.SessionData
- func UpdateSubscription(env def.SessionData) def.SessionData
- type BibleReadingPlanChapter
- type BibleReadingPlanDevo
- type DailyBRP
- type DailyChapterBRP
- type PackSelector
- type SeriesSelector
- type TMSDatabase
- type TMSPack
- type TMSQueryType
- type TMSSeries
- type TMSVerse
- type VerseSelector
Constants ¶
View Source
const ( MCBRP string = "MCBRP" DJBRP string = "DJBRP" DNTBRP string = "DNTBRP" N5XBRP string = "N5XBRP" DGORG string = "DGORG" DTMSV string = "DTMSV" )
View Source
const ( Keyboard string = "Keyboard" Passage string = "Passage" MemoryVerse string = "MemoryVerse" )
View Source
const ADM_CMD_DUMP = "admin_dump"
View Source
const ADM_MIGRATE = "admin_migrate"
View Source
const CMD_CLOSE = "close"
View Source
const CMD_DEVO = "devo"
View Source
const CMD_LEXICON = "lexicon"
View Source
const CMD_SUBSCRIBE = "subscribe"
View Source
const CMD_TMS = "tms"
View Source
const CMD_VERSION = "version"
Variables ¶
View Source
var CLOSEMSGS = []string{
"Okay %s",
"Got it, %s!",
"As you wish, %s",
"Because you said so, %s",
"I hear and obey, %s",
}
View Source
var DEVOS = map[string]string{ "M'Cheyne Bible Reading Plan": MCBRP, "Discipleship Journal Bible Reading Plan": DJBRP, "Daily New Testament Reading Plan": DNTBRP, "Navigators 5x5x5 New Testament Reading Plan": N5XBRP, "Desiring God Articles": DGORG, "Daily Topical Memory System Verse": DTMSV, }
View Source
var DEVO_NAMES = map[string]string{ MCBRP: "M'Cheyne Bible Reading Plan", DJBRP: "Discipleship Journal Bible Reading Plan", DNTBRP: "Daily New Testament Reading Plan", N5XBRP: "Navigators 5x5x5 New Testament Reading Plan", DGORG: "Desiring God Articles", DTMSV: "Daily Topical Memory System Verse", }
View Source
var VERSIONS = map[string]string{
"NIV": "NIV",
"ESV": "ESV",
"KJV": "KJV",
"NASB": "NASB",
"NLT": "NLT",
"AMP": "AMP",
}
Functions ¶
func AcronymizeDevo ¶
func CheckBibleReference ¶
func CloseAction ¶
func CloseAction(env def.SessionData) def.SessionData
func DumpUserList ¶
func DumpUserList(env def.SessionData) def.SessionData
func ExpandDevo ¶
func FormatQuery ¶
func FormatQuery(query string, t TMSQueryType) string
func GetBiblePassage ¶
func GetBiblePassage(env def.SessionData) def.SessionData
func GetBibleWord ¶
func GetBibleWord(env def.SessionData) def.SessionData
TODO: How to retrieve a Javascript triggered change in site?
func GetDailyNewTestamentReadingReferences ¶
func GetDailyNewTestamentReadingReferences(env def.SessionData) string
func GetDesiringGodArticles ¶
func GetDesiringGodHtml ¶
func GetDevo ¶
func GetDevo(env def.SessionData) def.SessionData
func GetDevotionalData ¶
func GetDevotionalData(env def.SessionData, devo string) def.ResponseData
func GetDevotionalText ¶
func GetDiscipleshipJournalReferences ¶
func GetDiscipleshipJournalReferences(env def.SessionData) []def.Option
func GetMCheyneHtml ¶
func GetMCheyneReferences ¶
func GetNavigators5xReferences ¶
func GetNavigators5xReferences(env def.SessionData) string
func GetNavigators5xRestDayPrompt ¶
func GetNavigators5xRestDayPrompt(env def.SessionData) (string, []def.Option)
func GetPassageHtml ¶
func GetRandomTMSVerse ¶
func GetRandomTMSVerse(env def.SessionData) string
func GetReference ¶
func GetTMSVerse ¶
func GetTMSVerse(env def.SessionData) def.SessionData
func Migrate ¶
func Migrate(env def.SessionData) def.SessionData
func ParseNodesForPassage ¶
func ProcessCommand ¶
func ProcessCommand(env def.SessionData) def.SessionData
func QueryTMSPack ¶
func QueryTMSPack(db TMSDatabase, p PackSelector) (TMSPack, TMSVerse, error)
func QueryTMSSeries ¶
func QueryTMSSeries(db TMSDatabase, s SeriesSelector) (TMSPack, TMSVerse, error)
func QueryTMSVerse ¶
func QueryTMSVerse(db TMSDatabase, v VerseSelector) (TMSPack, TMSVerse, error)
func SanitizeVersion ¶
func SetVersion ¶
func SetVersion(env def.SessionData) def.SessionData
func UpdateSubscription ¶
func UpdateSubscription(env def.SessionData) def.SessionData
Types ¶
type BibleReadingPlanChapter ¶
type BibleReadingPlanChapter struct {
Verses string `yaml:"Verses,flow"`
}
type BibleReadingPlanDevo ¶
type BibleReadingPlanDevo struct {
Verses []string `yaml:"Verses,flow"`
}
type DailyBRP ¶
type DailyBRP struct {
BibleReadingPlan []BibleReadingPlanDevo `yaml:"BibleReadingPlan"`
}
type DailyChapterBRP ¶
type DailyChapterBRP struct {
BibleReadingPlan []BibleReadingPlanChapter `yaml:"BibleReadingPlan"`
}
func GetDailyNewTestamentDatabase ¶
func GetDailyNewTestamentDatabase(dataPath string) DailyChapterBRP
func GetNavigators5xDatabase ¶
func GetNavigators5xDatabase(dataPath string) DailyChapterBRP
type PackSelector ¶
type SeriesSelector ¶
type TMSDatabase ¶
type TMSDatabase struct {
Series []TMSSeries `yaml:"Series"`
}
func GetTMSData ¶
func GetTMSData(dataPath string) TMSDatabase
type TMSQueryType ¶
type TMSQueryType string
const ( ID TMSQueryType = "ID" Tag TMSQueryType = "Tag" Reference TMSQueryType = "Reference" Null TMSQueryType = "0" )
func IdentifyQuery ¶
func IdentifyQuery(db TMSDatabase, query string) TMSQueryType
type VerseSelector ¶
Click to show internal directories.
Click to hide internal directories.