Documentation ¶
Index ¶
- func WsConnect(cnxAddr *endp.Addr) (ws *websocket.Conn, err error)
- func WsListen(ws *websocket.Conn)
- type EchoListener
- type Transport
- func (tr Transport) Call(msgType string, msg *mesg.Msg) (rp *mesg.Payload, err error)
- func (tr Transport) DIDComCallEndp(endp, msgType string, msg didcomm.Msg) (rp didcomm.Payload, err error)
- func (tr Transport) DecDIDComMsg(msg didcomm.Msg) didcomm.Msg
- func (tr Transport) DecMsg(msg *mesg.Msg) *mesg.Msg
- func (tr Transport) EncDIDComMsg(msg didcomm.Msg) didcomm.Msg
- func (tr Transport) EncMsg(msg *mesg.Msg) *mesg.Msg
- func (tr Transport) EndpAddr() string
- func (tr Transport) Endpoint() string
- func (tr Transport) MessagePipe() sec.Pipe
- func (tr Transport) Notify(ws *websocket.Conn, pl *mesg.Payload) error
- func (tr Transport) PayloadPipe() sec.Pipe
- func (tr Transport) SendPayload(p *mesg.Payload, orgNonce uint64) (*mesg.Payload, error)
- func (tr Transport) SetMessageOut(d *ssi.DID)
- func (tr Transport) String() string
- func (tr Transport) WsListenLoop(sName string, echo EchoListener) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transport ¶
type Transport struct { PLPipe sec.Pipe // Payload communication pipe MsgPipe sec.Pipe // Message communication Endp string // Given endpoint }
Transport is communication mechanism between EA to CA, client to server. Server side is not supported yet, but coming. With Transport EA can communicate easily with its CA.
func (Transport) DIDComCallEndp ¶
func (Transport) MessagePipe ¶
func (Transport) PayloadPipe ¶
func (Transport) SendPayload ¶
func (Transport) SetMessageOut ¶
func (Transport) WsListenLoop ¶
func (tr Transport) WsListenLoop(sName string, echo EchoListener) (err error)
Click to show internal directories.
Click to hide internal directories.