application_layer

package
v0.0.0-...-8e980cd Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationLayer

type ApplicationLayer struct {
	// contains filtered or unexported fields
}

func NewApplicationLayer

func NewApplicationLayer(dev device.Device, options device.ProtocolOptions) *ApplicationLayer

func (*ApplicationLayer) BroadcastRouteRequest

func (app *ApplicationLayer) BroadcastRouteRequest()

func (*ApplicationLayer) ContactCreated

func (app *ApplicationLayer) ContactCreated(contact device.ContactID, modelType sync.ModelType) error

func (*ApplicationLayer) DeleteContact

func (app *ApplicationLayer) DeleteContact(contact device.ContactID)

func (*ApplicationLayer) JoinGroup

func (app *ApplicationLayer) JoinGroup(groupSecret device.SharedSecret) (device.ContactID, error)

func (*ApplicationLayer) LoadPersistedState

func (app *ApplicationLayer) LoadPersistedState()

func (*ApplicationLayer) OnConnection

func (app *ApplicationLayer) OnConnection(address device.DeviceAddress)

func (*ApplicationLayer) OnDisconnection

func (app *ApplicationLayer) OnDisconnection(address device.DeviceAddress)

func (*ApplicationLayer) ReceivePacket

func (app *ApplicationLayer) ReceivePacket(address device.DeviceAddress, packet []byte)

func (*ApplicationLayer) SendMessage

func (app *ApplicationLayer) SendMessage(session device.SessionID, message []byte) (device.MessageID, error)

func (*ApplicationLayer) SyncAddMessage

func (app *ApplicationLayer) SyncAddMessage(contact device.ContactID, message []byte, attachedContact *device.ContactID) error

func (*ApplicationLayer) SyncLoadState

func (app *ApplicationLayer) SyncLoadState(contact device.ContactID, state []byte) error

type ConnectionState

type ConnectionState map[device.SessionID]sync.NodePublicKey

Jump to

Keyboard shortcuts

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