Documentation ¶
Index ¶
- type CacheStorage
- type CacheableProxy
- func (proxy *CacheableProxy) Director(req *http.Request)
- func (proxy *CacheableProxy) Handler(w http.ResponseWriter, r *http.Request)
- func (proxy *CacheableProxy) InterceptFile(resp *http.Response) error
- func (proxy *CacheableProxy) Listen(ctx context.Context, startFeedback chan string) error
- func (proxy *CacheableProxy) RedirectRoundTripper() http.RoundTripper
- func (proxy *CacheableProxy) ServeHost() string
- type FileEnvelope
- type FileInformation
- type FileMIME
- type KVStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStorage ¶
type CacheStorage = KVStorage[FileInformation, string]
type CacheableProxy ¶
type CacheableProxy struct {
// contains filtered or unexported fields
}
func New ¶
func New(storage CacheStorage, targetURL string, port uint16) (*CacheableProxy, error)
func (*CacheableProxy) Director ¶
func (proxy *CacheableProxy) Director(req *http.Request)
func (*CacheableProxy) Handler ¶
func (proxy *CacheableProxy) Handler(w http.ResponseWriter, r *http.Request)
func (*CacheableProxy) InterceptFile ¶
func (proxy *CacheableProxy) InterceptFile(resp *http.Response) error
func (*CacheableProxy) Listen ¶
func (proxy *CacheableProxy) Listen( ctx context.Context, startFeedback chan string, ) error
func (*CacheableProxy) RedirectRoundTripper ¶
func (proxy *CacheableProxy) RedirectRoundTripper() http.RoundTripper
func (*CacheableProxy) ServeHost ¶
func (proxy *CacheableProxy) ServeHost() string
type FileEnvelope ¶
type FileInformation ¶
Click to show internal directories.
Click to hide internal directories.