qbtrade/pkg/interact/default.go

22 lines
399 B
Go
Raw Normal View History

2024-06-27 14:42:38 +00:00
package interact
import "context"
var defaultInteraction = New()
func Default() *Interact {
return defaultInteraction
}
func AddMessenger(messenger Messenger) {
defaultInteraction.AddMessenger(messenger)
}
func AddCustomInteraction(custom CustomInteraction) {
defaultInteraction.AddCustomInteraction(custom)
}
func Start(ctx context.Context) error {
return defaultInteraction.Start(ctx)
}