Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶ added in v0.1.26
type Datastore interface { // ReadTx starts a read only transaction. ReadTx(context.Context, func(context.Context, ReadTx) error) error // ReadWriteTx starts a read write transaction. ReadWriteTx(context.Context, func(context.Context, ReadWriteTx) error) error io.Closer Migration }
Datastore provides methods for transactional operations.
type Migration ¶ added in v0.1.26
type Migration interface { // Migrate is a method that runs the migration. Migrate(context.Context) error }
Migration is a method that runs the migration.
type ReadTx ¶ added in v0.1.26
type ReadTx interface { // GetToken is a method that returns a token. GetToken(ctx context.Context, account *models.Token) error }
ReadTx provides methods for transactional read operations.
type ReadWriteTx ¶ added in v0.1.26
type ReadWriteTx interface { ReadTx }
ReadWriteTx provides methods for transactional read and write operations.
Click to show internal directories.
Click to hide internal directories.