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) 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 ( NameQualityRemark = 3 NameQualityName = 2 NameQualityUin = 1 )
Variables ¶
View Source
var SpacedBlocks = [][]string{
{"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"` 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"` SyncWithCustomPuppets bool `yaml:"sync_with_custom_puppets"` SyncDirectChatList bool `yaml:"sync_direct_chat_list"` DefaultBridgePresence bool `yaml:"default_bridge_presence"` SendPresenceOnTyping bool `yaml:"send_presence_on_typing"` DoublePuppetServerMap map[string]string `yaml:"double_puppet_server_map"` DoublePuppetAllowDiscovery bool `yaml:"double_puppet_allow_discovery"` PrivateChatPortalMeta bool `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) 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"` QQ struct { Protocol int `yaml:"protocol"` SignConfig struct { Server string `yaml:"server"` Bearer string `yaml:"bearer"` Key string `yaml:"key"` IsBelow110 bool `yaml:"is_below_110"` RefreshInterval int `yaml:"refresh_interval"` } `yaml:"sign"` } `yaml:"qq"` Bridge BridgeConfig `yaml:"bridge"` }
Click to show internal directories.
Click to hide internal directories.