feat: initial commit

This commit is contained in:
 Ilya Atamas
2019-04-16 15:05:21 +03:00
commit 4dad509dc6
11 changed files with 307 additions and 0 deletions

24
proxy/main.go Normal file
View File

@@ -0,0 +1,24 @@
package proxy
import (
"net/http"
"time"
"github.com/go-redis/redis"
)
type Proxy struct {
RedisClient *redis.Client
HttpClient *http.Client
GetOptions func() (Options, error)
}
type Options struct {
RedisPrefix string
RedisExpireTimeout time.Duration
UpstreamAddress string
ReplaceAddress string
StaticServerAddress string
}