Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateManager ¶
type StateManager struct { Switches map[string]*SwitchState Conns map[string]*grpc.ClientConn Mu sync.RWMutex }
func NewManager ¶
func NewManager() *StateManager
type SwitchState ¶
type SwitchState struct { Name string Ports []*SwitchportState Stub dpb.SwitchControlClient }
func (*SwitchState) Fetch ¶
func (s *SwitchState) Fetch(ctx context.Context) error
type SwitchportState ¶
type SwitchportState struct {
Proto *dpb.SwitchPort
}
Click to show internal directories.
Click to hide internal directories.