manual

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2017 License: Apache-2.0 Imports: 3 Imported by: 147

Documentation

Overview

Package manual contains a resolver for testing purpose only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

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

func GenerateAndRegisterManualResolver

func GenerateAndRegisterManualResolver() (*Resolver, func())

GenerateAndRegisterManualResolver generates a random scheme and a Resolver with it. It also regieter this Resolver. It returns the Resolver and a cleanup function to unregister it.

func NewBuilderWithScheme

func NewBuilderWithScheme(scheme string) *Resolver

NewBuilderWithScheme creates a new test resolver builder with the given scheme.

func (*Resolver) Build

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

func (*Resolver) Close

func (*Resolver) Close()

Close is a noop for Resolver.

func (*Resolver) NewAddress

func (r *Resolver) NewAddress(addrs []resolver.Address)

NewAddress calls cc.NewAddress.

func (*Resolver) NewServiceConfig

func (r *Resolver) NewServiceConfig(sc string)

NewServiceConfig calls cc.NewServiceConfig.

func (*Resolver) ResolveNow

func (*Resolver) ResolveNow(o resolver.ResolveNowOption)

ResolveNow is a noop for Resolver.

func (*Resolver) Scheme

func (r *Resolver) Scheme() string

Scheme returns the test scheme.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL