Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyHeader ¶
Types ¶
type FileSystemUpstream ¶
type FileSystemUpstream struct {
// contains filtered or unexported fields
}
func NewFileSystemUpstream ¶
func NewFileSystemUpstream(fs fs.FS) *FileSystemUpstream
func (*FileSystemUpstream) Get ¶
func (up *FileSystemUpstream) Get(requestPath, cacheKey string) (cachedResponse, error)
type HTTPUpstream ¶
type HTTPUpstream struct {
// contains filtered or unexported fields
}
func NewHTTPUpstream ¶
func NewHTTPUpstream(origin, cacheRoot string) *HTTPUpstream
func (*HTTPUpstream) Get ¶
func (s *HTTPUpstream) Get(requestPath, cacheKey string) (cachedResponse, error)
type ServerOptions ¶
Click to show internal directories.
Click to hide internal directories.