mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-30 18:22:49 -04:00 
			
		
		
		
	* Initial concept for pluggable storage (sans tests and docs) * Add TLS storage docs, test harness, and minor clean up from code review * Fix issue with caddymain's temporary moveStorage * Formatting improvement on struct array literal by removing struct name * Pluggable storage changes: * Change storage interface to persist all site or user data in one call * Add lock/unlock calls for renewal and cert obtaining * Key fields on composite literals
		
			
				
	
	
		
			13 lines
		
	
	
		
			222 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			222 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package storagetest
 | |
| 
 | |
| import "testing"
 | |
| 
 | |
| func TestMemoryStorage(t *testing.T) {
 | |
| 	storage := NewInMemoryStorage()
 | |
| 	storageTest := &StorageTest{
 | |
| 		Storage:  storage,
 | |
| 		PostTest: storage.Clear,
 | |
| 	}
 | |
| 	storageTest.Test(t, false)
 | |
| }
 |