Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientResolver ¶
func NewClientResolver(httpAddr, dnsAddr string, config *quantum.ConnConfig) quantum.ClientResolver
NewClientResolver creates a consul client resolver
func NewRegistrator ¶
func NewRegistrator(httpAddr string, lgr lager.Lager) quantum.Registrator
NewRegistrator creates a Registrator
Types ¶
type ClientResolver ¶
type ClientResolver struct {
// contains filtered or unexported fields
}
ClientResolver is a client resolver that leverages Consul's service discovery.
func (*ClientResolver) Resolve ¶
func (cr *ClientResolver) Resolve(request quantum.ResolveRequest) (quantum.ClientConn, error)
Resolve resolves a ClientConn using a ResolveRequest
type Registrator ¶
type Registrator struct {
// contains filtered or unexported fields
}
Registrator uses consul to implement quantum.Registrator
func (*Registrator) Deregister ¶
func (r *Registrator) Deregister() error
Deregister deregisters our serviceIDs with Consul
Click to show internal directories.
Click to hide internal directories.