transport

package
v0.0.0-...-b53531c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5Hash

func MD5Hash(text string) string

Types

type CacheRoundTripper

type CacheRoundTripper struct {
	Proxied http.RoundTripper
	Cache   cache.Cache
}

func (*CacheRoundTripper) RoundTrip

func (c *CacheRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type CachedResponse

type CachedResponse struct {
	StatusCode int                 `json:"status_code"`
	Headers    map[string][]string `json:"headers"`
	Body       string              `json:"body"`
}

CachedResponse represents the structure of the cached HTTP response.

Jump to

Keyboard shortcuts

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