Documentation
¶
Overview ¶
* Copyright (c) 2023 NetLOX Inc * * 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 ¶
- Variables
- func Init()
- func Off() error
- func PrometheusRegister(hook cmn.NetHookInterface)
- func RunActiveConntrackCount(ctx context.Context)
- func RunGetConntrack(ctx context.Context)
- func RunGetEndpoint(ctx context.Context)
- func RunGetLBRule(ctx context.Context)
- func RunHostCount(ctx context.Context)
- func RunLcusCalculator(ctx context.Context)
- func RunNewFlowCount(ctx context.Context)
- func RunProcessedStatistic(ctx context.Context)
- func RunResetCounts(ctx context.Context)
- func TurnOn() error
- type ConntrackKey
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConntrackInfo []cmn.CtInfo EndPointInfo []cmn.EndPointMod LBRuleInfo []cmn.LbRuleMod ConntrackStats map[ConntrackKey]Stats // Key [string] : sip dip pro sport dport PreFlowCounts int PromethusDefaultPeriod = 10 * time.Second PromethusPartialPeriod = (PromethusDefaultPeriod / 6) PromethusLongPeriod = (PromethusDefaultPeriod * 600) // To reset Period )
Functions ¶
func PrometheusRegister ¶
func PrometheusRegister(hook cmn.NetHookInterface)
func RunActiveConntrackCount ¶
func RunGetConntrack ¶
func RunGetEndpoint ¶
func RunGetLBRule ¶
func RunHostCount ¶
func RunLcusCalculator ¶
func RunNewFlowCount ¶
func RunProcessedStatistic ¶
func RunResetCounts ¶
Types ¶
type ConntrackKey ¶
type ConntrackKey string
func MakeConntrackKey ¶
func MakeConntrackKey(c cmn.CtInfo) (key ConntrackKey)
Click to show internal directories.
Click to hide internal directories.