Documentation ¶
Index ¶
- Constants
- func NewSingleReadWrite(configurations ...runtime.Configuration[*SingleStateReadWrite]) stateless.SingleFunction
- func TopicMissingError(topic string) error
- func WithPersistenceIdSwitchPersistenceIdFunction(topic string, f PersistenceIdFunction[[]byte, []byte]) runtime.Configuration[*PersistenceIdSwitch]
- func WithSingleReadWriteRepository(repository SingleStateRepository) runtime.Configuration[*SingleStateReadWrite]
- func WithSingleReadWriteStatefulFunction(next SingleFunction) runtime.Configuration[*SingleStateReadWrite]
- func WithSingleReadWriteTransactionPersistenceIdFunc(...) runtime.Configuration[*SingleStateReadWrite]
- func WithSingleStatefulDeduplicateNextFunction(next SingleFunction) runtime.Configuration[*SingleStatefulDeduplicate]
- func WithSingleTopicSwitchStatefulSingleFunction(topic string, f SingleFunction) runtime.Configuration[*SingleTopicSwitch]
- type OneToOneFunction
- type OneToTwoFunction
- type PersistenceIdFunction
- type PersistenceIdSwitch
- type SingleFunction
- func ConvertOneToOne[S any, IK any, IV any, OK any, OV any](source OneToOneFunction[S, IK, IV, OK, OV], s format.Format[S], ...) SingleFunction
- func ConvertOneToTwo[S any, IK any, IV any, OK1 any, OV1 any, OK2 any, OV2 any](source OneToTwoFunction[S, IK, IV, OK1, OV1, OK2, OV2], s format.Format[S], ...) SingleFunction
- func ConvertTopicOneToOne[S any, IK any, IV any, OK any, OV any](source OneToOneFunction[S, IK, IV, OK, OV], s format.Format[S], ...) SingleFunction
- func ConvertTopicOneToTwo[S any, IK any, IV any, OK1 any, OV1 any, OK2 any, OV2 any](source OneToTwoFunction[S, IK, IV, OK1, OV1, OK2, OV2], s format.Format[S], ...) SingleFunction
- func NewSingleStatefulDeduplicate(configurations ...runtime.Configuration[*SingleStatefulDeduplicate]) SingleFunction
- func NewSingleTopicSwitch(configurations ...runtime.Configuration[*SingleTopicSwitch]) SingleFunction
- type SingleState
- type SingleStateReadWrite
- type SingleStateRepository
- type SingleStatefulDeduplicate
- type SingleTopicSwitch
Constants ¶
View Source
const (
ContextTransaction = "ContextTransaction"
)
Variables ¶
This section is empty.
Functions ¶
func NewSingleReadWrite ¶
func NewSingleReadWrite(configurations ...runtime.Configuration[*SingleStateReadWrite]) stateless.SingleFunction
constructor
func TopicMissingError ¶
func WithPersistenceIdSwitchPersistenceIdFunction ¶
func WithPersistenceIdSwitchPersistenceIdFunction(topic string, f PersistenceIdFunction[[]byte, []byte]) runtime.Configuration[*PersistenceIdSwitch]
configuration
func WithSingleReadWriteRepository ¶
func WithSingleReadWriteRepository(repository SingleStateRepository) runtime.Configuration[*SingleStateReadWrite]
func WithSingleReadWriteStatefulFunction ¶
func WithSingleReadWriteStatefulFunction(next SingleFunction) runtime.Configuration[*SingleStateReadWrite]
func WithSingleReadWriteTransactionPersistenceIdFunc ¶
func WithSingleReadWriteTransactionPersistenceIdFunc(persistenceIdFunc func(context.Context, message.Message[message.Bytes, message.Bytes]) (string, error)) runtime.Configuration[*SingleStateReadWrite]
configuration
func WithSingleStatefulDeduplicateNextFunction ¶
func WithSingleStatefulDeduplicateNextFunction(next SingleFunction) runtime.Configuration[*SingleStatefulDeduplicate]
configuration
func WithSingleTopicSwitchStatefulSingleFunction ¶
func WithSingleTopicSwitchStatefulSingleFunction(topic string, f SingleFunction) runtime.Configuration[*SingleTopicSwitch]
configuration
Types ¶
type OneToOneFunction ¶
type OneToTwoFunction ¶
type PersistenceIdFunction ¶
type PersistenceIdFunction[IK any, IV any] func(context.Context, message.Message[IK, IV]) (string, error)
func ConvertPersistenceId ¶
func ConvertPersistenceId[IK any, IV any]( source PersistenceIdFunction[IK, IV], ik format.Format[IK], iv format.Format[IV], ) PersistenceIdFunction[[]byte, []byte]
func NewSinglePersistenceIdSwitch ¶
func NewSinglePersistenceIdSwitch(configurations ...runtime.Configuration[*PersistenceIdSwitch]) PersistenceIdFunction[[]byte, []byte]
constructor
type PersistenceIdSwitch ¶
type PersistenceIdSwitch struct {
// contains filtered or unexported fields
}
implementation
type SingleFunction ¶
type SingleFunction func(context.Context, message.Message[message.Bytes, message.Bytes], SingleState[message.Bytes]) ([]message.Message[message.Bytes, message.Bytes], SingleState[message.Bytes], error)
func ConvertOneToOne ¶
func ConvertOneToTwo ¶
func ConvertOneToTwo[S any, IK any, IV any, OK1 any, OV1 any, OK2 any, OV2 any]( source OneToTwoFunction[S, IK, IV, OK1, OV1, OK2, OV2], s format.Format[S], ik format.Format[IK], iv format.Format[IV], ok1 format.Format[OK1], ov1 format.Format[OV1], ok2 format.Format[OK2], ov2 format.Format[OV2], ) SingleFunction
func ConvertTopicOneToOne ¶ added in v0.0.15
func ConvertTopicOneToTwo ¶ added in v0.0.15
func NewSingleStatefulDeduplicate ¶
func NewSingleStatefulDeduplicate(configurations ...runtime.Configuration[*SingleStatefulDeduplicate]) SingleFunction
constructor
func NewSingleTopicSwitch ¶
func NewSingleTopicSwitch(configurations ...runtime.Configuration[*SingleTopicSwitch]) SingleFunction
constructor
type SingleState ¶
type SingleState[S any] struct { PersistenceId string Internal *protobuf.State Results *protobuf.Results Content S CreatedTimestampMs int64 UpdatedTimestampMs int64 }
func ConvertSingleState ¶
func ConvertSingleState[V1 any, V2 any]( source SingleState[V1], v1 format.Format[V1], v2 format.Format[V2], ) (SingleState[V2], error)
assuming byte compatibility, i.e. bytes <-> proto, string <-> json
func NewSingleState ¶
func NewSingleState[S any](content S) SingleState[S]
func SetDefault ¶
func SetDefault[S any](s SingleState[S]) SingleState[S]
type SingleStateReadWrite ¶
type SingleStateReadWrite struct {
// contains filtered or unexported fields
}
implementation
type SingleStateRepository ¶
type SingleStatefulDeduplicate ¶
type SingleStatefulDeduplicate struct {
// contains filtered or unexported fields
}
implementation
type SingleTopicSwitch ¶
type SingleTopicSwitch struct {
// contains filtered or unexported fields
}
implementation
Click to show internal directories.
Click to hide internal directories.