Files
EdgeAPI/internal/rpc/services/service_node.go

18 lines
341 B
Go
Raw Normal View History

2020-07-24 09:17:48 +08:00
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
}