mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
阶段性提交
This commit is contained in:
17
internal/rpc/services/service_node.go
Normal file
17
internal/rpc/services/service_node.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/rpc/pb"
|
||||
"github.com/iwind/TeaGo/logs"
|
||||
)
|
||||
|
||||
type NodeService struct {
|
||||
}
|
||||
|
||||
func (this *NodeService) Config(ctx context.Context, req *pb.ConfigRequest) (*pb.ConfigResponse, error) {
|
||||
logs.Println("you called me")
|
||||
return &pb.ConfigResponse{
|
||||
Id: req.NodeId,
|
||||
}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user