fed

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: 15 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
	LookupInstitution(routingNumber string) (*client.InstitutionDetails, error)
}

func Cache

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

func NewCacheClient

func NewCacheClient(client Client, maxSize int) Client

func NewClient

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

type MockClient

type MockClient struct {
	Err     error
	Details *client.InstitutionDetails
}

func (*MockClient) LookupInstitution

func (c *MockClient) LookupInstitution(routingNumber string) (*client.InstitutionDetails, error)

func (*MockClient) Ping

func (c *MockClient) Ping() error

Jump to

Keyboard shortcuts

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