You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							496 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							496 B
						
					
					
				
								package models
							 | 
						|
								
							 | 
						|
								import (
							 | 
						|
									"context"
							 | 
						|
									"time"
							 | 
						|
								)
							 | 
						|
								
							 | 
						|
								type DriverProvider interface {
							 | 
						|
									Provide(kind DriverKind) (Driver, error)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								type Driver interface {
							 | 
						|
									SearchBridge(ctx context.Context, address string, dryRun bool) ([]Bridge, error)
							 | 
						|
									SearchDevices(ctx context.Context, bridge Bridge, timeout time.Duration) ([]Device, error)
							 | 
						|
									Consume(ctx context.Context, bridge Bridge, devices []Device, ch chan Event) (chan<- struct{}, error)
							 | 
						|
									Publish(ctx context.Context, bridge Bridge, devices []Device) error
							 | 
						|
								}
							 |