-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from SaveTheRbtz/privateOptions
seekable: use private options
- Loading branch information
Showing
14 changed files
with
68 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package seekable | ||
|
||
import ( | ||
"go.uber.org/zap" | ||
|
||
"github.com/SaveTheRbtz/zstd-seekable-format-go/env" | ||
) | ||
|
||
type rOption func(*readerImpl) error | ||
|
||
func WithRLogger(l *zap.Logger) rOption { | ||
return func(r *readerImpl) error { r.logger = l; return nil } | ||
} | ||
|
||
func WithREnvironment(e env.REnvironment) rOption { | ||
return func(r *readerImpl) error { r.env = e; return nil } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package seekable | ||
|
||
import ( | ||
"go.uber.org/zap" | ||
|
||
"github.com/SaveTheRbtz/zstd-seekable-format-go/env" | ||
) | ||
|
||
type wOption func(*writerImpl) error | ||
|
||
func WithWLogger(l *zap.Logger) wOption { | ||
return func(w *writerImpl) error { w.logger = l; return nil } | ||
} | ||
|
||
func WithWEnvironment(e env.WEnvironment) wOption { | ||
return func(w *writerImpl) error { w.env = e; return nil } | ||
} |
Oops, something went wrong.