mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
fixed loadbalancer with idlewatcher, fixed reload issue
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
type CIDR net.IPNet
|
||||
|
||||
func (cidr *CIDR) ConvertFrom(val any) E.NestedError {
|
||||
func (cidr *CIDR) ConvertFrom(val any) E.Error {
|
||||
cidrStr, ok := val.(string)
|
||||
if !ok {
|
||||
return E.TypeMismatch[string](val)
|
||||
|
||||
@@ -7,13 +7,7 @@ import (
|
||||
|
||||
type Stream interface {
|
||||
fmt.Stringer
|
||||
net.Listener
|
||||
Setup() error
|
||||
Accept() (conn StreamConn, err error)
|
||||
Handle(conn StreamConn) error
|
||||
CloseListeners()
|
||||
}
|
||||
|
||||
type StreamConn interface {
|
||||
RemoteAddr() net.Addr
|
||||
Close() error
|
||||
Handle(conn net.Conn) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user