Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStorage ¶
type MapStorage interface { Insert(key *model.RedirectRequest, value model.RedirectResponse) Find(key *model.RedirectRequest) (model.RedirectResponse, bool) }
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy contains service logic for proxying HTTP requests.
func (Proxy) Redirect ¶
func (p Proxy) Redirect(ctx context.Context, request model.RedirectRequest) (model.RedirectResponse, error)
Redirect sends an HTTP request to the specified URL, parses the response and returns the parsed response or error.
Click to show internal directories.
Click to hide internal directories.