common

package
v0.0.0-...-783eb67 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: BSD-2-Clause Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	RegisterTypeEntity = "contracts.eventstore.types.RegisterType"
)

Variables

This section is empty.

Functions

func ExtractEntityType

func ExtractEntityType(event *store.Event) string

func ExtractEntityTypeFromStr

func ExtractEntityTypeFromStr(eventStr string) string

func ExtractEventType

func ExtractEventType(event *store.Event) string

func ExtractEventTypeFromStr

func ExtractEventTypeFromStr(eventStr string) string

func IncrOriginator

func IncrOriginator(originator *common.Originator) (*common.Originator, error)

func IncrStringInt

func IncrStringInt(s string) (string, error)

func IsEventCompliant

func IsEventCompliant(event *store.Event, selector string) bool

func MustIncrStringInt

func MustIncrStringInt(s string) string

func NewOriginator

func NewOriginator() *common.Originator

func RetryNormal

func RetryNormal(cb func() error) error

func RetryShort

func RetryShort(cb func() error) error

Types

type Gate

type Gate struct{}

func (*Gate) Start

func (gate *Gate) Start()

Jump to

Keyboard shortcuts

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