http

package
v0.0.0-...-ac81adf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorizer

func NewAuthorizer(client HTTPGetter, l logger.Logger) usecase.Authorizer

NewAuthorizer creates new authorizer with its dependencies

func NewNotifier

func NewNotifier(c HTTPGetter, p queue.Producer, l logger.Logger) usecase.Notifier

NewNotifier creates new notifier with its dependencies

Types

type HTTPClient

type HTTPClient interface {
	HTTPGetter
}

HTTPClient is the http wrapper for the application

type HTTPGetter

type HTTPGetter interface {
	// Get executes a GET http request
	Get(url string) (*http.Response, error)
}

HTTPGetter holds fields and dependencies for executing a http GET request

Jump to

Keyboard shortcuts

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