Gossip registry now a default registry

This commit is contained in:
Asim Aslam
2018-12-06 18:30:26 +00:00
committed by Vasiliy Tolstov
parent e5be708288
commit 544b4d3757
5 changed files with 14 additions and 682 deletions

View File

@@ -1,15 +0,0 @@
package gossip
import (
"context"
"github.com/micro/go-micro/registry"
)
type contextSecretKey struct{}
func SecretKey(k []byte) registry.Option {
return func(o *registry.Options) {
o.Context = context.WithValue(o.Context, contextSecretKey{}, k)
}
}