Documentation
¶
Index ¶
Constants ¶
View Source
const (
CurrentEvents = 1
)
Variables ¶
This section is empty.
Functions ¶
func GetallAvblkEvent ¶
func GetallAvblkEvent(ctrl *controller.Controller) map[string]Event
Types ¶
type Aplusconf ¶
type Aplusconf struct {
// contains filtered or unexported fields
}
func (*Aplusconf) ExcuteComplete ¶
type Event ¶
type Event interface {
Name() string
Expired() bool
Price() int64
Excute(eventctx Eventctx) error
ExcuteComplete(eventctx Eventctx) error
Info() string
}
all events should implemet this interface after creating a event add it to GetallAvblkEvent
type Eventctx ¶
type Eventctx struct {
Ctx context.Context // required
Upx *update.Updatectx // required
Btns *botapi.Buttons // required
Alertsender common.Alertsender // required
Sendreciver common.Sendreciver // required
Callbackreciver common.Callbackreciver // required
Ctrl *controller.Controller // required by aplusconf
}
Click to show internal directories.
Click to hide internal directories.