handler

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(configs Configs, bulkLimit, errorCount uint64, view *view.View, es v1.Eventstore, systemDefaults sd.SystemDefaults, queries *query2.Queries) []query.Handler

Types

type Config

type Config struct {
	MinimumCycleDuration time.Duration
}

type Configs

type Configs map[string]*Config

type ExternalIDP

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

func (*ExternalIDP) AggregateTypes

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

func (*ExternalIDP) CurrentSequence

func (i *ExternalIDP) CurrentSequence(instanceID string) (uint64, error)

func (*ExternalIDP) EventQuery

func (i *ExternalIDP) EventQuery(instanceIDs ...string) (*es_models.SearchQuery, error)

func (*ExternalIDP) Eventstore

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

func (*ExternalIDP) LockDuration

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

func (*ExternalIDP) MinimumCycleDuration

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

func (*ExternalIDP) OnError

func (i *ExternalIDP) OnError(event *es_models.Event, err error) error

func (*ExternalIDP) OnSuccess

func (i *ExternalIDP) OnSuccess() error

func (*ExternalIDP) QueryLimit

func (h *ExternalIDP) QueryLimit() uint64

func (*ExternalIDP) Reduce

func (i *ExternalIDP) Reduce(event *es_models.Event) (err error)

func (*ExternalIDP) Subscription

func (i *ExternalIDP) Subscription() *v1.Subscription

func (*ExternalIDP) ViewModel

func (i *ExternalIDP) ViewModel() string

type IDPConfig

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

func (*IDPConfig) AggregateTypes

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

func (*IDPConfig) CurrentSequence

func (i *IDPConfig) CurrentSequence(instanceID string) (uint64, error)

func (*IDPConfig) EventQuery

func (i *IDPConfig) EventQuery(instanceIDs ...string) (*models.SearchQuery, error)

func (*IDPConfig) Eventstore

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

func (*IDPConfig) LockDuration

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

func (*IDPConfig) MinimumCycleDuration

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

func (*IDPConfig) OnError

func (i *IDPConfig) OnError(event *models.Event, err error) error

func (*IDPConfig) OnSuccess

func (i *IDPConfig) OnSuccess() error

func (*IDPConfig) QueryLimit

func (h *IDPConfig) QueryLimit() uint64

func (*IDPConfig) Reduce

func (i *IDPConfig) Reduce(event *models.Event) (err error)

func (*IDPConfig) Subscription

func (i *IDPConfig) Subscription() *v1.Subscription

func (*IDPConfig) ViewModel

func (i *IDPConfig) ViewModel() string

type IDPProvider

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

func (*IDPProvider) AggregateTypes

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

func (*IDPProvider) CurrentSequence

func (i *IDPProvider) CurrentSequence(instanceID string) (uint64, error)

func (*IDPProvider) EventQuery

func (i *IDPProvider) EventQuery(instanceIDs ...string) (*models.SearchQuery, error)

func (*IDPProvider) Eventstore

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

func (*IDPProvider) LockDuration

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

func (*IDPProvider) MinimumCycleDuration

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

func (*IDPProvider) OnError

func (i *IDPProvider) OnError(event *es_models.Event, err error) error

func (*IDPProvider) OnSuccess

func (i *IDPProvider) OnSuccess() error

func (*IDPProvider) QueryLimit

func (h *IDPProvider) QueryLimit() uint64

func (*IDPProvider) Reduce

func (i *IDPProvider) Reduce(event *models.Event) (err error)

func (*IDPProvider) Subscription

func (i *IDPProvider) Subscription() *v1.Subscription

func (*IDPProvider) ViewModel

func (i *IDPProvider) ViewModel() string

type OrgProjectMapping

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

func (*OrgProjectMapping) AggregateTypes

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

func (*OrgProjectMapping) CurrentSequence

func (p *OrgProjectMapping) CurrentSequence(instanceID string) (uint64, error)

func (*OrgProjectMapping) EventQuery

func (p *OrgProjectMapping) EventQuery(instanceIDs ...string) (*es_models.SearchQuery, error)

func (*OrgProjectMapping) Eventstore

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

func (*OrgProjectMapping) LockDuration

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

func (*OrgProjectMapping) MinimumCycleDuration

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

func (*OrgProjectMapping) OnError

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

func (*OrgProjectMapping) OnSuccess

func (p *OrgProjectMapping) OnSuccess() error

func (*OrgProjectMapping) QueryLimit

func (h *OrgProjectMapping) QueryLimit() uint64

func (*OrgProjectMapping) Reduce

func (p *OrgProjectMapping) Reduce(event *es_models.Event) (err error)

func (*OrgProjectMapping) Subscription

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

func (*OrgProjectMapping) ViewModel

func (p *OrgProjectMapping) ViewModel() string

type RefreshToken

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

func (*RefreshToken) AggregateTypes

func (t *RefreshToken) AggregateTypes() []es_models.AggregateType

func (*RefreshToken) CurrentSequence

func (t *RefreshToken) CurrentSequence(instanceID string) (uint64, error)

func (*RefreshToken) EventQuery

func (t *RefreshToken) EventQuery(instanceIDs ...string) (*es_models.SearchQuery, error)

func (*RefreshToken) Eventstore

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

func (*RefreshToken) LockDuration

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

func (*RefreshToken) MinimumCycleDuration

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

func (*RefreshToken) OnError

func (t *RefreshToken) OnError(event *es_models.Event, err error) error

func (*RefreshToken) OnSuccess

func (t *RefreshToken) OnSuccess() error

func (*RefreshToken) QueryLimit

func (h *RefreshToken) QueryLimit() uint64

func (*RefreshToken) Reduce

func (t *RefreshToken) Reduce(event *es_models.Event) (err error)

func (*RefreshToken) Subscription

func (t *RefreshToken) Subscription() *v1.Subscription

func (*RefreshToken) ViewModel

func (t *RefreshToken) ViewModel() string

type Token

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

func (*Token) AggregateTypes

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

func (*Token) CurrentSequence

func (p *Token) CurrentSequence(instanceID string) (uint64, error)

func (*Token) EventQuery

func (t *Token) EventQuery(instanceIDs ...string) (*es_models.SearchQuery, error)

func (*Token) Eventstore

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

func (*Token) LockDuration

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

func (*Token) MinimumCycleDuration

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

func (*Token) OnError

func (t *Token) OnError(event *es_models.Event, err error) error

func (*Token) OnSuccess

func (t *Token) OnSuccess() error

func (*Token) QueryLimit

func (h *Token) QueryLimit() uint64

func (*Token) Reduce

func (t *Token) Reduce(event *es_models.Event) (err error)

func (*Token) Subscription

func (t *Token) Subscription() *v1.Subscription

func (*Token) ViewModel

func (t *Token) ViewModel() string

type User

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

func (*User) AggregateTypes

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

func (*User) CurrentSequence

func (u *User) CurrentSequence(instanceID string) (uint64, error)

func (*User) EventQuery

func (u *User) EventQuery(instanceIDs ...string) (*es_models.SearchQuery, error)

func (*User) Eventstore

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

func (*User) LockDuration

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

func (*User) MinimumCycleDuration

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

func (*User) OnError

func (u *User) OnError(event *es_models.Event, err error) error

func (*User) OnSuccess

func (u *User) OnSuccess() error

func (*User) ProcessOrg

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

func (*User) ProcessUser

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

func (*User) QueryLimit

func (h *User) QueryLimit() uint64

func (*User) Reduce

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

func (*User) Subscription

func (u *User) Subscription() *v1.Subscription

func (*User) ViewModel

func (u *User) ViewModel() string

type UserSession

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

func (*UserSession) AggregateTypes

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

func (*UserSession) CurrentSequence

func (u *UserSession) CurrentSequence(instanceID string) (uint64, error)

func (*UserSession) EventQuery

func (u *UserSession) EventQuery(instanceIDs ...string) (*models.SearchQuery, error)

func (*UserSession) Eventstore

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

func (*UserSession) LockDuration

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

func (*UserSession) MinimumCycleDuration

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

func (*UserSession) OnError

func (u *UserSession) OnError(event *models.Event, err error) error

func (*UserSession) OnSuccess

func (u *UserSession) OnSuccess() error

func (*UserSession) QueryLimit

func (h *UserSession) QueryLimit() uint64

func (*UserSession) Reduce

func (u *UserSession) Reduce(event *models.Event) (err error)

func (*UserSession) Subscription

func (u *UserSession) Subscription() *v1.Subscription

func (*UserSession) ViewModel

func (u *UserSession) ViewModel() string

Jump to

Keyboard shortcuts

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