Documentation
¶
Index ¶
- Constants
- func ActorAddress(networkID string, actor protocol.Actor) string
- func ChatID(networkID string, target protocol.Target, fallbackMessageID ...string) string
- func DisplayName(agent bridgeconfig.AgentConfig) string
- func ParseMentions(text string) []string
- func RenderCompactBootstrapMessage(networkID string, target protocol.Target, includeSessionHeader bool) string
- func RenderCompactInboundMessage(networkID string, message *protocol.Message, includeSessionHeader bool) string
- func RenderDataPart(data map[string]any) (string, bool)
- func RenderInboundText(message *protocol.Message) string
- func RenderMessageBody(message *protocol.Message) string
- func SenderName(actor protocol.Actor) string
- func ShouldRead(mode bridgeconfig.ReadConfig, target protocol.Target, mentions []string, ...) bool
- func ShouldReadDirect(mode bridgeconfig.ReadConfig) bool
- func ShouldReadForNetwork(mode bridgeconfig.ReadConfig, target protocol.Target, mentions []string, ...) bool
- func ShouldReply(mode bridgeconfig.ReplyConfig) bool
- func TargetPrefix(target protocol.Target, sender string) string
- type Backoff
Constants ¶
View Source
const ( DefaultReconnectBaseDelay = 500 * time.Millisecond DefaultReconnectMaxDelay = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func DisplayName ¶
func DisplayName(agent bridgeconfig.AgentConfig) string
func ParseMentions ¶
func RenderInboundText ¶
func RenderMessageBody ¶
func SenderName ¶
func ShouldRead ¶
func ShouldRead(mode bridgeconfig.ReadConfig, target protocol.Target, mentions []string, agent bridgeconfig.AgentConfig) bool
func ShouldReadDirect ¶
func ShouldReadDirect(mode bridgeconfig.ReadConfig) bool
func ShouldReadForNetwork ¶
func ShouldReadForNetwork( mode bridgeconfig.ReadConfig, target protocol.Target, mentions []string, networkID string, agent bridgeconfig.AgentConfig, ) bool
func ShouldReply ¶
func ShouldReply(mode bridgeconfig.ReplyConfig) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.