e071084ebe
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
18 lines
232 B
Go
18 lines
232 B
Go
package http
|
|
|
|
import (
|
|
"go-micro.dev/v6/registry"
|
|
)
|
|
|
|
type Options struct {
|
|
Registry registry.Registry
|
|
}
|
|
|
|
type Option func(*Options)
|
|
|
|
func WithRegistry(r registry.Registry) Option {
|
|
return func(o *Options) {
|
|
o.Registry = r
|
|
}
|
|
}
|