mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
16 lines
295 B
Go
16 lines
295 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"runbin/internal/model"
|
|
)
|
|
|
|
type PasteRepository interface {
|
|
Save(p *model.Paste) error
|
|
Update(p *model.Paste) error
|
|
GetByID(id string) (*model.Paste, bool)
|
|
DispatchExecutionTask(id string) error
|
|
GetTask(ctx context.Context) (*model.Paste, error)
|
|
}
|
|
|