mirror of
https://github.com/nabbar/golib.git
synced 2025-09-27 12:12:14 +08:00
Package Socket:
- fix tcp,udp,unix socket - add socket unixgram for session less unix socket - optmize process & code - add some standalone test for server / client (add example server config for rsyslog) Package Network/Protocol: - add unixgram protocol Package Errors: - fix bug in loop to prevent circular include
This commit is contained in:
@@ -30,7 +30,6 @@ import (
|
||||
"context"
|
||||
"io"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
libtls "github.com/nabbar/golib/certificates"
|
||||
)
|
||||
@@ -84,9 +83,6 @@ type Server interface {
|
||||
RegisterFuncInfo(f FuncInfo)
|
||||
RegisterFuncInfoServer(f FuncInfoSrv)
|
||||
|
||||
SetReadTimeout(d time.Duration)
|
||||
SetWriteTimeout(d time.Duration)
|
||||
|
||||
SetTLS(enable bool, config libtls.TLSConfig) error
|
||||
Listen(ctx context.Context) error
|
||||
Shutdown()
|
||||
|
Reference in New Issue
Block a user