inter

package
v0.29.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceFunctionality

type InterfaceFunctionality struct {
}

This functionality is a little different. It's not functionality per-se. It's a wrapper around CwtchProfile function that combines some core-functionalities like Hybrid Groups so that they can be transparently exposed in autobindings. DEV NOTE: consider moving other cross-cutting interface functions here to simplfy CwtchPeer

func FunctionalityGate

func FunctionalityGate() *InterfaceFunctionality

FunctionalityGate returns filesharing functionality - gates now happen on function calls.

func (InterfaceFunctionality) EnhancedImportBundle

func (i InterfaceFunctionality) EnhancedImportBundle(profile peer.CwtchPeer, uri string) string

EnhancedImportBundle is identical to EnhancedImportBundle in CwtchPeer but instead of wrapping CwtchPeer.ImportBundle it instead wraps InterfaceFunctionality.ImportBundle

func (InterfaceFunctionality) EnhancedSendMessage

func (i InterfaceFunctionality) EnhancedSendMessage(profile peer.CwtchPeer, conversation int, message string) string

EnhancedSendMessage Attempts to Send a Message and Immediately Attempts to Lookup the Message in the Database this wraps InterfaceFunctionality.SendMessage to support HybridGroups

func (InterfaceFunctionality) ImportBundle

func (i InterfaceFunctionality) ImportBundle(profile peer.CwtchPeer, uri string) error

func (InterfaceFunctionality) SendMessage

func (i InterfaceFunctionality) SendMessage(profile peer.CwtchPeer, conversation int, message string) (int, error)

SendMessage sends a message to a conversation. NOTE: Unlike CwtchPeer.SendMessage this interface makes no guarentees about the raw-ness of the message sent to peer contacts. If the conversation is a hybrid groups then the message may be wrapped in multiple layers of overlay messages / encryption prior to being send. To send a raw message to a peer then use peer.CwtchPeer DEV NOTE: Move Legacy Group message send here...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL