adapters

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAdapter

type IAdapter interface {
	IProducer
	IConsumer
}

func NewAdapterByFuncs

func NewAdapterByFuncs(pProduce iProducerF, pConsume iConsumerF) IAdapter

type IConsumer

type IConsumer interface {
	Consume(context.Context) (layer1.IMessage, error)
}

type IProducer

type IProducer interface {
	Produce(context.Context, layer1.IMessage) error
}

Jump to

Keyboard shortcuts

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