blob: 5f7cc5631632e21c0646a8b5f5b8e9d7740754d0 [file] [log] [blame]
package state
import (
pb "code.hackerspace.pl/q3k/topo/proto/control"
)
type SwitchportState struct {
Proto *pb.SwitchPort
}
type SwitchState struct {
Name string
Ports []*SwitchportState
}
type StateManager struct {
Switches map[string]*SwitchState
}
func NewManager() *StateManager {
return &StateManager{
Switches: make(map[string]*SwitchState),
}
}