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

config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TemplateDir      string `mapstructure:"template_dir"`
	TemplateValueDir string `mapstructure:"template_value_dir"`
	OutputDir        string `mapstructure:"output_dir"`

	GlobalConfig GlobalConfig `mapstructure:"global_config"`

	TemplateWithoutUnixConfigs []TemplateWithoutUnixConfig `mapstructure:"template_without_unix_configs"`
	TemplateWithUnixConfigs    []TemplateWithUnixConfig    `mapstructure:"template_with_unix_configs"`
}

type GlobalConfig

type GlobalConfig struct {
	TemplateValuePath string `mapstructure:"template_value_path"`
	Days              int    `mapstructure:"days"`
	ResolutionSeconds int    `mapstructure:"resolution_seconds"`
	EndTimeUnix       int64  `mapstructure:"endtime_unix"`
}

type TemplateWithUnixConfig

type TemplateWithUnixConfig struct {
	Name string `mapstructure:"name"`

	TemplateValuePath string `mapstructure:"template_value_path"`
}

type TemplateWithoutUnixConfig

type TemplateWithoutUnixConfig struct {
	Name string `mapstructure:"name"`

	TemplateValuePath string `mapstructure:"template_value_path"`
	Days              int    `mapstructure:"days"`
	ResolutionSeconds int    `mapstructure:"resolution_seconds"`
	EndTimeUnix       int64  `mapstructure:"endtime_unix"`
}

func (TemplateWithoutUnixConfig) EndTime

func (c TemplateWithoutUnixConfig) EndTime() time.Time

func (TemplateWithoutUnixConfig) StartTime

func (c TemplateWithoutUnixConfig) StartTime() time.Time

Jump to

Keyboard shortcuts

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