Documentation
¶
Index ¶
- type CheckpointStore
- func (s *CheckpointStore) Get(ctx context.Context, consumer string, key string) ([]byte, error)
- func (s *CheckpointStore) GetDatabaseTime(ctx context.Context) (time.Time, error)
- func (s *CheckpointStore) InitialMigration(ctx context.Context) error
- func (s *CheckpointStore) Set(ctx context.Context, consumer string, key string, value []byte) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckpointStore ¶
type CheckpointStore struct {
// contains filtered or unexported fields
}
func (*CheckpointStore) GetDatabaseTime ¶
func (*CheckpointStore) InitialMigration ¶
func (s *CheckpointStore) InitialMigration(ctx context.Context) error
type Store ¶
type Store interface {
InitialMigration(ctx context.Context) error
Set(ctx context.Context, consumer string, key string, value []byte) error
Get(ctx context.Context, consumer string, key string) ([]byte, error)
GetDatabaseTime(ctx context.Context) (time.Time, error)
}
func NewCheckpointStore ¶
func NewCheckpointStore(db *gorm.DB, log logrus.FieldLogger) Store
Click to show internal directories.
Click to hide internal directories.