handler

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationHandler

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

NotificationHandler holds implementation of handlers for notifications.

func NewNotificationHandler

func NewNotificationHandler(notificationSendingOp NotificationSendingOp) *NotificationHandler

NewNotificationHandler is a construction function for NotificationHandler.

func (*NotificationHandler) Notify

func (rh *NotificationHandler) Notify(method, path string) func(w http.ResponseWriter, r *http.Request)

Notify sends a notification message to be propagated to appropriate channels.

type NotificationSendingOp

type NotificationSendingOp interface {
	SendNotificationMessage(ctx context.Context, message string) error
}

NotificationSendingOp is a contract to a notification sending operation.

Jump to

Keyboard shortcuts

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