package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jul 13, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetIO(sess *yamux.Session) (*cbor.Encoder, *cbor.Decoder)
GetIO Open a yamux connection and returns encoder and decoder
func GetStreamIO(c *yamux.Stream) (*cbor.Encoder, *cbor.Decoder)
GetStreamIO Creates encoder and decoder for yamux stream
func Read(dec *cbor.Decoder, obj interface{})
Read decodes the value to obj
func ReadMap(src map[string]interface{}, dest interface{})
ReadMap decodes src to dest interface
func Write(enc *cbor.Encoder, obj interface{})
Write encodes the given obj
Source Files
¶
Click to show internal directories.
Click to hide internal directories.