Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { SectorIDLk sync.RWMutex // 对应RPC调用GetSectorID,返回miner的sectorid SectorID uint64 SCFilePath string HeightLk sync.RWMutex Height int64 }
Service 定义我们的服务
func (*Service) GetHeight ¶
func (s *Service) GetHeight(ctx context.Context, req *pb.HeightRequest) (*pb.HeightResponse, error)
GetHeight 实现 GetHeight 方法
func (*Service) GetSectorID ¶
func (s *Service) GetSectorID(ctx context.Context, req *pb.SectorIDRequest) (*pb.SectorIDResponse, error)
GetSectorID 实现 GetSectorID 方法
Click to show internal directories.
Click to hide internal directories.