29 lines
464 B
Go
29 lines
464 B
Go
package srpc
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gitea.olznet.de/OlzNet/slog"
|
|
)
|
|
|
|
type LogErrorFunc func(format string, args ...interface{})
|
|
|
|
var logError = LogErrorFunc(slog.LOG_ERRORF)
|
|
|
|
func SetLogError(f LogErrorFunc) {
|
|
logError = f
|
|
}
|
|
|
|
type messageState uint8
|
|
|
|
const (
|
|
FREE messageState = 0
|
|
PENDING messageState = 1
|
|
)
|
|
|
|
const (
|
|
DefaultMaxClientRequests = int(128)
|
|
DefaultRequestTimeout = 30 * time.Second
|
|
DefaultSimultanousClientRequests = int(15)
|
|
)
|