Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordServiceConfig ¶
type DiscordServiceConfig struct {
URL string `toml:"url"`
}
func (DiscordServiceConfig) GetName ¶
func (DiscordServiceConfig) GetName() string
type LineBotServiceConfig ¶
func (LineBotServiceConfig) GetName ¶
func (LineBotServiceConfig) GetName() string
type ServiceConfig ¶
type ServiceConfig interface {
GetName() string
}
func NewConfig ¶
func NewConfig(provider string) (ServiceConfig, error)
type SlackConfig ¶
type SlackConfig struct {
URL string `toml:"url"`
}
func (SlackConfig) GetName ¶
func (SlackConfig) GetName() string
type TomlConfig ¶
type TomlConfig struct { Default string Discord *DiscordServiceConfig Slack *SlackConfig Linebot *LineBotServiceConfig }
Click to show internal directories.
Click to hide internal directories.