publisher

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Driver  string `required:"true"`
	Kinesis kinesis.SessionConfig
	Pubsub  pubsub.SessionConfig
}

Config is the configuration for the subscriber.

type Publisher

type Publisher interface {
	Publish(ctx context.Context, streamName string, data []byte) error
}

Publisher represents the message publisher interface.

func Build

func Build(ctx context.Context, cfg Config) (Publisher, error, func() error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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