providerstest

package
v0.409.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManualSyncProvider

type ManualSyncProvider[R configuration.Role] struct {
	// contains filtered or unexported fields
}

ManualSyncProvider prevents normal syncs by returning a very high sync interval when syncAndWait() is called, it starts returning a 0 sync interval and then then blocks until sync completes. See why we didn't use mock clocks to schedule syncs here: https://github.com/TBD54566975/ftl/issues/2092

func (*ManualSyncProvider[R]) Delete

func (a *ManualSyncProvider[R]) Delete(ctx context.Context, ref configuration.Ref) error

func (*ManualSyncProvider[R]) Key

func (*ManualSyncProvider[R]) Role

func (a *ManualSyncProvider[R]) Role() R

func (*ManualSyncProvider[R]) Store

func (a *ManualSyncProvider[R]) Store(ctx context.Context, ref configuration.Ref, value []byte) (*url.URL, error)

func (*ManualSyncProvider[R]) Sync

func (*ManualSyncProvider[R]) SyncAndWait

func (a *ManualSyncProvider[R]) SyncAndWait() error

func (*ManualSyncProvider[R]) SyncInterval

func (a *ManualSyncProvider[R]) SyncInterval() time.Duration

Jump to

Keyboard shortcuts

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