-
Notifications
You must be signed in to change notification settings - Fork 150
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1558 +/- ##
==========================================
+ Coverage 69.27% 69.39% +0.11%
==========================================
Files 58 58
Lines 4355 4355
==========================================
+ Hits 3017 3022 +5
+ Misses 906 899 -7
- Partials 432 434 +2
Continue to review full report at Codecov.
|
Logs interface { | ||
sequencer.LogsReader | ||
|
||
// Copied methods from adminserver.LogsAdmin because of duplicate method. | ||
|
||
// AddLogs creates and adds new logs for writing to a directory. | ||
AddLogs(ctx context.Context, directoryID string, logIDs ...int64) error | ||
// SetWritable enables or disables new writes from going to logID. | ||
SetWritable(ctx context.Context, directoryID string, logID int64, enabled bool) error | ||
|
||
// Copied methods from keyserver.MutationLogs | ||
SendBatch(ctx context.Context, directoryID string, logID int64, batch []*pb.EntryUpdate) (water.Mark, error) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you get a Go Native to review this? It looks a bit clunky to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of a known issue: golang/go#6977
https://golang.org/ref/spec#Uniqueness_of_identifiers
I think these could be merged if the interfaces were in the same package, because they are in different packages, they are different identifiers.
Support creating storage implementations of various types.