| 
									
										
										
										
											2023-02-21 23:21:18 +08:00
										 |  |  | package anonymous | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"context" | 
					
						
							|  |  |  | 	"net/http" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-01 00:04:28 +08:00
										 |  |  | type DeviceKind string | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const ( | 
					
						
							| 
									
										
										
										
											2023-08-28 16:49:23 +08:00
										 |  |  | 	AnonDevice     DeviceKind = "anon-session" | 
					
						
							|  |  |  | 	AuthedDevice   DeviceKind = "authed-session" | 
					
						
							|  |  |  | 	AnonDeviceUI   DeviceKind = "ui-anon-session" | 
					
						
							|  |  |  | 	AuthedDeviceUI DeviceKind = "ui-authed-session" | 
					
						
							| 
									
										
										
										
											2023-08-01 00:04:28 +08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-21 23:21:18 +08:00
										 |  |  | type Service interface { | 
					
						
							| 
									
										
										
										
											2023-08-01 00:04:28 +08:00
										 |  |  | 	TagDevice(context.Context, *http.Request, DeviceKind) error | 
					
						
							| 
									
										
										
										
											2023-02-21 23:21:18 +08:00
										 |  |  | } |