model

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAndListenConfig added in v0.3.0

func InitAndListenConfig()

func ListenConfigurationChange added in v0.3.0

func ListenConfigurationChange(fileName string)

func WatchConfig

func WatchConfig(filepath string, changes chan string, errorNotif chan error)

Types

type Chapter

type Chapter struct {
	ChapterFlat `json:"ChapterFlat"`
	Images      []ImageProvider `json:"Images"`
}

func (*Chapter) FlattenImage added in v0.1.1

func (ch *Chapter) FlattenImage(episode int) Image

func (*Chapter) ReconstructImage added in v0.1.1

func (ch *Chapter) ReconstructImage() []Image

type ChapterFlat

type ChapterFlat struct {
	Id string `json:"Id"`
}

type Comic

type Comic struct {
	ComicFlat `json:"ComicFlat"`
	Chapters  []Chapter `json:"Chapters"`
}

type ComicFlat

type ComicFlat struct {
	Id   int    `json:"Id"`
	Name string `json:"Name"`
	Host string `json:"Host"`
}

type ComicInfo

type ComicInfo struct {
	Title   ComicFlat   `json:"Title"`
	Chapter ChapterFlat `json:"Chapter"`
}

type Configuration

type Configuration struct {
	OutputDir  string            `json:"outputdir"`
	Plugins    map[string]string `json:"plugins"`
	Server     map[string]string `json:"server"`
	Monitoring map[string]string `json:"monitoring"`
}
var Config Configuration

func (*Configuration) ParseConfig

func (c *Configuration) ParseConfig(filepath string) error

type Image

type Image struct {
	Link    map[string]string
	Episode int
}

type ImageProvider added in v0.1.1

type ImageProvider struct {
	Episode  int    `json:"Episode"`
	Provider string `json:"Provider"`
	Link     string `json:"Link"`
}

type Process added in v0.1.1

type Process struct {
	Start  func()
	Finish func()
}

Jump to

Keyboard shortcuts

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