Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidContent = errors.New("configuration format is not valid") ErrInvalidConfigurationFormat = errors.New("configuration format does not match the schema") )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func NewConfiguration ¶
func NewConfiguration(ctx context.Context, config ConfigurationConfig) (*Configuration, error)
func (*Configuration) Data ¶
func (c *Configuration) Data() *types.Schema
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
type ConfigurationConfig ¶
type ConfigurationConfig struct { // ConfigPath is the path to the configuration file. ConfigPath string `validate:"required"` }
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶
func NewTemplate(ctx context.Context, config TemplateConfig) (*Template, error)
type TemplateConfig ¶
type TemplateConfig struct { // AppVersion is the current version of the application. AppVersion string `validate:"required,semver"` // TemplatePath is the path to the HTML template. TemplatePath string `validate:"required"` // Customizer is the manual customization that will be added to // the template. Customizer types.Customizer }
Click to show internal directories.
Click to hide internal directories.