Documentation ¶
Index ¶
- type ApplicationLayer
- func (app *ApplicationLayer) BroadcastRouteRequest()
- func (app *ApplicationLayer) ContactCreated(contact device.ContactID, modelType sync.ModelType) error
- func (app *ApplicationLayer) DeleteContact(contact device.ContactID)
- func (app *ApplicationLayer) JoinGroup(groupSecret device.SharedSecret) (device.ContactID, error)
- func (app *ApplicationLayer) LoadPersistedState()
- func (app *ApplicationLayer) OnConnection(address device.DeviceAddress)
- func (app *ApplicationLayer) OnDisconnection(address device.DeviceAddress)
- func (app *ApplicationLayer) ReceivePacket(address device.DeviceAddress, packet []byte)
- func (app *ApplicationLayer) SendMessage(session device.SessionID, message []byte) (device.MessageID, error)
- func (app *ApplicationLayer) SyncAddMessage(contact device.ContactID, message []byte, attachedContact *device.ContactID) error
- func (app *ApplicationLayer) SyncLoadState(contact device.ContactID, state []byte) error
- type ConnectionState
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 (*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 (*ApplicationLayer) SyncAddMessage ¶
func (*ApplicationLayer) SyncLoadState ¶
func (app *ApplicationLayer) SyncLoadState(contact device.ContactID, state []byte) error
type ConnectionState ¶
type ConnectionState map[device.SessionID]sync.NodePublicKey
Click to show internal directories.
Click to hide internal directories.