package rpc

import (
	"gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec"
	hubrpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/hub"
	"gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool"
)

type Service struct {
	swWorker *exec.Worker
	stgPool  *pool.Pool
}

func NewService(swWorker *exec.Worker, stgPool *pool.Pool) *Service {
	return &Service{
		swWorker: swWorker,
		stgPool:  stgPool,
	}
}

var _ hubrpc.HubAPI = (*Service)(nil)
