text

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes()

Types

type Book

type Book struct {
	ID        int64  `json:"id"`
	Name      string `json:"name"`
	Testament string `json:"testament"`
}

type Handler

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

func (Handler) FindAllFromChapter

func (h Handler) FindAllFromChapter(w http.ResponseWriter, r *http.Request)

func (Handler) FindOne

func (h Handler) FindOne(w http.ResponseWriter, r *http.Request)

type Repository

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

func (Repository) FindAll

func (r Repository) FindAll(bookId int, chapterId int, translation string) (TextCollection, error)

func (Repository) FindOne

func (r Repository) FindOne(id int, translation string) (Text, error)

type Text

type Text struct {
	ID        int64  `json:"id"`
	Book      Book   `json:"book"`
	ChapterID int64  `json:"chapterId"`
	VerseID   int64  `json:"verseId"`
	Verse     string `json:"verse"`
}

type TextCollection

type TextCollection []Text

Jump to

Keyboard shortcuts

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