notificationsending

package
v0.0.0-...-0f1d0c9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation provides an API for fetching single or multiple notifications.

func NewOperation

func NewOperation(publisher Producer) *Operation

NewOperation is a contruction function for Operation.

func (*Operation) SendNotificationMessage

func (o *Operation) SendNotificationMessage(ctx context.Context, message string) error

SendNotificationMessage sends the given message as kafka event.

type Producer

type Producer interface {
	Produce(ctx context.Context, channel string, message any) error
}

Producer is a contract to a message producer.

Jump to

Keyboard shortcuts

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