Documentation ¶
Overview ¶
Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)
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 2021-2024 Thorben Krüger (thorben.krueger@ovgu.de)
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 2021-2024 Thorben Krüger (thorben.krueger@ovgu.de)
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 ¶
- func NewStats(state *State) extra.MultiConnectionTracer
- type LJValue
- type LuaSelector
- func (s *LuaSelector) Close(local, remote pan.UDPAddr) error
- func (s *LuaSelector) Initialize(prefs map[string]string, local, remote pan.UDPAddr, paths []*pan.Path) error
- func (s *LuaSelector) JSON(indata []byte) (outdata []byte, err error)
- func (s *LuaSelector) Path(local, remote pan.UDPAddr) (*pan.Path, error)
- func (s *LuaSelector) PathDown(local, remote pan.UDPAddr, fp pan.PathFingerprint, pi pan.PathInterface) error
- func (s *LuaSelector) Refresh(local, remote pan.UDPAddr, paths []*pan.Path) error
- func (s *LuaSelector) SetPreferences(prefs map[string]string, local, remote pan.UDPAddr) error
- type State
- type Stats
- func (s *Stats) AcknowledgedPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, ...) error
- func (s *Stats) BufferedPacket(local, remote *pan.UDPAddr, ptype logging.PacketType) error
- func (s *Stats) Close(local, remote *pan.UDPAddr) error
- func (s *Stats) ClosedConnection(local, remote *pan.UDPAddr, err error) error
- func (s *Stats) Debug(local, remote *pan.UDPAddr, name, msg string) error
- func (s *Stats) DroppedEncryptionLevel(local, remote *pan.UDPAddr, level logging.EncryptionLevel) error
- func (s *Stats) DroppedKey(local, remote *pan.UDPAddr, generation logging.KeyPhase) error
- func (s *Stats) DroppedPacket(local, remote *pan.UDPAddr, ptype logging.PacketType, size logging.ByteCount, ...) error
- func (s *Stats) LossTimerCanceled(local, remote *pan.UDPAddr) error
- func (s *Stats) LossTimerExpired(local, remote *pan.UDPAddr, ttype logging.TimerType, ...) error
- func (s *Stats) LostPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, ...) error
- func (s *Stats) NegotiatedVersion(local, remote *pan.UDPAddr, chosen logging.VersionNumber, ...) error
- func (s *Stats) ReceivedPacket(local, remote *pan.UDPAddr, hdr *logging.ExtendedHeader, ...) error
- func (s *Stats) ReceivedRetry(local, remote *pan.UDPAddr, hdr *logging.Header) error
- func (s *Stats) ReceivedTransportParameters(local, remote *pan.UDPAddr, parameters *logging.TransportParameters) error
- func (s *Stats) ReceivedVersionNegotiationPacket(local, remote *pan.UDPAddr, hdr *logging.Header, ...) error
- func (s *Stats) RestoredTransportParameters(local, remote *pan.UDPAddr, parameters *logging.TransportParameters) error
- func (s *Stats) SentPacket(local, remote *pan.UDPAddr, hdr *logging.ExtendedHeader, ...) error
- func (s *Stats) SentTransportParameters(local, remote *pan.UDPAddr, parameters *logging.TransportParameters) error
- func (s *Stats) SetLossTimer(local, remote *pan.UDPAddr, ttype logging.TimerType, ...) error
- func (s *Stats) StartedConnection(local, remote *pan.UDPAddr, srcConnID, destConnID logging.ConnectionID) error
- func (s *Stats) TracerForConnection(tracer_id uint64, p logging.Perspective, odcid logging.ConnectionID) error
- func (s *Stats) UpdatedCongestionState(local, remote *pan.UDPAddr, state logging.CongestionState) error
- func (s *Stats) UpdatedKey(local, remote *pan.UDPAddr, generation logging.KeyPhase, rmte bool) error
- func (s *Stats) UpdatedKeyFromTLS(local, remote *pan.UDPAddr, level logging.EncryptionLevel, ...) error
- func (s *Stats) UpdatedMetrics(local, remote *pan.UDPAddr, rttStats *extra.RTTStats, ...) error
- func (s *Stats) UpdatedPTOCount(local, remote *pan.UDPAddr, value uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStats ¶
func NewStats(state *State) extra.MultiConnectionTracer
Types ¶
type LJValue ¶ added in v0.1.0
LJValue is an (un)marshallable container for gopher-lua LValue, supports Lua-to-JSON, JSON-to-Lua.
func NewLJValue ¶ added in v0.1.0
NewLJValue wraps given lua lvalue
func (LJValue) MarshalJSON ¶ added in v0.1.0
MarshalJSON returns a recursive JSON encoding of the lua.LValue wrapped by lv
func (*LJValue) UnmarshalJSON ¶ added in v0.1.0
UnmarshalJSON (re)sets *lv to a new lua Datastructure parsed from b. In case of complex types represented in b, it does so recursively. Implementation detail: In case of errors, *lv will remain unmodified.
type LuaSelector ¶
type LuaSelector struct { *State // contains filtered or unexported fields }
func NewMultiSelector ¶
func NewMultiSelector(state *State) *LuaSelector
func NewLuaSelector(script string) (*LuaSelector, error) { func NewMultiSelector(state *State) extra.MultiSelector {
func (*LuaSelector) Initialize ¶
func (*LuaSelector) JSON ¶
func (s *LuaSelector) JSON(indata []byte) (outdata []byte, err error)
Call JSON() function in the underlying Lua module with indata automatically unmarshalled from JSON to Lua table. Marshal returned Lua data automatically to JSON, return result as outdata
func (*LuaSelector) PathDown ¶
func (s *LuaSelector) PathDown(local, remote pan.UDPAddr, fp pan.PathFingerprint, pi pan.PathInterface) error
func (*LuaSelector) SetPreferences ¶
type State ¶
func (*State) LoadScript
deprecated
type Stats ¶
type Stats struct { *State // contains filtered or unexported fields }
func (*Stats) AcknowledgedPacket ¶
func (s *Stats) AcknowledgedPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, num logging.PacketNumber) error
func (*Stats) BufferedPacket ¶
func (*Stats) ClosedConnection ¶
func (*Stats) DroppedEncryptionLevel ¶
func (*Stats) DroppedKey ¶
func (*Stats) DroppedPacket ¶
func (s *Stats) DroppedPacket(local, remote *pan.UDPAddr, ptype logging.PacketType, size logging.ByteCount, reason logging.PacketDropReason) error
func (*Stats) LossTimerCanceled ¶
func (*Stats) LossTimerExpired ¶
func (*Stats) LostPacket ¶
func (s *Stats) LostPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, num logging.PacketNumber, reason logging.PacketLossReason) error
func (*Stats) NegotiatedVersion ¶
func (s *Stats) NegotiatedVersion(local, remote *pan.UDPAddr, chosen logging.VersionNumber, clientVersions, serverVersions []logging.VersionNumber) error
func (*Stats) ReceivedPacket ¶
func (*Stats) ReceivedRetry ¶
func (*Stats) ReceivedTransportParameters ¶
func (*Stats) ReceivedVersionNegotiationPacket ¶
func (*Stats) RestoredTransportParameters ¶
func (*Stats) SentPacket ¶
func (*Stats) SentTransportParameters ¶
func (*Stats) SetLossTimer ¶
func (*Stats) StartedConnection ¶
func (*Stats) TracerForConnection ¶
func (s *Stats) TracerForConnection(tracer_id uint64, p logging.Perspective, odcid logging.ConnectionID) error
func (*Stats) UpdatedCongestionState ¶
func (*Stats) UpdatedKey ¶
func (*Stats) UpdatedKeyFromTLS ¶
func (s *Stats) UpdatedKeyFromTLS(local, remote *pan.UDPAddr, level logging.EncryptionLevel, p logging.Perspective) error