| 
									
										
										
										
											2019-05-06 14:33:33 +01:00
										 |  |  | package options | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // SessionOptions contains configuration options for the SessionStore providers. | 
					
						
							|  |  |  | type SessionOptions struct { | 
					
						
							| 
									
										
										
										
											2020-05-25 13:36:44 +01:00
										 |  |  | 	Type  string            `flag:"session-store-type" cfg:"session_store_type"` | 
					
						
							|  |  |  | 	Redis RedisStoreOptions `cfg:",squash"` | 
					
						
							| 
									
										
										
										
											2019-05-06 14:33:33 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // CookieSessionStoreType is used to indicate the CookieSessionStore should be | 
					
						
							|  |  |  | // used for storing sessions. | 
					
						
							|  |  |  | var CookieSessionStoreType = "cookie" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-16 17:03:38 +01:00
										 |  |  | // RedisSessionStoreType is used to indicate the RedisSessionStore should be | 
					
						
							| 
									
										
										
										
											2019-05-09 16:09:22 -07:00
										 |  |  | // used for storing sessions. | 
					
						
							|  |  |  | var RedisSessionStoreType = "redis" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-16 17:03:38 +01:00
										 |  |  | // RedisStoreOptions contains configuration options for the RedisSessionStore. | 
					
						
							| 
									
										
										
										
											2019-05-09 16:09:22 -07:00
										 |  |  | type RedisStoreOptions struct { | 
					
						
							| 
									
										
										
										
											2020-05-08 18:16:08 +01:00
										 |  |  | 	ConnectionURL          string   `flag:"redis-connection-url" cfg:"redis_connection_url"` | 
					
						
							|  |  |  | 	UseSentinel            bool     `flag:"redis-use-sentinel" cfg:"redis_use_sentinel"` | 
					
						
							|  |  |  | 	SentinelMasterName     string   `flag:"redis-sentinel-master-name" cfg:"redis_sentinel_master_name"` | 
					
						
							|  |  |  | 	SentinelConnectionURLs []string `flag:"redis-sentinel-connection-urls" cfg:"redis_sentinel_connection_urls"` | 
					
						
							|  |  |  | 	UseCluster             bool     `flag:"redis-use-cluster" cfg:"redis_use_cluster"` | 
					
						
							|  |  |  | 	ClusterConnectionURLs  []string `flag:"redis-cluster-connection-urls" cfg:"redis_cluster_connection_urls"` | 
					
						
							|  |  |  | 	CAPath                 string   `flag:"redis-ca-path" cfg:"redis_ca_path"` | 
					
						
							|  |  |  | 	InsecureSkipTLSVerify  bool     `flag:"redis-insecure-skip-tls-verify" cfg:"redis_insecure_skip_tls_verify"` | 
					
						
							| 
									
										
										
										
											2019-05-09 16:09:22 -07:00
										 |  |  | } |