Documentation ¶
Index ¶
- Constants
- type HTTPLoaderOption
- type Lister
- type Loader
- func FileLoader(filename string) Loader
- func HTTPLoader(url string, opts ...HTTPLoaderOption) Loader
- func RedisHashLoader(addr string, opts ...RedisLoaderOption) Loader
- func RedisListLoader(addr string, opts ...RedisLoaderOption) Loader
- func RedisSetLoader(addr string, opts ...RedisLoaderOption) Loader
- type Mapper
- type RedisLoaderOption
Constants ¶
View Source
const (
DefaultRedisKey = "gost"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPLoaderOption ¶
type HTTPLoaderOption func(opts *httpLoaderOptions)
func TimeoutHTTPLoaderOption ¶
func TimeoutHTTPLoaderOption(timeout time.Duration) HTTPLoaderOption
type Loader ¶
func HTTPLoader ¶
func HTTPLoader(url string, opts ...HTTPLoaderOption) Loader
HTTPLoader loads data from HTTP request.
func RedisHashLoader ¶
func RedisHashLoader(addr string, opts ...RedisLoaderOption) Loader
RedisHashLoader loads data from redis hash.
func RedisListLoader ¶
func RedisListLoader(addr string, opts ...RedisLoaderOption) Loader
RedisListLoader loads data from redis list.
func RedisSetLoader ¶
func RedisSetLoader(addr string, opts ...RedisLoaderOption) Loader
RedisSetLoader loads data from redis set.
type RedisLoaderOption ¶
type RedisLoaderOption func(opts *redisLoaderOptions)
func DBRedisLoaderOption ¶
func DBRedisLoaderOption(db int) RedisLoaderOption
func KeyRedisLoaderOption ¶
func KeyRedisLoaderOption(key string) RedisLoaderOption
func PasswordRedisLoaderOption ¶
func PasswordRedisLoaderOption(password string) RedisLoaderOption
Click to show internal directories.
Click to hide internal directories.