Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFormat(f Format, newFunc NewFormatFunc)
- type Format
- type FstrmUnmarshaler
- type InputServer
- func NewDnstapInputServer(options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
- func NewDtapFrameInputServer(options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
- func NewInputServer(f Format, options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
- type NewFormatFunc
Constants ¶
View Source
const DefaultFormat = "DNSTAP"
Variables ¶
View Source
var (
TotalDecordError = promauto.NewCounter(prometheus.CounterOpts{
Name: "dtap_input_error_frame_total",
Help: "The total number of input error frames",
})
)
Functions ¶
func RegisterFormat ¶
func RegisterFormat(f Format, newFunc NewFormatFunc)
Types ¶
type Format ¶
type Format string
const FormatDNSTAP Format = "DNSTAP"
const FormatDtapFrame Format = "DtapFrame"
type FstrmUnmarshaler ¶
type FstrmUnmarshaler func([]byte) (*types.DnstapMessage, error)
type InputServer ¶
type InputServer struct { DecoderOptions *framestream.DecoderOptions // contains filtered or unexported fields }
func NewDnstapInputServer ¶
func NewDnstapInputServer(options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
func NewDtapFrameInputServer ¶
func NewDtapFrameInputServer(options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
func NewInputServer ¶
func NewInputServer(f Format, options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
type NewFormatFunc ¶
type NewFormatFunc func(options *framestream.DecoderOptions, ic *types.InputContext) *InputServer
Directories ¶
Path | Synopsis |
---|---|
* Copyright (c) 2022 Manabu Sonoda * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright (c) 2022 Manabu Sonoda * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright (c) 2022 Manabu Sonoda * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright (c) 2022 Manabu Sonoda * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright (c) 2022 Manabu Sonoda * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright (c) 2022 Manabu Sonoda * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
Click to show internal directories.
Click to hide internal directories.