kratos: Index | Files | Directories

package resolver

import ""


Package Files

resolver.go util.go


const (
    // Scheme is the scheme of discovery address
    Scheme = "grpc"

func Register Uses

func Register(b naming.Builder)

Register register resolver builder if nil.

func RegisterTarget Uses

func RegisterTarget(target *string, discoveryID string)

RegisterTarget will register grpc discovery mock address flag

func Set Uses

func Set(b naming.Builder)

Set override any registered builder

type Builder Uses

type Builder struct {

Builder is also a resolver builder. It's build() function always returns itself.

func (*Builder) Build Uses

func (b *Builder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)

Build returns itself for Resolver, because it's both a builder and a resolver.

type Resolver Uses

type Resolver struct {
    // contains filtered or unexported fields

Resolver watches for the updates on the specified target. Updates include address updates and service config updates.

func (*Resolver) Close Uses

func (r *Resolver) Close()

Close is a noop for Resolver.

func (*Resolver) ResolveNow Uses

func (r *Resolver) ResolveNow(o resolver.ResolveNowOptions)

ResolveNow is a noop for Resolver.



Package resolver imports 13 packages (graph) and is imported by 4 packages. Updated 2020-04-21. Refresh now. Tools for package owners.