feat: initial commit
This commit is contained in:
24
proxy/main.go
Normal file
24
proxy/main.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user