input

package
v2.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

type NewFormatFunc

type NewFormatFunc func(p PluginWithFormat, options *framestream.DecoderOptions) *InputServer

type PluginWithFormat added in v2.1.0

type PluginWithFormat interface {
	types.Plugin
	GetFormat() string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL