stapi

package
v0.0.0-...-32f009b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 2 Imported by: 0

README

Events

  • Messages

    • MESSAGE:PERSISTED

      • db_id (database id of message as string)
      • partner (hex encoded ed25519 public key)
      • content raw message content (will be "" if DApp message)
      • created_at unix timestamp
    • MESSAGE:DELIVERED

      • db_id (database id of message as string)
      • partner (hex encoded ed25519 public key)
      • content raw message content (will be "" if DApp message)
      • created_at unix timestamp
    • MESSAGE:RECEIVED

      • db_id (database id of message as string)
      • partner (hex encoded ed25519 public key)
      • content raw message content (will be "" if DApp message)
      • created_at unix timestamp
    • CHAT:UNREAD

      • chat id key of the partner
  • DApp

    • DAPP:PERSISTED
      • dapp_signing_key hex encoded signing key used to sign the DApp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func New

func New(us UpStream) *Api

func (*Api) Close

func (a *Api) Close() error

func (*Api) Send

func (a *Api) Send(name string, payload map[string]interface{})

send to api

type UpStream

type UpStream interface {
	Send(data string)
}

Jump to

Keyboard shortcuts

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