18 lines
		
	
	
		
			242 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			242 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package http
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/micro/go-micro/registry"
 | 
						|
)
 | 
						|
 | 
						|
type Options struct {
 | 
						|
	Registry registry.Registry
 | 
						|
}
 | 
						|
 | 
						|
type Option func(*Options)
 | 
						|
 | 
						|
func WithRegistry(r registry.Registry) Option {
 | 
						|
	return func(o *Options) {
 | 
						|
		o.Registry = r
 | 
						|
	}
 | 
						|
}
 |