state

package
v0.0.0-...-8887655 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: ISC Imports: 7 Imported by: 0

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

func (*StateManager) FetchState

func (s *StateManager) FetchState(ctx context.Context, conf *pb.Config) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL