config

package
v0.0.0-...-a139f76 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() *t

func Init

func Init(basepath string) (e error)

func Write

func Write() error

Types

type ASS

type ASS struct {
	Enable    bool
	Languages []language.Tag
}

type CharactorMapping

type CharactorMapping struct {
	Language language.Tag
	Mappings []Mapping
}

type Database

type Database struct {
	Path string
}

type Exporting

type Exporting struct {
	Enable bool
	Format string
}

type Extraction

type Extraction struct {
	Enable                 bool
	RawStreamTitleKeywords []string `yaml:"raw_stream_title_keywords"`
	Formats                Formats
}

type Formating

type Formating struct {
	Enable             bool
	TextBasedSubtitle  TextBasedSubtitle  `yaml:"text_based_subtitle"`
	ImageBasedSubtitle ImageBasedSubtitle `yaml:"image_based_subtitle"`
}

type Formats

type Formats struct {
	ASS ASS
	PGS PGS
}

type ImageBasedSubtitle

type ImageBasedSubtitle struct {
	CharactorMappings []CharactorMapping `yaml:"charactor_mappings"`
}

type Logging

type Logging struct {
	Path string
}

type Mapping

type Mapping struct {
	From string
	To   string
}

type MediaDirectory

type MediaDirectory struct {
	Path       string
	Extraction Extraction
	Formating  Formating
	Exporting  Exporting
}

type PGS

type PGS struct {
	Enable    bool
	Languages []language.Tag
}

type Routine

type Routine struct {
	Delay time.Duration
}

type Server

type Server struct {
	Web      Web
	Database Database
	Routine  Routine
	Logging  Logging
}

type TextBasedSubtitle

type TextBasedSubtitle struct {
	CharactorMappings []CharactorMapping `yaml:"charactor_mappings"`
}

type Web

type Web struct {
	Port                 int
	COROrigins           []string `yaml:"cor_origins"`
	EnableGRPCReflection bool     `yaml:"enable_grpc_reflection"`
	ServeDirectory       string   `yaml:"serve_directory"`
}

Jump to

Keyboard shortcuts

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