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

package http

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

Package http resolves names to network addresses using a http request

Index

Package Files

http.go

type Resolver Uses

type Resolver struct {
    // If not set, defaults to http
    Proto string

    // Path sets the path to lookup. Defaults to /network
    Path string

    // Host url to use for the query
    Host string
}

Resolver is a HTTP network resolver

func (*Resolver) Resolve Uses

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

Resolve assumes ID is a domain which can be converted to a http://name/network request

type Response Uses

type Response struct {
    Nodes []*resolver.Record `json:"nodes,omitempty"`
}

Package http imports 6 packages (graph) and is imported by 2 packages. Updated 2020-02-09. Refresh now. Tools for package owners.