linting
This commit is contained in:
		
							parent
							
								
									58e2e607e5
								
							
						
					
					
						commit
						a273f6087d
					
				|  | @ -2,9 +2,9 @@ package options | ||||||
| 
 | 
 | ||||||
| type AWSIAMConfig struct { | type AWSIAMConfig struct { | ||||||
| 	// AWS service redis service being used. "elasticache" or "memorydb"
 | 	// AWS service redis service being used. "elasticache" or "memorydb"
 | ||||||
| 	ServiceName         string   `json:"serviceName,omitempty` | 	ServiceName string `json:"serviceName,omitempty"` | ||||||
| 	// AWS Cluster name
 | 	// AWS Cluster name
 | ||||||
| 	ClusterName         string   `json:"clusterName,omitempty` | 	ClusterName string `json:"clusterName,omitempty"` | ||||||
| 	// AWS Username
 | 	// AWS Username
 | ||||||
| 	Username            string   `json:"userName,omitempty` | 	Username string `json:"userName,omitempty"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -22,19 +22,19 @@ type CookieStoreOptions struct { | ||||||
| 
 | 
 | ||||||
| // RedisStoreOptions contains configuration options for the RedisSessionStore.
 | // RedisStoreOptions contains configuration options for the RedisSessionStore.
 | ||||||
| type RedisStoreOptions struct { | type RedisStoreOptions struct { | ||||||
| 	ConnectionURL          string    		`flag:"redis-connection-url" cfg:"redis_connection_url"` | 	ConnectionURL          string        `flag:"redis-connection-url" cfg:"redis_connection_url"` | ||||||
| 	Username               string    		`flag:"redis-username" cfg:"redis_username"` | 	Username               string        `flag:"redis-username" cfg:"redis_username"` | ||||||
| 	Password               string    		`flag:"redis-password" cfg:"redis_password"` | 	Password               string        `flag:"redis-password" cfg:"redis_password"` | ||||||
| 	UseSentinel            bool      		`flag:"redis-use-sentinel" cfg:"redis_use_sentinel"` | 	UseSentinel            bool          `flag:"redis-use-sentinel" cfg:"redis_use_sentinel"` | ||||||
| 	SentinelPassword       string    		`flag:"redis-sentinel-password" cfg:"redis_sentinel_password"` | 	SentinelPassword       string        `flag:"redis-sentinel-password" cfg:"redis_sentinel_password"` | ||||||
| 	SentinelMasterName     string    		`flag:"redis-sentinel-master-name" cfg:"redis_sentinel_master_name"` | 	SentinelMasterName     string        `flag:"redis-sentinel-master-name" cfg:"redis_sentinel_master_name"` | ||||||
| 	SentinelConnectionURLs []string  		`flag:"redis-sentinel-connection-urls" cfg:"redis_sentinel_connection_urls"` | 	SentinelConnectionURLs []string      `flag:"redis-sentinel-connection-urls" cfg:"redis_sentinel_connection_urls"` | ||||||
| 	UseCluster             bool      		`flag:"redis-use-cluster" cfg:"redis_use_cluster"` | 	UseCluster             bool          `flag:"redis-use-cluster" cfg:"redis_use_cluster"` | ||||||
| 	ClusterConnectionURLs  []string 		`flag:"redis-cluster-connection-urls" cfg:"redis_cluster_connection_urls"` | 	ClusterConnectionURLs  []string      `flag:"redis-cluster-connection-urls" cfg:"redis_cluster_connection_urls"` | ||||||
| 	CAPath                 string   		`flag:"redis-ca-path" cfg:"redis_ca_path"` | 	CAPath                 string        `flag:"redis-ca-path" cfg:"redis_ca_path"` | ||||||
| 	InsecureSkipTLSVerify  bool     		`flag:"redis-insecure-skip-tls-verify" cfg:"redis_insecure_skip_tls_verify"` | 	InsecureSkipTLSVerify  bool          `flag:"redis-insecure-skip-tls-verify" cfg:"redis_insecure_skip_tls_verify"` | ||||||
| 	IdleTimeout            int      		`flag:"redis-connection-idle-timeout" cfg:"redis_connection_idle_timeout"` | 	IdleTimeout            int           `flag:"redis-connection-idle-timeout" cfg:"redis_connection_idle_timeout"` | ||||||
| 	AWSIAMConfig           *AWSIAMConfig 	`cfg:",internal"` | 	AWSIAMConfig           *AWSIAMConfig `cfg:",internal"` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func sessionOptionsDefaults() SessionOptions { | func sessionOptionsDefaults() SessionOptions { | ||||||
|  |  | ||||||
|  | @ -284,8 +284,7 @@ var _ = Describe("Redis SessionStore Tests", func() { | ||||||
| 					}, | 					}, | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				var opt *redis.Options | 				var opt = &redis.Options{} | ||||||
| 				opt = &redis.Options{} |  | ||||||
| 
 | 
 | ||||||
| 				err := setupAWSIAMAuth(redisOpts, opt) | 				err := setupAWSIAMAuth(redisOpts, opt) | ||||||
| 				Expect(err).ToNot(HaveOccurred()) | 				Expect(err).ToNot(HaveOccurred()) | ||||||
|  | @ -300,8 +299,7 @@ var _ = Describe("Redis SessionStore Tests", func() { | ||||||
| 					AWSIAMConfig: nil, | 					AWSIAMConfig: nil, | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				var opt *redis.Options | 				var opt = &redis.Options{} | ||||||
| 				opt = &redis.Options{} |  | ||||||
| 
 | 
 | ||||||
| 				err := setupAWSIAMAuth(redisOpts, opt) | 				err := setupAWSIAMAuth(redisOpts, opt) | ||||||
| 				Expect(err).ToNot(HaveOccurred()) | 				Expect(err).ToNot(HaveOccurred()) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue