Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DictionaryMeta added in v0.2.0

type DictionaryMeta struct {
	Hash     int
	Reloaded time.Time
	Error    string
}

DictionaryMeta represents dictionary meta

type Model

type Model struct {
	ID               string
	Dir              string
	URL              string
	Debug            bool
	Location         string `json:",omitempty" yaml:",omitempty"`
	Tags             []string
	OutputType       string `json:",omitempty" yaml:",omitempty"`
	UseDict          *bool  `json:",omitempty" yaml:",omitempty"`
	DictURL          string
	Transformer      string         `json:",omitempty" yaml:",omitempty"`
	DataStore        string         `json:",omitempty" yaml:",omitempty"`
	Modified         *Modified      `json:",omitempty" yaml:",omitempty"`
	Stream           *config.Stream `json:",omitempty" yaml:",omitempty"`
	shared.MetaInput `json:",omitempty" yaml:",inline"`
	DictMeta         DictionaryMeta
}

Model represents model config

func (*Model) Init

func (m *Model) Init()

Init initialises model config

func (Model) UseDictionary

func (m Model) UseDictionary() bool

UseDictionary returns true if dictionary can be used

func (*Model) Validate

func (m *Model) Validate() error

Validate validates model config

type ModelList

type ModelList struct {
	Models []*Model
}

ModelList represents model

func (*ModelList) Init

func (l *ModelList) Init()

Init initialises model list

func (*ModelList) Validate

func (l *ModelList) Validate() error

Validate validates model list

type Modified

type Modified struct {
	Min time.Time
	Max time.Time
}

Modified represents modified folder

func (*Modified) Span

func (r *Modified) Span() time.Duration

Jump to

Keyboard shortcuts

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