Back to / messaging

Package messaging

Latest Go to latest

The latest major version is .

Published: Jul 4, 2019 | License: MIT | Module:


func Decode

func Decode(data []byte, objPtr interface{}) error

func Encode

func Encode(obj interface{}) ([]byte, error)

func ErrorHandler

func ErrorHandler(err error, c echo.Context)

func Init

func Init()

func Middleware

func Middleware(next echo.HandlerFunc) echo.HandlerFunc

func Type

func Type() string

type Protocol

type Protocol interface {
	Encode(interface{}) ([]byte, error)
	Decode([]byte, interface{}) error
	Type() string
var (
	DefaultProtocol Protocol

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier