iprecoder

package
v0.0.0-...-df9dd71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpRecorder

type IpRecorder interface {
	SyncOnlineIp(Ips []limiter.UserIpList) ([]limiter.UserIpList, error)
}

type Recorder

type Recorder struct {
	*conf.RecorderConfig
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder(c *conf.RecorderConfig) *Recorder

func (*Recorder) SyncOnlineIp

func (r *Recorder) SyncOnlineIp(ips []limiter.UserIpList) ([]limiter.UserIpList, error)

type Redis

type Redis struct {
	*conf.RedisConfig
	// contains filtered or unexported fields
}

func NewRedis

func NewRedis(c *conf.RedisConfig) *Redis

func (*Redis) SyncOnlineIp

func (r *Redis) SyncOnlineIp(Ips []limiter.UserIpList) ([]limiter.UserIpList, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL