Documentation ¶
Index ¶
- func KafkaConsumerSingle(ctrl runtime.Controller, fn stateless.SingleFunction, ...) runtime.Runtime
- func KafkaProducer(ctrl runtime.Controller, ...) runtime.Producer
- func Postgresql(ctrl runtime.Controller, ...) runtime_bun.BunConnection
- func PostgresqlSingleStateRepository(conn runtime_bun.BunConnection, tableName string) stateful.SingleStateRepository
- func PostgresqlUpsertRepository[T any](conn runtime_bun.BunConnection) materialise.UpsertRepository[T]
- func RouteRuntime(producer runtime.Producer, ...) runtime.Runtime
- func WrapRetry(fn stateless.SingleFunction) (stateless.SingleFunction, runtime.Runtime)
- func WrapSingleProduce(fn stateless.SingleFunction, producer runtime.Producer) stateless.SingleFunction
- type JoinPostgresqlFunctionConfiguration
- type Main
- type MaterialisePostgresqlFunctionConfiguration
- type RouterConfiguration
- type StatefulPostgresqlFunctionConfiguration
- type StatelessSingleFunctionConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KafkaConsumerSingle ¶ added in v0.0.4
func KafkaConsumerSingle(ctrl runtime.Controller, fn stateless.SingleFunction, configs []runtime.Configuration[*runtime_sarama.Consumer]) runtime.Runtime
func KafkaProducer ¶ added in v0.0.4
func KafkaProducer(ctrl runtime.Controller, configs []runtime.Configuration[*runtime_sarama.Producer]) runtime.Producer
func Postgresql ¶ added in v0.0.4
func Postgresql(ctrl runtime.Controller, configs []runtime.Configuration[*runtime_bun.PostgresqlConnection]) runtime_bun.BunConnection
func PostgresqlSingleStateRepository ¶ added in v0.0.4
func PostgresqlSingleStateRepository(conn runtime_bun.BunConnection, tableName string) stateful.SingleStateRepository
func PostgresqlUpsertRepository ¶ added in v0.0.4
func PostgresqlUpsertRepository[T any](conn runtime_bun.BunConnection) materialise.UpsertRepository[T]
func RouteRuntime ¶ added in v0.0.4
func RouteRuntime(producer runtime.Producer, routeConfiguration []runtime.Configuration[*runtime_bunrouter.Router]) runtime.Runtime
func WrapRetry ¶ added in v0.0.4
func WrapRetry(fn stateless.SingleFunction) (stateless.SingleFunction, runtime.Runtime)
func WrapSingleProduce ¶ added in v0.0.4
func WrapSingleProduce(fn stateless.SingleFunction, producer runtime.Producer) stateless.SingleFunction
Types ¶
type JoinPostgresqlFunctionConfiguration ¶
type JoinPostgresqlFunctionConfiguration struct { PostgresqlConfiguration []runtime.Configuration[*runtime_bun.PostgresqlConnection] KafkaProducerConfiguration []runtime.Configuration[*runtime_sarama.Producer] KafkaConsumerConfiguration []runtime.Configuration[*runtime_sarama.Consumer] StatefulFunctions map[string]stateful.SingleFunction PersistenceIdFunctions map[string]stateful.PersistenceIdFunction[[]byte, []byte] IntermediateTopicName string PersistenceTableName string RouteConfiguration []runtime.Configuration[*runtime_bunrouter.Router] }
func (JoinPostgresqlFunctionConfiguration) Runtime ¶
func (c JoinPostgresqlFunctionConfiguration) Runtime() runtime.Runtime
type MaterialisePostgresqlFunctionConfiguration ¶ added in v0.0.4
type MaterialisePostgresqlFunctionConfiguration[T any] struct { PostgresqlConfiguration []runtime.Configuration[*runtime_bun.PostgresqlConnection] KafkaProducerConfiguration []runtime.Configuration[*runtime_sarama.Producer] KafkaConsumerConfiguration []runtime.Configuration[*runtime_sarama.Consumer] MaterialiseMapFunction materialise.MapFunction[message.Bytes, message.Bytes, T] RouteConfiguration []runtime.Configuration[*runtime_bunrouter.Router] }
func (MaterialisePostgresqlFunctionConfiguration[T]) Runtime ¶ added in v0.0.4
func (c MaterialisePostgresqlFunctionConfiguration[T]) Runtime() runtime.Runtime
type RouterConfiguration ¶ added in v0.0.6
type RouterConfiguration struct { KafkaProducerConfiguration []runtime.Configuration[*runtime_sarama.Producer] RouteConfiguration []runtime.Configuration[*runtime_bunrouter.Router] }
Wiring configuration
func (RouterConfiguration) Runtime ¶ added in v0.0.6
func (c RouterConfiguration) Runtime() runtime.Runtime
type StatefulPostgresqlFunctionConfiguration ¶
type StatefulPostgresqlFunctionConfiguration struct { PostgresqlConfiguration []runtime.Configuration[*runtime_bun.PostgresqlConnection] KafkaProducerConfiguration []runtime.Configuration[*runtime_sarama.Producer] KafkaConsumerConfiguration []runtime.Configuration[*runtime_sarama.Consumer] StatefulFunction stateful.SingleFunction PersistenceIdFunction stateful.PersistenceIdFunction[[]byte, []byte] PersistenceTableName string RouteConfiguration []runtime.Configuration[*runtime_bunrouter.Router] }
Wiring configuration
func (StatefulPostgresqlFunctionConfiguration) Runtime ¶
func (c StatefulPostgresqlFunctionConfiguration) Runtime() runtime.Runtime
type StatelessSingleFunctionConfiguration ¶
type StatelessSingleFunctionConfiguration struct { KafkaProducerConfiguration []runtime.Configuration[*runtime_sarama.Producer] KafkaConsumerConfiguration []runtime.Configuration[*runtime_sarama.Consumer] StatelessFunction stateless.SingleFunction RouteConfiguration []runtime.Configuration[*runtime_bunrouter.Router] }
Wiring configuration
func (StatelessSingleFunctionConfiguration) Runtime ¶
func (c StatelessSingleFunctionConfiguration) Runtime() runtime.Runtime
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.