gopherorg 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							33c88bd2bb 
							
						 
					 
					
						
						
							
							refactor: replace HasPrefix+TrimPrefix with CutPrefix ( #7095 )  
						
						... 
						
						
						
						Signed-off-by: gopherorg <gopherworld@icloud.com> 
						
						
					 
					
						2025-06-27 22:04:09 +03:00 
						 
				 
			
				
					
						
							
							
								Matt Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5a6b2f8d1d 
							
						 
					 
					
						
						
							
							events: Refactor; move Event into core, so core can emit events ( #6930 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.24.1, ubuntu-latest, 0, 1.24, linux) (push) Failing after 2m46s 
				
			 
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Has been skipped 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, aix) (push) Successful in 2m49s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, darwin) (push) Successful in 2m10s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, dragonfly) (push) Successful in 1m40s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, freebsd) (push) Successful in 1m50s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, illumos) (push) Successful in 1m49s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, linux) (push) Successful in 2m4s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, netbsd) (push) Successful in 2m7s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, openbsd) (push) Successful in 2m2s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, solaris) (push) Successful in 3m30s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, windows) (push) Successful in 2m56s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Failing after 1m17s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 2m18s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.24.1, macos-14, 0, 1.24, mac) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.24.1, windows-latest, True, 1.24, windows) (push) Has been cancelled 
				
			 
		
			
				
	Lint / lint (macos-14, mac) (push) Has been cancelled 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Has been cancelled 
				
			 
		
		
	 
 
	 
						
						* events: Refactor; move Event into core, so core can emit events
Requires some slight trickery to invert dependencies. We can't have the caddy package import the caddyevents package, because caddyevents imports caddy. Interface to the rescue!
Also add two new events, experimentally: started, and stopping. At the request of a sponsor.
Also rename "Filesystems" to "FileSystems" to match Go convention (unrelated to events, was just bugging me when I noticed it).
* Coupla bug fixes
* lol whoops 
						
						
					 
					
						2025-03-29 08:15:43 -06:00 
						 
				 
			
				
					
						
							
							
								Andreas Kohn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1d156527ea 
							
						 
					 
					
						
						
							
							events: Use WithLazy to prevent eager serialization of the event data ( #6671 )  
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Successful in 3m47s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, aix) (push) Successful in 2m20s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, darwin) (push) Successful in 1m33s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, dragonfly) (push) Successful in 1m47s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, freebsd) (push) Successful in 1m34s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, illumos) (push) Successful in 1m32s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, linux) (push) Successful in 1m32s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, netbsd) (push) Successful in 1m33s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, openbsd) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, solaris) (push) Successful in 1m29s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, windows) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, aix) (push) Successful in 2m17s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, darwin) (push) Successful in 1m19s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, dragonfly) (push) Successful in 1m16s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, freebsd) (push) Successful in 1m17s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, illumos) (push) Successful in 1m16s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, linux) (push) Successful in 1m15s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, netbsd) (push) Successful in 1m15s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, openbsd) (push) Successful in 1m16s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, solaris) (push) Successful in 1m17s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, windows) (push) Successful in 1m14s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Successful in 1m56s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 1m55s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.22.3, macos-14, 0, 1.22, mac) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.23.0, macos-14, 0, 1.23, mac) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.22.3, windows-latest, True, 1.22, windows) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.23.0, windows-latest, True, 1.23, windows) (push) Has been cancelled 
				
			 
		
			
				
	Lint / lint (macos-14, mac) (push) Has been cancelled 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Has been cancelled 
				
			 
		
		
	 
 
	 
						
						
					 
					
						2024-11-01 11:28:50 -06:00 
						 
				 
			
				
					
						
							
							
								Francis Lavoie 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2faeac0a10 
							
						 
					 
					
						
						
							
							chore: Use slices package where possible ( #6585 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.22.3, windows-latest, True, 1.22, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.23.0, windows-latest, True, 1.23, windows) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (macos-14, mac) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.22.3, ubuntu-latest, 0, 1.22, linux) (push) Failing after 1m34s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.23.0, ubuntu-latest, 0, 1.23, linux) (push) Failing after 1m25s 
				
			 
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Successful in 24s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, aix) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, darwin) (push) Successful in 1m32s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, dragonfly) (push) Successful in 1m41s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, freebsd) (push) Successful in 1m34s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, illumos) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, linux) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, netbsd) (push) Successful in 1m30s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, openbsd) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, solaris) (push) Successful in 1m32s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, windows) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, aix) (push) Successful in 1m24s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, darwin) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, dragonfly) (push) Successful in 1m20s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, freebsd) (push) Successful in 1m21s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, illumos) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, linux) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, netbsd) (push) Successful in 1m20s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, openbsd) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, solaris) (push) Successful in 1m24s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, windows) (push) Successful in 1m21s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Successful in 2m12s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 1m20s 
				
			 
		
		
	 
 
	 
						
						* chore: Use slices package where possible
* More, mostly using ContainsFunc
* Even more slice operations 
						
						
					 
					
						2024-09-25 14:30:56 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3f1add6c9f 
							
						 
					 
					
						
						
							
							events: Getters for event info ( close   #6377 )  
						
						
						
						
					 
					
						2024-06-06 07:11:28 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ba5811467a 
							
						 
					 
					
						
						
							
							events: Add debug log  
						
						
						
						
					 
					
						2024-04-26 18:59:08 -06:00 
						 
				 
			
				
					
						
							
							
								Jacob Gadikian 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d6f86cccf5 
							
						 
					 
					
						
						
							
							ci: use gci linter ( #5708 )  
						
						... 
						
						
						
						* use gofmput to format code
* use gci to format imports
* reconfigure gci
* linter autofixes
* rearrange imports a little
* export GOOS=windows golangci-lint run ./... --fix 
						
						
					 
					
						2023-08-14 09:41:15 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0950ba4f0b 
							
						 
					 
					
						
						
							
							events: Make event data exported  
						
						... 
						
						
						
						This could lead to bugs if handlers are not careful, but it is surely
useful. We'll see how it goes, what the feedback is like, etc. 
						
						
					 
					
						2022-09-19 16:20:58 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							e43b6d8178 
							
						 
					 
					
						
						
							
							core: Variadic Context.Logger(); soft deprecation  
						
						... 
						
						
						
						Ideally I'd just remove the parameter to caddy.Context.Logger(), but
this would break most Caddy plugins.
Instead, I'm making it variadic and marking it as partially deprecated.
In the future, I might completely remove the parameter once most
plugins have updated. 
						
						
					 
					
						2022-09-16 16:55:36 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3cd7437b3d 
							
						 
					 
					
						
						
							
							events: Tune logging and context cancellation  
						
						
						
						
					 
					
						2022-08-31 18:48:46 -06:00 
						 
				 
			
				
					
						
							
							
								Francis Lavoie 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d4d8bbcfc6 
							
						 
					 
					
						
						
							
							events: Implement event system ( #4912 )  
						
						... 
						
						
						
						Co-authored-by: Matt Holt <mholt@users.noreply.github.com> 
						
						
					 
					
						2022-08-31 15:01:30 -06:00