mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 21:45:11 +00:00 
			
		
		
		
	Moves vendoring over to Go modules. Fixes issues found by Go Vet in Go 1.16 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
		
			
				
	
	
		
			16 lines
		
	
	
		
			457 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			457 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
| package events
 | |
| 
 | |
| // Event marks items that can be sent as events.
 | |
| type Event interface{}
 | |
| 
 | |
| // Sink accepts and sends events.
 | |
| type Sink interface {
 | |
| 	// Write an event to the Sink. If no error is returned, the caller will
 | |
| 	// assume that all events have been committed to the sink. If an error is
 | |
| 	// received, the caller may retry sending the event.
 | |
| 	Write(event Event) error
 | |
| 
 | |
| 	// Close the sink, possibly waiting for pending events to flush.
 | |
| 	Close() error
 | |
| }
 |