Back to godoc.org
github.com/kaz/flos / messaging

Package messaging

v0.0.0-...-5d92bec
Latest Go to latest

The latest major version is .

Published: Jul 4, 2019 | License: MIT | Module: github.com/kaz/flos

Index

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