Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFormat = "DNSTAP"
View Source
const FormatDNSTAP = "DNSTAP"
View Source
const FormatDtapFrame = "DtapFrame"
Variables ¶
This section is empty.
Functions ¶
func RegisterFormat ¶
func RegisterFormat(f FormatMeta, newFunc NewFormatFunc)
Types ¶
type FormatMeta ¶ added in v2.1.0
type FormatMeta struct {
Format string
}
The file format can be either "DNSTAP" or "DTAPFrame". "DNSTAP" is the normal DNSTAP format. "DTAPFrame" is a DNSTAP format with a label added. For details, https://github.com/mimuret/dtap/blob/v2/proto/dtap_frame.proto.
func (FormatMeta) GetFormat ¶ added in v2.1.0
func (f FormatMeta) GetFormat() string
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(p PluginWithFormat, options *framestream.DecoderOptions) *InputServer
func NewDtapFrameInputServer ¶
func NewDtapFrameInputServer(p PluginWithFormat, options *framestream.DecoderOptions) *InputServer
func NewInputServer ¶
func NewInputServer(p PluginWithFormat, options *framestream.DecoderOptions) *InputServer
func (*InputServer) Read ¶
func (i *InputServer) Read(r io.Reader, buf types.Writer, ic *types.InputContext) error
func (*InputServer) Serve ¶
func (i *InputServer) Serve(p PluginWithFormat, ln net.Listener, buf types.Writer, ic *types.InputContext) error
type NewFormatFunc ¶
type NewFormatFunc func(p PluginWithFormat, options *framestream.DecoderOptions) *InputServer
type PluginWithFormat ¶ added in v2.1.0
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. |
* 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.