github.com/TykTechnologies/tyk-pump/storage
No package summary is available.
Package
Files: 2. Third party imports: 4. Imports from organisation: 4. Tests: 0. Benchmarks: 0.
Constants
Vars
Types
AnalyticsStorage
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| type |
|
No comment on field. |
EnvMapString
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| type |
|
No comment on field. |
TemporalStorageConfig
nolint:govet
| Field name | Field type | Comment |
|---|---|---|
| Type |
|
Deprecated. |
| Host |
|
Host value. For example: "localhost". |
| Port |
|
Port value. For example: 6379. |
| Hosts |
|
Deprecated: use Addrs instead. |
| Addrs |
|
Use instead of the host value if you're running a Redis cluster with multiple instances. |
| MasterName |
|
Sentinel master name. |
| SentinelPassword |
|
Sentinel password. |
| Username |
|
Database username. |
| Password |
|
Database password. |
| Database |
|
Database name. |
| Timeout |
|
How long to allow for new connections to be established (in milliseconds). Defaults to 5sec. |
| MaxIdle |
|
Maximum number of idle connections in the pool. |
| MaxActive |
|
Maximum number of connections allocated by the pool at a given time. When zero, there is no limit on the number of connections in the pool. Defaults to 500. |
| EnableCluster |
|
Enable this option if you are using a cluster instance. Default is |
| RedisKeyPrefix |
|
Prefix the key names. Defaults to "analytics-". Deprecated: use KeyPrefix instead. |
| KeyPrefix |
|
Prefix the key names. Defaults to "analytics-". |
| UseSSL |
|
Setting this to true to use SSL when connecting to the DB. |
| SSLInsecureSkipVerify |
|
Set this to |
| SSLCAFile |
|
Path to the CA file. |
| SSLCertFile |
|
Path to the cert file. |
| SSLKeyFile |
|
Path to the key file. |
| SSLMaxVersion |
|
Maximum supported TLS version. Defaults to TLS 1.3, valid values are TLS 1.0, 1.1, 1.2, 1.3. |
| SSLMinVersion |
|
Minimum supported TLS version. Defaults to TLS 1.2, valid values are TLS 1.0, 1.1, 1.2, 1.3. |
| RedisUseSSL |
|
Setting this to true to use SSL when connecting to the DB. Deprecated: use UseSSL instead. |
| RedisSSLInsecureSkipVerify |
|
Set this to |
TemporalStorageHandler
TemporalStorageHandler is a storage manager that uses non data-persistent databases, like Redis.
| Field name | Field type | Comment |
|---|---|---|
| Config |
|
No comment on field. |
| kv |
|
No comment on field. |
| list |
|
No comment on field. |
| forceReconnect |
|
No comment on field. |
Functions
func NewTemporalStorageHandler
func (*EnvMapString) Decode
func (*TemporalStorageHandler) GetAndDeleteSet
func (*TemporalStorageHandler) GetName
func (*TemporalStorageHandler) Init
func (*TemporalStorageHandler) SetKey
SetKey will create (or update) a key value in the store
Uses: time.Duration, time.Second.Private functions
func createConnector
func getKVFromConnector
func getListFromConnector
func connect
Connect will establish a connection to the r.db
References: fmt.Errorf, logrus.Fields.func ensureConnection
func fixKey
func resetConnection
Tests
Files: 1. Third party imports: 1. Imports from organisation: 1. Tests: 6. Benchmarks: 0.