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

package micro

import "github.com/micro/go-micro/api/resolver/micro"

Package micro provides a micro rpc resolver which prefixes a namespace

Index

Package Files

micro.go route.go

func NewResolver Uses

func NewResolver(opts ...resolver.Option) resolver.Resolver

NewResolver creates a new micro resolver

type Resolver Uses

type Resolver struct {
    Options resolver.Options
}

default resolver for legacy purposes it uses proxy routing to resolve names /foo becomes namespace.foo /v1/foo becomes namespace.v1.foo

func (*Resolver) Resolve Uses

func (r *Resolver) Resolve(req *http.Request) (*resolver.Endpoint, error)

func (*Resolver) String Uses

func (r *Resolver) String() string

Package micro imports 5 packages (graph) and is imported by 9 packages. Updated 2020-02-01. Refresh now. Tools for package owners.