Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CdnSeedServer ¶
type CdnSeedServer struct {
// contains filtered or unexported fields
}
CdnSeedServer is used to implement cdnsystem.SeederServer.
func NewCdnSeedServer ¶
func NewCdnSeedServer(cfg *config.Config, taskMgr daemon.SeedTaskMgr) (*CdnSeedServer, error)
NewManager returns a new Manager Object.
func (*CdnSeedServer) GetPieceTasks ¶
func (css *CdnSeedServer) GetPieceTasks(ctx context.Context, req *base.PieceTaskRequest) (piecePacket *base.PiecePacket, err error)
func (*CdnSeedServer) ObtainSeeds ¶
func (css *CdnSeedServer) ObtainSeeds(ctx context.Context, req *cdnsystem.SeedRequest, psc chan<- *cdnsystem.PieceSeed) (err error)
Click to show internal directories.
Click to hide internal directories.