messaging

package
v0.0.0-...-5d92bec Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type Protocol

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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