Add skeleton of the proxy

This commit is contained in:
9seconds
2021-03-17 16:13:31 +03:00
parent 7955ac6a46
commit 23519913f2
7 changed files with 224 additions and 13 deletions
+13 -1
View File
@@ -8,7 +8,19 @@ import (
"time"
)
var ErrSecretEmpty = errors.New("secret is empty")
var (
ErrSecretEmpty = errors.New("secret is empty")
ErrSecretInvalid = errors.New("secret is invalid")
ErrNetworkIsNotDefined = errors.New("network is not defined")
ErrAntiReplayCacheIsNotDefined = errors.New("anti-replay cache is not defined")
ErrIPBlocklistIsNotDefined = errors.New("ip blocklist is not defined")
ErrEventStreamIsNotDefined = errors.New("event stream is not defined")
ErrLoggerIsNotDefined = errors.New("logger is not defined")
)
const (
DefaultConcurrency = 4096
)
type Network interface {
Dial(network, address string) (net.Conn, error)