Files
EdgeAPI/internal/rpc/node/service.go

17 lines
273 B
Go
Raw Normal View History

2020-07-21 17:27:00 +08:00
package node
import (
"context"
"github.com/iwind/TeaGo/logs"
)
type Service struct {
}
2020-07-22 22:17:53 +08:00
func (this *Service) Config(ctx context.Context, req *ConfigRequest) (*ConfigResponse, error) {
2020-07-21 17:27:00 +08:00
logs.Println("you called me")
2020-07-22 22:17:53 +08:00
return &ConfigResponse{
Id: req.NodeId,
}, nil
2020-07-21 17:27:00 +08:00
}