socket

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIO added in v0.0.4

func GetIO(sess *yamux.Session) (*cbor.Encoder, *cbor.Decoder)

GetIO Open a yamux connection and returns encoder and decoder

func GetStreamIO added in v0.0.4

func GetStreamIO(c *yamux.Stream) (*cbor.Encoder, *cbor.Decoder)

GetStreamIO Creates encoder and decoder for yamux stream

func Read added in v0.0.4

func Read(dec *cbor.Decoder, obj interface{})

Read decodes the value to obj

func ReadMap added in v0.0.4

func ReadMap(src map[string]interface{}, dest interface{})

ReadMap decodes src to dest interface

func Write added in v0.0.4

func Write(enc *cbor.Encoder, obj interface{})

Write encodes the given obj

Types

This section is empty.

Jump to

Keyboard shortcuts

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