Files
scylladb/audit/audit_syslog_storage_helper.hh
Andrzej Jackowski f8156702de tree: add missing -present to copyright headers
~2076 files used "Copyright (C) YYYY-present ScyllaDB" while
~88 files used "Copyright (C) YYYY ScyllaDB". This
inconsistency leads to unnecessary code review discussions
and gradual spread of the less common format.

Standardize all ScyllaDB copyright headers to use -present.

Fixes SCYLLADB-1984

Closes scylladb/scylladb#29876
2026-05-21 10:57:42 +02:00

50 lines
1.4 KiB
C++

/*
* Copyright (C) 2017-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#pragma once
#include <seastar/net/api.hh>
#include "audit/audit.hh"
#include "storage_helper.hh"
#include "db/config.hh"
namespace service {
class migration_manager;
};
namespace audit {
class audit_syslog_storage_helper : public storage_helper {
socket_address _syslog_address;
net::datagram_channel _sender;
seastar::semaphore _semaphore;
future<> syslog_send_helper(seastar::temporary_buffer<char> msg);
public:
explicit audit_syslog_storage_helper(cql3::query_processor&, service::migration_manager&);
virtual ~audit_syslog_storage_helper();
virtual future<> start(const db::config& cfg) override;
virtual future<> stop() override;
virtual future<> write(audit_sink_set sinks,
const audit_info* audit_info,
socket_address node_ip,
socket_address client_ip,
std::optional<db::consistency_level> cl,
const sstring& username,
bool error) override;
virtual future<> write_login(audit_sink_set sinks,
const sstring& username,
socket_address node_ip,
socket_address client_ip,
bool error) override;
};
}