This commit is contained in:
孟帅
2023-03-13 17:00:46 +08:00
parent ab912d0ba6
commit 1acc6d17c4
51 changed files with 2777 additions and 1024 deletions

View File

@@ -0,0 +1,32 @@
// ================================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
)
type (
ITCPServer interface {
Start(ctx context.Context)
Stop(ctx context.Context)
}
)
var (
localTCPServer ITCPServer
)
func TCPServer() ITCPServer {
if localTCPServer == nil {
panic("implement not found for interface ITCPServer, forgot register?")
}
return localTCPServer
}
func RegisterTCPServer(i ITCPServer) {
localTCPServer = i
}