Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRepo = CommentaryRepo{
GitUrl: "gitlab.com/laleo-language/sblgnt-commentary",
}
Functions ¶
func CreateTempGitRepo ¶
func ReadCommentary ¶
func ReadCommentary(r io.Reader, c *VerseCommentary) error
func WriteCommentary ¶
func WriteCommentary(w io.Writer, c VerseCommentary) error
Types ¶
type CommentaryRepo ¶
type CommentaryRepo struct { GitUrl string LocalRepo string // contains filtered or unexported fields }
func (*CommentaryRepo) GetCommentary ¶
func (cfg *CommentaryRepo) GetCommentary(cref Ref) (io.ReadCloser, error)
GetCommentary will return a ReadCloser with the contents of the commentary file. If cref.Language is empty, it defaults to English. If there is no commentary available for the given reference, it will return object.ErrFileNotFound.
func (*CommentaryRepo) Open ¶
func (cfg *CommentaryRepo) Open() error
func (*CommentaryRepo) WriteCommentary ¶
func (cfg *CommentaryRepo) WriteCommentary(cref Ref, cmnt VerseCommentary, sig Signature) error
Note that cmnt.Meta.Version will be ignored
type VerseCommentary ¶
type VerseCommentary struct { Meta VerseMetadata Commentary []byte }
type VerseMetadata ¶
type VerseMetadata struct {
Version int
}
Click to show internal directories.
Click to hide internal directories.