marshal

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 4 Imported by: 0

README

Marshal logo Marshal


Marshal is a marshaller for watermill that just passes the message. To be used when interacting with Core

Usage:

    //Create marshaller
    marshaller := marshal.NewMarshalerUnmarshaler()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaler

type Marshaler struct{}

func NewMarshalerUnmarshaler

func NewMarshalerUnmarshaler() *Marshaler

func (*Marshaler) Marshal

func (m *Marshaler) Marshal(topic string, msg *message.Message) ([]byte, error)

Marshal implements nats.MarshalerUnmarshaler

func (*Marshaler) Unmarshal

func (m *Marshaler) Unmarshal(stanMsg *stan.Msg) (*message.Message, error)

Unmarshal implements nats.MarshalerUnmarshaler

Jump to

Keyboard shortcuts

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