github.com/micro/go-micro/v2@v2.9.1/util/http/options.go (about) 1 package http 2 3 import ( 4 "github.com/micro/go-micro/v2/registry" 5 ) 6 7 type Options struct { 8 Registry registry.Registry 9 } 10 11 type Option func(*Options) 12 13 func WithRegistry(r registry.Registry) Option { 14 return func(o *Options) { 15 o.Registry = r 16 } 17 }