script

package
v0.0.0-...-f467543 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrVersion an error for illegal entry of version
	ErrVersion error
	// ErrBook an error for illegal entry of book
	ErrBook error
	// ErrChap an error for illegal range of entry of chapter
	ErrChap error
)

Functions

func BookList

func BookList() (events.APIGatewayProxyResponse, error)

BookList returns all the books in the Bible

func GetByChapter

GetByChapter returns script specified in dto

func PassageReference

func PassageReference(version, bookName, bookID, chapID, verseID string) string

PassageReference summarizes location of each verse ex) (창 1:1), (Gen 1:1)

Types

type BooksResp

type BooksResp struct {
	OT []bookInfo `json:"ot"`
	NT []bookInfo `json:"nt"`
}

BooksResp is a response for fetching books

type ReqDTO

type ReqDTO struct {
	DamID      string `json:"dam_id"`
	BookID     string `json:"book_id"`
	ChapID     string `json:"chapter_id"`
	VerseStart string `json:"verse_start"`
	VerseEnd   string `json:"verse_end"`
}

ReqDTO is a request dto for fetching scripts

type RespDTO

type RespDTO struct {
	Passages []passage `json:"passages"`
}

RespDTO returns text of requested script

Jump to

Keyboard shortcuts

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