usecase

package
v0.0.0-...-772db3a Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {
	Execute(ctx context.Context, query string) (interface{}, error)
}

type LocaleFinder

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

func NewLocaleFinder

func NewLocaleFinder(httpClient *http.Client) *LocaleFinder

func (*LocaleFinder) Execute

func (l *LocaleFinder) Execute(ctx context.Context, cep string) (interface{}, error)

type MockContext

type MockContext struct{}

func (*MockContext) Deadline

func (mc *MockContext) Deadline() (deadline time.Time, ok bool)

func (*MockContext) Done

func (mc *MockContext) Done() <-chan struct{}

func (*MockContext) Err

func (mc *MockContext) Err() error

func (*MockContext) Value

func (mc *MockContext) Value(key interface{}) interface{}

type MockRoundTripper

type MockRoundTripper struct {
	mock.Mock
}

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type WeatherFinder

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

func NewWeatherFinder

func NewWeatherFinder(httpClient *http.Client) *WeatherFinder

func (*WeatherFinder) Execute

func (w *WeatherFinder) Execute(ctx context.Context, cep string) (interface{}, error)

Jump to

Keyboard shortcuts

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