utils

package
v0.0.0-...-095bff8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoTheHandle

func DoTheHandle(reader io.ReaderAt, size int64, handler Handler, sqlitePath string) error

Types

type Entry

type Entry interface {
	Path() string
	GetReader() io.ReadCloser
}

type EntryInstance

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

func GetEntries

func GetEntries(reader io.ReaderAt, size int64) ([]EntryInstance, error)

GetEntries returns a slice of io.Reader, each of which is a json file.

func (EntryInstance) GetReader

func (e EntryInstance) GetReader() io.ReadCloser

func (EntryInstance) Path

func (e EntryInstance) Path() string

type Handler

type Handler interface {
	HandleJSONs(entrys []Entry, filename string) error
	IsPoem(path string) bool
}

Jump to

Keyboard shortcuts

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