Expand description
Service trait for ma endpoint protocol handlers.
A Service is analogous to an entry in /etc/services: a named protocol
on a ma endpoint. Register services on an MaEndpoint to handle incoming
connections on their protocol.
Constants§
- BROADCAST_
TOPIC - The well-known broadcast topic / protocol string.
- CONTENT_
TYPE_ CBOR - CONTENT_
TYPE_ TERM - CBOR term — either a bare atom (
:ok,:pong) or a tuple (CBOR array whose first element is a dispatchable atom, e.g.[:ok, data]or[:error, reason]). Used ascontentTypefor RPC and CRUD messages. - CRUD_
PROTOCOL_ ID - INBOX_
PROTOCOL_ ID - IPFS_
PROTOCOL_ ID - MESSAGE_
TYPE_ BROADCAST - MESSAGE_
TYPE_ CHAT - MESSAGE_
TYPE_ CRUD_ DELETE - MESSAGE_
TYPE_ CRUD_ DELETE_ REPLY - MESSAGE_
TYPE_ CRUD_ EDIT - MESSAGE_
TYPE_ CRUD_ EDIT_ REPLY - MESSAGE_
TYPE_ CRUD_ GET - MESSAGE_
TYPE_ CRUD_ GET_ REPLY - MESSAGE_
TYPE_ CRUD_ SET - MESSAGE_
TYPE_ CRUD_ SET_ REPLY - MESSAGE_
TYPE_ DOC - MESSAGE_
TYPE_ EMOTE - MESSAGE_
TYPE_ IPFS_ REQUEST - MESSAGE_
TYPE_ IPFS_ STORE - MESSAGE_
TYPE_ MESSAGE - MESSAGE_
TYPE_ RPC - MESSAGE_
TYPE_ RPC_ REPLY - RPC_
PROTOCOL_ ID
Traits§
- Service
- Trait that all ma services must implement.