Skip to content

Commit 997db81

Browse files
committed
Accessor reads/writes storage
1 parent 853cb72 commit 997db81

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

extensions/accessor/accessor.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
package accessor
5+
6+
import "context"
7+
8+
// Accessor accesses data storage.
9+
type Accessor interface {
10+
Read(context.Context) ([]byte, error)
11+
Write(context.Context, []byte) error
12+
}

0 commit comments

Comments
 (0)