notificationadapter

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB, logger notification.Logger) error

Migrate executes the table migrations for the notification module.

Types

type GormStore

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

GormStore is a notification store using Gorm for data persistence.

func NewGormStore

func NewGormStore(db *gorm.DB) *GormStore

NewGormStore returns a new GormStore.

func (*GormStore) GetActiveNotifications

func (s *GormStore) GetActiveNotifications(ctx context.Context) ([]notification.Notification, error)

GetActiveNotifications returns the list of active notifications.

Jump to

Keyboard shortcuts

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