mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
18 lines
341 B
Go
18 lines
341 B
Go
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
|
|
}
|