Files
neosproxy/proxy/vo.go

36 lines
679 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
basicAuth []basicAuth
config *config.Config
router *mux.Router
proxyHandler *httputil.ReverseProxy
sitemapCache *cache.Cache
contentCache *content_cache.Cache
status *model.Status
broker *notifier.Broker
}
type basicAuth struct {
user string
password string
}