Documentation ¶
Index ¶
- Constants
- Variables
- func DoUpgrade(helper *up.Helper)
- type BridgeConfig
- func (bc BridgeConfig) EnableMessageErrorNotices() bool
- func (bc BridgeConfig) EnableMessageStatusEvents() bool
- func (bc BridgeConfig) FormatDisplayname(contact types.ContactInfo) (string, int8)
- func (bc BridgeConfig) FormatUsername(username string) string
- func (bc BridgeConfig) GetCommandPrefix() string
- func (bc BridgeConfig) GetDoublePuppetConfig() bridgeconfig.DoublePuppetConfig
- func (bc BridgeConfig) GetEncryptionConfig() bridgeconfig.EncryptionConfig
- func (bc BridgeConfig) GetManagementRoomTexts() bridgeconfig.ManagementRoomTexts
- func (bc BridgeConfig) GetResendBridgeInfo() bool
- func (bc *BridgeConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (bc BridgeConfig) Validate() error
- type Config
Constants ¶
View Source
const ( NameQualityName = 2 NameQualityUin = 1 )
Variables ¶
View Source
var SpacedBlocks = [][]string{
{"homeserver", "software"},
{"appservice"},
{"appservice", "hostname"},
{"appservice", "database"},
{"appservice", "id"},
{"appservice", "as_token"},
{"bridge"},
{"bridge", "command_prefix"},
{"bridge", "management_room_text"},
{"bridge", "encryption"},
{"bridge", "permissions"},
{"logging"},
}
Functions ¶
Types ¶
type BridgeConfig ¶
type BridgeConfig struct { HomeserverProxy string `yaml:"hs_proxy"` UsernameTemplate string `yaml:"username_template"` DisplaynameTemplate string `yaml:"displayname_template"` ListenAddress string `yaml:"listen_address"` ListenSecret string `yaml:"listen_secret"` PersonalFilteringSpaces bool `yaml:"personal_filtering_spaces"` MessageStatusEvents bool `yaml:"message_status_events"` MessageErrorNotices bool `yaml:"message_error_notices"` PortalMessageBuffer int `yaml:"portal_message_buffer"` AllowRedaction bool `yaml:"allow_redaction"` UserAvatarSync bool `yaml:"user_avatar_sync"` SyncDirectChatList bool `yaml:"sync_direct_chat_list"` DefaultBridgePresence bool `yaml:"default_bridge_presence"` SendPresenceOnTyping bool `yaml:"send_presence_on_typing"` DoublePuppetConfig bridgeconfig.DoublePuppetConfig `yaml:",inline"` PrivateChatPortalMeta string `yaml:"private_chat_portal_meta"` ParallelMemberSync bool `yaml:"parallel_member_sync"` ResendBridgeInfo bool `yaml:"resend_bridge_info"` MuteBridging bool `yaml:"mute_bridging"` AllowUserInvite bool `yaml:"allow_user_invite"` FederateRooms bool `yaml:"federate_rooms"` MessageHandlingTimeout struct { ErrorAfterStr string `yaml:"error_after"` DeadlineStr string `yaml:"deadline"` ErrorAfter time.Duration `yaml:"-"` Deadline time.Duration `yaml:"-"` } `yaml:"message_handling_timeout"` DisableBridgeAlerts bool `yaml:"disable_bridge_alerts"` CommandPrefix string `yaml:"command_prefix"` ManagementRoomText bridgeconfig.ManagementRoomTexts `yaml:"management_room_text"` Encryption bridgeconfig.EncryptionConfig `yaml:"encryption"` Permissions bridgeconfig.PermissionConfig `yaml:"permissions"` // contains filtered or unexported fields }
func (BridgeConfig) EnableMessageErrorNotices ¶
func (bc BridgeConfig) EnableMessageErrorNotices() bool
func (BridgeConfig) EnableMessageStatusEvents ¶
func (bc BridgeConfig) EnableMessageStatusEvents() bool
func (BridgeConfig) FormatDisplayname ¶
func (bc BridgeConfig) FormatDisplayname(contact types.ContactInfo) (string, int8)
func (BridgeConfig) FormatUsername ¶
func (bc BridgeConfig) FormatUsername(username string) string
func (BridgeConfig) GetCommandPrefix ¶
func (bc BridgeConfig) GetCommandPrefix() string
func (BridgeConfig) GetDoublePuppetConfig ¶
func (bc BridgeConfig) GetDoublePuppetConfig() bridgeconfig.DoublePuppetConfig
func (BridgeConfig) GetEncryptionConfig ¶
func (bc BridgeConfig) GetEncryptionConfig() bridgeconfig.EncryptionConfig
func (BridgeConfig) GetManagementRoomTexts ¶
func (bc BridgeConfig) GetManagementRoomTexts() bridgeconfig.ManagementRoomTexts
func (BridgeConfig) GetResendBridgeInfo ¶
func (bc BridgeConfig) GetResendBridgeInfo() bool
func (*BridgeConfig) UnmarshalYAML ¶
func (bc *BridgeConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
func (BridgeConfig) Validate ¶
func (bc BridgeConfig) Validate() error
type Config ¶
type Config struct { *bridgeconfig.BaseConfig `yaml:",inline"` Bridge BridgeConfig `yaml:"bridge"` }
Click to show internal directories.
Click to hide internal directories.