-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
named_pipe_nowindows.go
35 lines (27 loc) · 1.2 KB
/
named_pipe_nowindows.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build !windows
package listeners
import (
"errors"
"github.com/DataDog/datadog-agent/comp/dogstatsd/packets"
"github.com/DataDog/datadog-agent/comp/dogstatsd/replay"
"github.com/DataDog/datadog-agent/pkg/config"
)
// NamedPipeListener implements the StatsdListener interface for named pipe protocol.
type NamedPipeListener struct{}
// NewNamedPipeListener returns an named pipe Statsd listener
//
//nolint:revive // TODO(AML) Fix revive linter
func NewNamedPipeListener(pipeName string, packetOut chan packets.Packets,
sharedPacketPoolManager *packets.PoolManager, cfg config.Reader, capture replay.Component) (*NamedPipeListener, error) { //nolint:revive // TODO fix revive unused-parameter
return nil, errors.New("named pipe is only supported on Windows")
}
// Listen runs the intake loop. Should be called in its own goroutine
func (l *NamedPipeListener) Listen() {
}
// Stop closes the connection and stops listening
func (l *NamedPipeListener) Stop() {
}