service

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright (c) Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Filter *filter.Filter
	GeoIP  *geoip.GeoIP
	Sink   *sink.Sink
	Logger *slog.Logger
}

Service represents the conntrack service.

func NewService added in v1.0.0

func NewService(logger *logger.Logger, geoip *geoip.GeoIP, filter *filter.Filter, sink *sink.Sink) (*Service, error)

NewService creates a new conntrack service.

func (*Service) Run

func (s *Service) Run(ctx context.Context) bool

Run starts the conntrack listener service.

Jump to

Keyboard shortcuts

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