Documentation
¶
Index ¶
- type Banner
- func (b *Banner) Clone() internal.Configurable
- func (b *Banner) Disable() *Banner
- func (b *Banner) Enable() *Banner
- func (b *Banner) Get() interface{}
- func (b *Banner) IsEnabled() bool
- func (b *Banner) Set(data interface{})
- func (b *Banner) Validate() error
- func (b *Banner) WithAuthor(author string) *Banner
- func (b *Banner) WithDescription(description string) *Banner
- func (b *Banner) WithEmail(email string) *Banner
- func (b *Banner) WithTemplate(template string) *Banner
- func (b *Banner) WithTitle(title string) *Banner
- func (b *Banner) WithWebsite(website string) *Banner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Banner ¶
type Banner struct {
ModuleName string `mapstructure:"module-name" yaml:"module-name" json:"moduleName"` // 模块名称
Enabled bool `mapstructure:"enabled" yaml:"enabled" json:"enabled"` // 是否启用Banner
Template string `mapstructure:"template" yaml:"template" json:"template"` // 自定义模板
Title string `mapstructure:"title" yaml:"title" json:"title"` // 标题
Description string `mapstructure:"description" yaml:"description" json:"description"` // 描述
Author string `mapstructure:"author" yaml:"author" json:"author"` // 作者
Email string `mapstructure:"email" yaml:"email" json:"email"` // 邮箱
Website string `mapstructure:"website" yaml:"website" json:"website"` // 网站
}
Banner Banner配置
func (*Banner) WithDescription ¶
WithDescription 设置描述
func (*Banner) WithTemplate ¶
WithTemplate 设置自定义模板
Click to show internal directories.
Click to hide internal directories.