Documentation
¶
Index ¶
Constants ¶
const ( StatusPending = models.StatusPending StatusProcessing = models.StatusProcessing StatusCompleted = models.StatusCompleted StatusFailed = models.StatusFailed StatusCancelled = models.StatusCancelled StatusRetrying = models.StatusRetrying )
Status constants
Variables ¶
This section is empty.
Functions ¶
func NewConnectionStore ¶
func NewConnectionStore(db core.DB) store.ConnectionStore
NewConnectionStore creates a new DynamORM-backed connection store
func NewRequestQueue ¶
func NewRequestQueue(db core.DB) store.RequestQueue
NewRequestQueue creates a new DynamORM-backed request queue
Types ¶
type AsyncRequest ¶
type AsyncRequest = models.AsyncRequest
type RequestStatus ¶ added in v1.0.4
type RequestStatus = models.RequestStatus
type StoreFactory ¶
type StoreFactory struct {
// contains filtered or unexported fields
}
StoreFactory creates all the necessary stores using DynamORM
func NewStoreFactory ¶
func NewStoreFactory(config session.Config) (*StoreFactory, error)
NewStoreFactory creates a new DynamORM store factory
func NewStoreFactoryFromClient ¶
func NewStoreFactoryFromClient(client *dynamodb.Client, region string) (*StoreFactory, error)
NewStoreFactoryFromClient creates a new factory from an existing DynamoDB client This is useful for Lambda functions that already have a client configured
func (*StoreFactory) ConnectionStore ¶
func (f *StoreFactory) ConnectionStore() store.ConnectionStore
ConnectionStore returns the connection store
func (*StoreFactory) DB ¶
func (f *StoreFactory) DB() *dynamorm.DB
DB returns the underlying DynamORM database instance
func (*StoreFactory) EnsureTables ¶
func (f *StoreFactory) EnsureTables(ctx context.Context) error
EnsureTables creates the required DynamoDB tables if they don't exist This should only be used in development/testing environments
func (*StoreFactory) RequestQueue ¶
func (f *StoreFactory) RequestQueue() store.RequestQueue
RequestQueue returns the request queue
func (*StoreFactory) SubscriptionStore ¶
func (f *StoreFactory) SubscriptionStore() store.SubscriptionStore
SubscriptionStore returns the subscription store
type Subscription ¶
type Subscription = models.Subscription