go-micro: github.com/micro/go-micro/network/resolver/static Index | Files

package registry

import "github.com/micro/go-micro/network/resolver/static"

Package static is a static resolver

Index

Package Files

static.go

type Resolver Uses

type Resolver struct {
    // A static list of nodes
    Nodes []string
}

Resolver returns a static list of nodes. In the event the node list is not present it will return the name of the network passed in.

func (*Resolver) Resolve Uses

func (r *Resolver) Resolve(name string) ([]*resolver.Record, error)

Resolve returns the list of nodes

Package registry imports 1 packages (graph). Updated 2020-02-22. Refresh now. Tools for package owners.