Documentation ¶ Index ¶ type Redis func NewRedisClient(options *redis.Options) *Redis func (r *Redis) Close() error func (r *Redis) Del(ip *model.IP) bool func (r *Redis) RangeOne(protocol string) (ip *model.IP, err error) func (r *Redis) Save(ip *model.IP) error type Storage Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Redis ¶ type Redis struct { // contains filtered or unexported fields } func NewRedisClient ¶ func NewRedisClient(options *redis.Options) *Redis func (*Redis) Close ¶ func (r *Redis) Close() error func (*Redis) Del ¶ func (r *Redis) Del(ip *model.IP) bool func (*Redis) RangeOne ¶ func (r *Redis) RangeOne(protocol string) (ip *model.IP, err error) func (*Redis) Save ¶ func (r *Redis) Save(ip *model.IP) error type Storage ¶ type Storage interface { Save(ip *model.IP) error Del(ip *model.IP) bool RangeOne(protocol string) (ip *model.IP, err error) Close() error } Source Files ¶ View all Source files redis.go storage.go Click to show internal directories. Click to hide internal directories.