service

package
v1.0.0-beta.174 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FeatureConnector productcatalog.FeatureConnector

	Repository notification.Repository
	Webhook    webhook.Handler

	Logger *slog.Logger
}

type Service

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

func New

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

func (Service) Close

func (s Service) Close() 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) ([]productcatalog.Feature, error)

func (Service) ListRules

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