mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
first commit
This commit is contained in:
19
protocols/protocolManager.go
Normal file
19
protocols/protocolManager.go
Normal file
@ -0,0 +1,19 @@
|
||||
package protocols
|
||||
|
||||
import "beelzebub/parser"
|
||||
|
||||
type ProtocolManager struct {
|
||||
strategy ServiceStrategy
|
||||
}
|
||||
|
||||
func (pm *ProtocolManager) InitServiceManager() *ProtocolManager {
|
||||
return &ProtocolManager{}
|
||||
}
|
||||
|
||||
func (pm *ProtocolManager) SetProtocolStrategy(strategy ServiceStrategy) {
|
||||
pm.strategy = strategy
|
||||
}
|
||||
|
||||
func (pm *ProtocolManager) InitService(beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration) error {
|
||||
return pm.strategy.Init(beelzebubServiceConfiguration)
|
||||
}
|
Reference in New Issue
Block a user