Documentation ¶
Index ¶
- func Build(ctx context.Context, pages []api.ExportPage, fileName string) error
- func Dir(ctx context.Context, dir string, scanCount int) (issues []api.Issue)
- func File(ctx context.Context, fileName string) (api.Issue, error)
- func NewContext(ctx context.Context, appEnv AppEnv) context.Context
- func ReadCredits(ctx context.Context, fileName string, startingPage int, endingPage int) (api.Credits, error)
- func Sanitise(ctx context.Context, issues *[]api.Issue)
- type AppEnv
- type Suggestion
- type SuggestionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir scans the given directory for PDF files and extracts episode details from each file. It returns a slice of Episode structs containing the extracted details.
func File ¶
File scans the given file in the specified directory and extracts episode details. It returns a slice of Episode structs containing the extracted details and an error if any occurred during the process.
func NewContext ¶
NewContext returns a new Context, derived from ctx, which carries the provided config.
func ReadCredits ¶
Types ¶
type Suggestion ¶
type Suggestion struct { From string To string Type SuggestionType }
type SuggestionType ¶
type SuggestionType int64
const ( SeriesTitle SuggestionType = iota EpisodeTitle )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.