extensions

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileValueExtension

type ProfileValueExtension struct {
}

ProfileValueExtension implements custom Profile Names over Cwtch

func (ProfileValueExtension) EventsToRegister

func (pne ProfileValueExtension) EventsToRegister() []event.Type

func (ProfileValueExtension) ExperimentsToRegister

func (pne ProfileValueExtension) ExperimentsToRegister() []string

func (ProfileValueExtension) NotifySettingsUpdate added in v0.19.2

func (pne ProfileValueExtension) NotifySettingsUpdate(_ settings.GlobalSettings)

func (ProfileValueExtension) OnContactReceiveValue

func (pne ProfileValueExtension) OnContactReceiveValue(profile peer.CwtchPeer, conversation model.Conversation, szp attr.ScopedZonedPath, value string, exists bool)

OnContactReceiveValue for ProfileValueExtension handles saving specific Public Profile Values like Profile Name

func (ProfileValueExtension) OnContactRequestValue

func (pne ProfileValueExtension) OnContactRequestValue(profile peer.CwtchPeer, conversation model.Conversation, eventID string, szp attr.ScopedZonedPath)

OnContactRequestValue for ProfileValueExtension handles returning Public Profile Values

func (ProfileValueExtension) OnEvent

func (pne ProfileValueExtension) OnEvent(ev event.Event, profile peer.CwtchPeer)

Jump to

Keyboard shortcuts

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