view

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	Db *gorm.DB
}

func StartView

func StartView(sqlClient *sql.DB) (*View, error)

func (*View) AllCurrentSequences

func (v *View) AllCurrentSequences(db string) ([]*repository.CurrentSequence, error)

func (*View) AllFailedEvents

func (v *View) AllFailedEvents(db string) ([]*repository.FailedEvent, error)

func (*View) ClearView

func (v *View) ClearView(db, viewName string) error

func (*View) GetCurrentSequence

func (v *View) GetCurrentSequence(db, viewName string) ([]*repository.CurrentSequence, error)

func (*View) GetLatestStylingFailedEvent

func (v *View) GetLatestStylingFailedEvent(sequence uint64, instanceID string) (*global_view.FailedEvent, error)

func (*View) GetLatestStylingSequence

func (v *View) GetLatestStylingSequence(instanceID string) (*global_view.CurrentSequence, error)

func (*View) GetLatestStylingSequences

func (v *View) GetLatestStylingSequences(instanceIDs ...string) ([]*global_view.CurrentSequence, error)

func (*View) Health

func (v *View) Health() (err error)

func (*View) ProcessedStylingFailedEvent

func (v *View) ProcessedStylingFailedEvent(failedEvent *global_view.FailedEvent) error

func (*View) ProcessedStylingSequence

func (v *View) ProcessedStylingSequence(event *models.Event) error

func (*View) PutStyling

func (v *View) PutStyling(policy *model.LabelPolicyView, event *models.Event) error

func (*View) RemoveFailedEvent

func (v *View) RemoveFailedEvent(database string, failedEvent *repository.FailedEvent) error

func (*View) StylingByAggregateIDAndState

func (v *View) StylingByAggregateIDAndState(aggregateID, instanceID string, state int32) (*model.LabelPolicyView, error)

func (*View) UpdateStylingSpoolerRunTimestamp

func (v *View) UpdateStylingSpoolerRunTimestamp() error

Jump to

Keyboard shortcuts

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