notification

package
v0.0.0-...-e73c909 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HeaderContentType   = "Content-Type"
	MimeApplicationJson = "application/json"

	SendNotificationEndpoint = "/notifications"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	MQService mq.Service
}

func (*Handler) Routes

func (h *Handler) Routes(router *chi.Mux)

func (*Handler) Send

func (h *Handler) Send(w http.ResponseWriter, r *http.Request)

type Repository

type Repository interface {
	Create(notification domain.Notification) (string, error)
	UpdateStatus(id string, status domain.Status) error
}

func New

func New(db *storage.Database) Repository

Jump to

Keyboard shortcuts

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