Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigLoading = errors.New("error while loading configuration")
)
Functions ¶
Types ¶
type BadgeDefinition ¶
type BadgeDefinition struct { BadgeDesc `mapstructure:",squash"` Target string `mapstructure:"target" help:"target URL to resolve badge data from"` Parameters map[string]string `mapstructure:"parameters" help:"Accepted parameters for the interface"` Example map[string]string `mapstructure:"example" help:"Prefilled parameters to display an example badge"` Description string `mapstructure:"description"` }
type Config ¶
type Config struct {
PredefinedBadges map[string]BadgeDefinition `mapstructure:"predefined_badges"`
}
type URL ¶
URL is a custom URL type that allows validation at configuration load time.
func (*URL) MarshalText ¶
MarshalYAML implements the yaml.Marshaler interface for URLs.
func (*URL) UnmarshalText ¶
UnmarshalYAML implements the yaml.Unmarshaler interface for URLs.
Click to show internal directories.
Click to hide internal directories.