service

package
v1.0.0-beta.227 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelIDMetadataKey = "om-channel-id"
)

Variables

This section is empty.

Functions

func ValidateRuleChannels

func ValidateRuleChannels[I notification.CreateRuleInput | notification.UpdateRuleInput](ctx context.Context, s Service) func(input I) error

Types

type Config

type Config struct {
	FeatureConnector feature.FeatureConnector

	Adapter      notification.Repository
	Webhook      webhook.Handler
	EventHandler notification.EventHandler

	Logger *slog.Logger
}

type Service

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

func New

func New(config Config) (*Service, error)

func (Service) CreateChannel

func (Service) CreateEvent

func (Service) CreateRule

func (s Service) CreateRule(ctx context.Context, params notification.CreateRuleInput) (*notification.Rule, error)

func (Service) DeleteChannel

func (s Service) DeleteChannel(ctx context.Context, params notification.DeleteChannelInput) error

func (Service) DeleteRule

func (s Service) DeleteRule(ctx context.Context, params notification.DeleteRuleInput) error

func (Service) GetChannel

func (Service) GetEvent

func (Service) GetRule

func (Service) ListEvents

func (Service) ListFeature

func (s Service) ListFeature(ctx context.Context, namespace string, features ...string) ([]feature.Feature, error)

func (Service) ListRules

func (Service) ResendEvent

func (s Service) ResendEvent(ctx context.Context, params notification.ResendEventInput) error

func (Service) UpdateChannel

func (Service) UpdateRule

func (s Service) UpdateRule(ctx context.Context, params notification.UpdateRuleInput) (*notification.Rule, error)

Jump to

Keyboard shortcuts

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