Documentation ¶
Index ¶
- Variables
- func NewRepository(configurations ...runtime.Configuration[Repository]) stateful.Repository
- func TableToState(dbState *StateTable) (stateful.State[structure.Bytes], error)
- func WithConnection(connection runtime_bun.BunConnection) runtime.Configuration[Repository]
- func WithStateTableName(persistenceTableName string) runtime.Configuration[Repository]
- type Repository
- func (r Repository) Get(ctx context.Context, persistenceId string) (stateful.State[structure.Bytes], error)
- func (r Repository) GetAll(ctx context.Context, persistenceId []string) (map[string]stateful.State[structure.Bytes], error)
- func (r Repository) Upsert(ctx context.Context, persistenceId string, s stateful.State[structure.Bytes]) error
- func (r Repository) UpsertAll(ctx context.Context, stateMap map[string]stateful.State[structure.Bytes]) error
- type StateTable
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalStateProtoFormat = format.Protobuf[*protobuf.State]()
View Source
var ResultsStateProtoFormat = format.Protobuf[*protobuf.Results]()
Functions ¶
func NewRepository ¶
func NewRepository(configurations ...runtime.Configuration[Repository]) stateful.Repository
constructor
func TableToState ¶
func WithConnection ¶
func WithConnection(connection runtime_bun.BunConnection) runtime.Configuration[Repository]
configuration
func WithStateTableName ¶
func WithStateTableName(persistenceTableName string) runtime.Configuration[Repository]
Types ¶
Click to show internal directories.
Click to hide internal directories.