mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
18 lines
369 B
Go
18 lines
369 B
Go
package controllers
|
|
|
|
func NewActionControllerDelegate(id ControllerId, actions []Action) (d *ActionControllerDelegate) {
|
|
return &ActionControllerDelegate{
|
|
id: id,
|
|
actions: actions,
|
|
}
|
|
}
|
|
|
|
type ActionControllerDelegate struct {
|
|
id ControllerId
|
|
actions []Action
|
|
}
|
|
|
|
func (ctr *ActionControllerDelegate) Actions() (actions []Action) {
|
|
return ctr.actions
|
|
}
|