view

package
v1.83.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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 added in v0.36.0

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

func (*View) AllFailedEvents added in v0.36.0

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

func (*View) ClearView added in v0.36.0

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

func (*View) GetCurrentSequence added in v0.107.0

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

func (*View) GetLatestStylingFailedEvent added in v1.12.0

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

func (*View) GetLatestStylingSequence added in v1.12.0

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

func (*View) Health

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

func (*View) ProcessedStylingFailedEvent added in v1.12.0

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

func (*View) ProcessedStylingSequence added in v1.12.0

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

func (*View) PutStyling added in v1.12.0

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

func (*View) RemoveFailedEvent added in v0.36.0

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

func (*View) StylingByAggregateIDAndState added in v1.12.0

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

func (*View) UpdateStylingSpoolerRunTimestamp added in v1.12.0

func (v *View) UpdateStylingSpoolerRunTimestamp() error

Jump to

Keyboard shortcuts

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