relations

package
Version: 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) FindAll

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

type Repository

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

func (Repository) FindAll

func (r Repository) FindAll(verseId int, translation string) ([]TextCollection, 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"`
	RelationStartVerse int    `json:"relationStartVerse"`
	RelationEndVerse   int    `json:"relationEndVerse"`
	Group              int    `json:"group,omitempty"`
	Rank               int    `json:"rank"`
}

type TextCollection

type TextCollection []Text

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL