mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			554 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			554 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package serverconfigs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type HealthCheckConfig struct {
							 | 
						||
| 
								 | 
							
									IsOn        bool                `yaml:"isOn" json:"isOn"`               // 是否开启 TODO
							 | 
						||
| 
								 | 
							
									URL         string              `yaml:"url" json:"url"`                 // TODO
							 | 
						||
| 
								 | 
							
									Interval    int                 `yaml:"interval" json:"interval"`       // TODO
							 | 
						||
| 
								 | 
							
									StatusCodes []int               `yaml:"statusCodes" json:"statusCodes"` // TODO
							 | 
						||
| 
								 | 
							
									Timeout     shared.TimeDuration `yaml:"timeout" json:"timeout"`         // 超时时间 TODO
							 | 
						||
| 
								 | 
							
								}
							 |