handler

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotifyUserID = "NOTIFICATION"
)

Variables

This section is empty.

Functions

func Register

func Register(configs Configs, bulkLimit, errorCount uint64, view *view.View, es v1.Eventstore, command *command.Commands, systemDefaults sd.SystemDefaults, i18n *i18n.Translator, dir http.FileSystem, apiDomain string) []query.Handler

Types

type Config

type Config struct {
	MinimumCycleDuration types.Duration
}

type Configs

type Configs map[string]*Config

type Notification

type Notification struct {
	AesCrypto crypto.EncryptionAlgorithm
	// contains filtered or unexported fields
}

func (*Notification) AggregateTypes added in v0.109.13

func (_ *Notification) AggregateTypes() []models.AggregateType

func (*Notification) CurrentSequence added in v0.109.13

func (n *Notification) CurrentSequence() (uint64, error)

func (*Notification) EventQuery

func (n *Notification) EventQuery() (*models.SearchQuery, error)

func (*Notification) Eventstore added in v0.109.13

func (h *Notification) Eventstore() v1.Eventstore

func (*Notification) LockDuration added in v0.109.18

func (h *Notification) LockDuration() time.Duration

func (*Notification) MinimumCycleDuration

func (h *Notification) MinimumCycleDuration() time.Duration

func (*Notification) OnError

func (n *Notification) OnError(event *models.Event, err error) error

func (*Notification) OnSuccess added in v0.107.0

func (n *Notification) OnSuccess() error

func (*Notification) QueryLimit added in v0.64.4

func (h *Notification) QueryLimit() uint64

func (*Notification) Reduce added in v0.33.5

func (n *Notification) Reduce(event *models.Event) (err error)

func (*Notification) Subscription added in v1.19.3

func (n *Notification) Subscription() *v1.Subscription

func (*Notification) ViewModel

func (n *Notification) ViewModel() string

type NotifyUser

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

func (*NotifyUser) AggregateTypes added in v0.109.13

func (_ *NotifyUser) AggregateTypes() []es_models.AggregateType

func (*NotifyUser) CurrentSequence added in v0.109.13

func (p *NotifyUser) CurrentSequence() (uint64, error)

func (*NotifyUser) EventQuery

func (p *NotifyUser) EventQuery() (*es_models.SearchQuery, error)

func (*NotifyUser) Eventstore added in v0.109.13

func (h *NotifyUser) Eventstore() v1.Eventstore

func (*NotifyUser) LockDuration added in v0.109.18

func (h *NotifyUser) LockDuration() time.Duration

func (*NotifyUser) MinimumCycleDuration

func (h *NotifyUser) MinimumCycleDuration() time.Duration

func (*NotifyUser) OnError

func (p *NotifyUser) OnError(event *es_models.Event, err error) error

func (*NotifyUser) OnSuccess added in v0.107.0

func (u *NotifyUser) OnSuccess() error

func (*NotifyUser) ProcessOrg added in v0.48.0

func (u *NotifyUser) ProcessOrg(event *es_models.Event) (err error)

func (*NotifyUser) ProcessUser added in v0.48.0

func (u *NotifyUser) ProcessUser(event *es_models.Event) (err error)

func (*NotifyUser) QueryLimit added in v0.64.4

func (h *NotifyUser) QueryLimit() uint64

func (*NotifyUser) Reduce added in v0.33.5

func (u *NotifyUser) Reduce(event *es_models.Event) (err error)

func (*NotifyUser) Subscription added in v1.19.3

func (p *NotifyUser) Subscription() *v1.Subscription

func (*NotifyUser) ViewModel

func (p *NotifyUser) ViewModel() string

Jump to

Keyboard shortcuts

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