Documentation
¶
Index ¶
- type ChannelMapping
- type Context
- type DiscordChannel
- type GoferConfig
- type GoferEditedMessage
- type GoferFile
- type GoferMessage
- type GoferMisc
- type GoferPhoto
- type ListenerEditMessageCb
- type ListenerFileCb
- type ListenerMessageCb
- type ListenerMiscCb
- type ListenerPhotoCb
- type Listeners
- type TelegramChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelMapping ¶
type DiscordChannel ¶
type DiscordChannel string
type GoferConfig ¶
type GoferConfig struct { Channels map[string]ChannelMapping `json:"channels"` DiscordApiToken string `json:"discord_api_token,omitempty"` TelegramApiToken string `json:"telegram_api_token,omitempty"` MatrixHomeServer string `json:"matrix_homeserver,omitempty"` MatrixUsername string `json:"matrix_username,omitempty"` MatrixPassword string `json:"matrix_password,omitempty"` }
type GoferEditedMessage ¶
type GoferMessage ¶
type GoferPhoto ¶
type ListenerEditMessageCb ¶
type ListenerEditMessageCb func(ctx Context, channel ChannelMapping, message GoferEditedMessage) error
type ListenerFileCb ¶
type ListenerFileCb func(ctx Context, channel ChannelMapping, file GoferFile) error
type ListenerMessageCb ¶
type ListenerMessageCb func(ctx Context, channel ChannelMapping, message GoferMessage) error
type ListenerMiscCb ¶
type ListenerMiscCb func(ctx Context, channel ChannelMapping, misc GoferMisc) error
type ListenerPhotoCb ¶
type ListenerPhotoCb func(ctx Context, channel ChannelMapping, photo GoferPhoto) error
type Listeners ¶
type Listeners struct { File ListenerFileCb Message ListenerMessageCb Misc ListenerMiscCb Photo ListenerPhotoCb EditMessage ListenerEditMessageCb }
type TelegramChannel ¶
type TelegramChannel int64
Click to show internal directories.
Click to hide internal directories.