Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7a1db2c16 | ||
|
|
c8cf318faa |
@@ -1,15 +1,13 @@
|
||||
package contracts
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/riverqueue/river"
|
||||
)
|
||||
|
||||
type CronJob interface {
|
||||
Description() string
|
||||
Periodic() time.Duration
|
||||
JobArgs() []river.JobArgs
|
||||
InsertOpts() *river.InsertOpts
|
||||
Kind() string
|
||||
Periodic() river.PeriodicSchedule
|
||||
JobArgs() river.JobArgs
|
||||
InsertOpts() river.InsertOpts
|
||||
RunOnStart() bool
|
||||
}
|
||||
|
||||
@@ -7,3 +7,8 @@ type EventHandler interface {
|
||||
PublishToTopic() string
|
||||
Handler(msg *message.Message) ([]*message.Message, error)
|
||||
}
|
||||
|
||||
type EventPublisher interface {
|
||||
Topic() string
|
||||
Marshal() ([]byte, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user