stream: finish basic streams exchange logics

This commit is contained in:
singchia
2024-03-01 12:00:11 +08:00
parent 998f3dfdfd
commit 44f2c8ae73
17 changed files with 245 additions and 108 deletions

20
pkg/apis/error.go Normal file
View File

@@ -0,0 +1,20 @@
package apis
import (
"errors"
"gorm.io/gorm"
)
var (
ErrEdgeNotOnline = errors.New("edge not online")
ErrServiceNotOnline = errors.New("service not online")
ErrRPCNotOnline = errors.New("rpc not online")
ErrTopicNotOnline = errors.New("topic not online")
ErrIllegalEdgeID = errors.New("illegal edgeID")
ErrRecordNotFound = gorm.ErrRecordNotFound
)
var (
ErrStrUseOfClosedConnection = "use of closed network connection"
)