bbgo_origin/pkg/interact/default.go

22 lines
399 B
Go
Raw Normal View History

2022-01-14 03:57:01 +00:00
package interact
import "context"
var defaultInteraction = New()
func Default() *Interact {
return defaultInteraction
}
2022-01-16 11:06:26 +00:00
func AddMessenger(messenger Messenger) {
defaultInteraction.AddMessenger(messenger)
2022-01-14 03:57:01 +00:00
}
func AddCustomInteraction(custom CustomInteraction) {
2022-01-14 18:52:46 +00:00
defaultInteraction.AddCustomInteraction(custom)
2022-01-14 03:57:01 +00:00
}
func Start(ctx context.Context) error {
return defaultInteraction.Start(ctx)
}