provider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientProvider

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

ClientProvider implements mock protocol client provider.

func New

func New() *ClientProvider

New creates new protocol client provider.

func (*ClientProvider) Add

func (m *ClientProvider) Add(namespace string, pc protocol.Client)

Add adds protocol client for namespace.

func (*ClientProvider) ForNamespace

func (m *ClientProvider) ForNamespace(namespace string) (protocol.Client, error)

ForNamespace will return protocol client for that namespace.

Jump to

Keyboard shortcuts

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