fixed loadbalancer with idlewatcher, fixed reload issue

This commit is contained in:
yusing
2024-10-20 09:46:02 +08:00
parent 01ffe0d97c
commit a278711421
78 changed files with 906 additions and 609 deletions

View File

@@ -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)

View File

@@ -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
}