Documentation ¶
Index ¶
- func CommitStateDiff() *commitStateDiffInputBuilder
- type Driver
- func (d *Driver) CommitStateDiff(ctx context.Context, state *services.CommitStateDiffInput) (*services.CommitStateDiffOutput, error)
- func (d *Driver) CommitValuePairs(ctx context.Context, contract string, keyValues ...string)
- func (d *Driver) CommitValuePairsAtHeight(ctx context.Context, h int, contract string, keyValues ...string) (*services.CommitStateDiffOutput, error)
- func (d *Driver) GetBlockHeightAndTimestamp(ctx context.Context) (int, int, error)
- func (d *Driver) ReadKeys(ctx context.Context, contract string, keys ...string) ([]*keyValue, error)
- func (d *Driver) ReadKeysFromRevision(ctx context.Context, revision int, contract string, keys ...string) ([]*keyValue, error)
- func (d *Driver) ReadSingleKey(ctx context.Context, contract string, key string) ([]byte, error)
- func (d *Driver) ReadSingleKeyFromRevision(ctx context.Context, revision int, contract string, key string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitStateDiff ¶
func CommitStateDiff() *commitStateDiffInputBuilder
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func NewStateStorageDriver ¶
func (*Driver) CommitStateDiff ¶
func (d *Driver) CommitStateDiff(ctx context.Context, state *services.CommitStateDiffInput) (*services.CommitStateDiffOutput, error)
func (*Driver) CommitValuePairs ¶
func (*Driver) CommitValuePairsAtHeight ¶
func (*Driver) GetBlockHeightAndTimestamp ¶
func (*Driver) ReadKeysFromRevision ¶
func (*Driver) ReadSingleKey ¶
Click to show internal directories.
Click to hide internal directories.