adapter

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelFromDBEntity

func ChannelFromDBEntity(e db.NotificationChannel) *notification.Channel

func EagerLoadActiveChannels

func EagerLoadActiveChannels(at time.Time) func(query *entdb.NotificationChannelQuery)

func EagerLoadRulesWithActiveChannels

func EagerLoadRulesWithActiveChannels(at time.Time) func(query *entdb.NotificationRuleQuery)

func EventFromDBEntity

func EventFromDBEntity(e db.NotificationEvent) (*notification.Event, error)

func New

func New(config Config) (notification.Repository, error)

func RuleFromDBEntity

func RuleFromDBEntity(e db.NotificationRule) *notification.Rule

Types

type Config

type Config struct {
	Client *entdb.Client
	Logger *slog.Logger
}

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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