You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

chunklogic.go 512 B

12345678910111213141516171819202122232425262728
  1. package image
  2. import (
  3. "context"
  4. "github.com/zeromicro/go-zero/core/logx"
  5. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
  6. )
  7. type ChunkLogic struct {
  8. logx.Logger
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. }
  12. func NewChunkLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChunkLogic {
  13. return &ChunkLogic{
  14. Logger: logx.WithContext(ctx),
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (l *ChunkLogic) Chunk() error {
  20. // todo: add your logic here and delete this line
  21. return nil
  22. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.