Skip to content

Commit

Permalink
refactor(项目): 暴露Scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Oct 28, 2024
1 parent 5a2b088 commit f1f322b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/core/scheduling.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package core

import (
"github.com/goexl/task/internal/internal/core"
)

type Scheduling = core.Scheduling
4 changes: 4 additions & 0 deletions scheduing.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ package task

import (
"github.com/goexl/task/internal/builder"
"github.com/goexl/task/internal/core"
"github.com/goexl/task/internal/kernel"
)

// Scheduling 计划
type Scheduling = core.Scheduling

func NewScheduling(target uint64, subtype kernel.Type) *builder.Scheduling {
return builder.NewScheduling(target, subtype)
}

0 comments on commit f1f322b

Please sign in to comment.