watchman

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Ping() error

	Search(ctx context.Context, name string, requestID string) (*watchman.OfacSdn, error)
}

func NewClient

func NewClient(logger log.Logger, endpoint string, debug bool) Client

NewClient returns an WatchmanClient instance and will default to using the Watchman address in moov's standard Kubernetes setup.

endpoint is a DNS record responsible for routing us to an Watchman instance. Example: http://watchman.apps.svc.cluster.local:8080

type TestWatchmanClient

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

func NewTestWatchmanClient

func NewTestWatchmanClient(sdn *watchman.OfacSdn, err error) *TestWatchmanClient

func (*TestWatchmanClient) Ping

func (c *TestWatchmanClient) Ping() error

func (*TestWatchmanClient) Search

Jump to

Keyboard shortcuts

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