Documentation ¶
Overview ¶
* Copyright 2017-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2017-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2017-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2017-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- func GetDot1QLayer(frame gopacket.Packet) *layers.Dot1Q
- func GetEthernetLayer(frame gopacket.Packet) *layers.Ethernet
- func GetHostIP(hostName string) string
- func GetInterfaceIP(ifName string) string
- func GetIpLayer(frame gopacket.Packet) *layers.IPv4
- func GetLastDot1QLayer(frame gopacket.Packet) *layers.Dot1Q
- func GetMacAddress(ifName string) net.HardwareAddr
- func GetUdpLayer(frame gopacket.Packet) *layers.UDP
- func Logger() *logManager
- type IntervalHandler
- type SortByPriority
Constants ¶
const ( STARTED _ExecutionState = iota STOPPED PAUSED RESUMED )
Variables ¶
This section is empty.
Functions ¶
func GetInterfaceIP ¶
func GetMacAddress ¶
func GetMacAddress(ifName string) net.HardwareAddr
Types ¶
type IntervalHandler ¶
type IntervalHandler struct { // Interval period in between each execution (in seconds?) Interval int // contains filtered or unexported fields }
func NewIntervalHandler ¶
func NewIntervalHandler(interval int, function func()) *IntervalHandler
NewIntervalHandler instantiates a new interval based function execution handler
func (*IntervalHandler) Pause ¶
func (h *IntervalHandler) Pause()
Pause interrupts the interval based function execution
func (*IntervalHandler) Resume ¶
func (h *IntervalHandler) Resume()
Resume continues the interval based function execution
func (*IntervalHandler) Start ¶
func (h *IntervalHandler) Start()
Start initiates the interval based function execution
func (*IntervalHandler) Stop ¶
func (h *IntervalHandler) Stop()
Stop terminates the interval based function execution
type SortByPriority ¶
type SortByPriority []*openflow_13.OfpFlowStats
func (SortByPriority) Len ¶
func (s SortByPriority) Len() int
func (SortByPriority) Less ¶
func (s SortByPriority) Less(i, j int) bool
func (SortByPriority) Swap ¶
func (s SortByPriority) Swap(i, j int)