warning_manager

package
v1.26.15 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type Manager

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

func New

func New(
	lc fx.Lifecycle,
	repo *warning_repo.Repository,
	bus *pubsub.Bus,
	notifier *notify.Notifier,
) *Manager

func (*Manager) Delete

func (m *Manager) Delete(ctx context.Context, accountID account.AccountID, warningID warning.ID, deletedBy account.AccountID) error

func (*Manager) Issue

func (m *Manager) Issue(ctx context.Context, givenBy account.AccountID, receiveBy account.AccountID, reason string) (*warning.Warning, error)

func (*Manager) ListForAccount

func (m *Manager) ListForAccount(ctx context.Context, accountID account.AccountID) (warning.Warnings, error)

func (*Manager) UpdateReason

func (m *Manager) UpdateReason(ctx context.Context, updatedBy account.AccountID, accountID account.AccountID, warningID warning.ID, reason string) (*warning.Warning, error)

Jump to

Keyboard shortcuts

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