initial commit

This commit is contained in:
Matthias Fulz 2021-08-02 23:41:54 +02:00
parent a677da4337
commit 9736631cbb
6 changed files with 20 additions and 4 deletions

View File

@ -1,8 +1,9 @@
package srpc
import (
"olznet.de/slog"
"time"
"gitea.olznet.de/OlzNet/slog"
)
type LogErrorFunc func(format string, args ...interface{})

View File

@ -2,7 +2,8 @@ package srpc
import (
"io"
"olznet.de/ssob"
"gitea.olznet.de/OlzNet/ssob"
)
type IEncoder interface {

8
go.mod Normal file
View File

@ -0,0 +1,8 @@
module gitea.olznet.de/OlzNet/srpc
go 1.16
require (
gitea.olznet.de/OlzNet/slog v1.2.4
gitea.olznet.de/OlzNet/ssob v1.0.0
)

4
go.sum Normal file
View File

@ -0,0 +1,4 @@
gitea.olznet.de/OlzNet/slog v1.2.4 h1:22/+57/2J7EnFQAwT6xRENgvPeI2RwSmOWuXwkujpf4=
gitea.olznet.de/OlzNet/slog v1.2.4/go.mod h1:xHB0ZnXIXFdnISKpWvDnrBSl4dGB3rzQji36n2sbJXg=
gitea.olznet.de/OlzNet/ssob v1.0.0 h1:IEKaiXdzEsWmuy0SsWXf0LVmQbbbkX2DnEGdnbW/mMY=
gitea.olznet.de/OlzNet/ssob v1.0.0/go.mod h1:QgB9baLoAJVgFpuD0QECi7WZ9uRfWPeunKU2tMZDvDQ=

3
rpc.go
View File

@ -3,9 +3,10 @@ package srpc
import (
"bytes"
"errors"
"olznet.de/slog"
"reflect"
"sync"
"gitea.olznet.de/OlzNet/slog"
)
type RPCStatus uint8

View File

@ -5,10 +5,11 @@ import (
"fmt"
"io"
"net"
"olznet.de/slog"
"sync"
"sync/atomic"
"time"
"gitea.olznet.de/OlzNet/slog"
)
type serverMessage struct {