29 lines
495 B
Go
29 lines
495 B
Go
package hydra
|
|
|
|
import(
|
|
"ur.gs/go-iscsi/common"
|
|
_ "ur.gs/go-iscsi/initiator"
|
|
_ "ur.gs/go-iscsi/target"
|
|
"net"
|
|
)
|
|
|
|
type Hydra struct {
|
|
config *Config
|
|
log *common.Logger // Shortcut
|
|
targetListener net.Listener
|
|
}
|
|
|
|
func New(targetListener net.Listener, config *Config) (*Hydra) {
|
|
return &Hydra{
|
|
config: config,
|
|
log: config.Logger,
|
|
targetListener: targetListener,
|
|
}
|
|
}
|
|
|
|
// Main loop
|
|
func (h *Hydra) Run() {
|
|
h.log.Debug("Entered hydra main loop")
|
|
h.log.Debug("Leaving hydra main loop")
|
|
}
|