neosproxy/proxy/vo.go
Frederik Löffert ceb8106914 feature/cache dependencies (#5)
* feat: add test for filesystem caching

* content cache dependencies
cms content loader: context with timeout
go builder version 1.13
2019-10-22 11:14:19 +02:00

39 lines
818 B
Go

package proxy
import (
"net/http/httputil"
"github.com/foomo/neosproxy/cache"
"github.com/foomo/neosproxy/config"
"github.com/foomo/neosproxy/logging"
"github.com/foomo/neosproxy/model"
"github.com/foomo/neosproxy/notifier"
"github.com/gorilla/mux"
content_cache "github.com/foomo/neosproxy/cache/content"
)
// Proxy struct definition
type Proxy struct {
log logging.Entry
maintenance bool
basicAuth []basicAuth
config *config.Config
workspaceCaches map[string]*cache.Cache
router *mux.Router
proxyHandler *httputil.ReverseProxy
contentCache *content_cache.Cache
status *model.Status
broker *notifier.Broker
servedStatsChan chan bool
servedStatsCounter uint // served requests per minute
}
type basicAuth struct {
user string
password string
}