add recorder

This commit is contained in:
ginuerzh
2022-04-11 23:14:20 +08:00
parent d6f8ec5116
commit 4808441fb3
12 changed files with 301 additions and 27 deletions

View File

@ -11,6 +11,7 @@ type fileLoader struct {
filename string
}
// FileLoader loads data from file.
func FileLoader(filename string) Loader {
return &fileLoader{
filename: filename,

View File

@ -45,7 +45,7 @@ type redisSetLoader struct {
key string
}
// RedisSetLoader loads values from redis set.
// RedisSetLoader loads data from redis set.
func RedisSetLoader(addr string, opts ...RedisLoaderOption) Loader {
var options redisLoaderOptions
for _, opt := range opts {
@ -84,7 +84,7 @@ type redisHashLoader struct {
key string
}
// RedisHashLoader loads values from redis hash.
// RedisHashLoader loads data from redis hash.
func RedisHashLoader(addr string, opts ...RedisLoaderOption) Loader {
var options redisLoaderOptions
for _, opt := range opts {