Documentation ¶
Overview ¶
Package confimport implements importing and exporting of full channel configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Info *models.CommandInfo `json:"info"` CustomCommand *models.CustomCommand `json:"custom_command"` CommandList *models.CommandList `json:"command_list"` Repeat *models.RepeatedCommand `json:"repeat"` Schedule *models.ScheduledCommand `json:"schedule"` }
Command is a single command, including all variants and repeats/schedules.
type Config ¶
type Config struct { Channel *models.Channel `json:"channel"` Quotes []*models.Quote `json:"quotes"` Commands []*Command `json:"commands"` Autoreplies []*models.Autoreply `json:"autoreplies"` Variables []*models.Variable `json:"variables"` }
Config is a channel's full configuration, serialized.
func ExportByName ¶
ExportByName exports a channel's full configuration, keyed on channel name.
Click to show internal directories.
Click to hide internal directories.