runtime

package
v0.0.0-...-df75a1c Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONEncoder

type JSONEncoder struct{}

func (JSONEncoder) Decode

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

func (JSONEncoder) Encode

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

type MessageBrokerConsumer

type MessageBrokerConsumer interface {
	Handle(ctx context.Context, handler MessageHandler) error
}

type MessageBrokerProducer

type MessageBrokerProducer interface {
	Write(ctx context.Context, msg []byte) error
}

type MessageEncoder

type MessageEncoder interface {
	Encode(x interface{}) ([]byte, error)
	Decode(data []byte, x interface{}) error
}

type MessageHandler

type MessageHandler func(ctx context.Context, msg []byte) error

type ProtobufEncoder

type ProtobufEncoder struct{}

func (ProtobufEncoder) Decode

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

func (ProtobufEncoder) Encode

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

Jump to

Keyboard shortcuts

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