db

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDbHandler

type ImageDbHandler struct {
	DatabaseContext *model.DatabaseContext
}

func NewImageDbHandler

func NewImageDbHandler(databaseContext *model.DatabaseContext) *ImageDbHandler

func (*ImageDbHandler) RemoveExpiredContexts

func (ih *ImageDbHandler) RemoveExpiredContexts(item model.PharosImageMeta) model.PharosImageMeta

func (*ImageDbHandler) RemoveImagesWithoutContext

func (ih *ImageDbHandler) RemoveImagesWithoutContext(item model.PharosImageMeta) model.PharosImageMeta

type ImageDbSink

type ImageDbSink struct {
	Logger          *zerolog.Logger
	DatabaseContext *model.DatabaseContext
	// contains filtered or unexported fields
}

func NewImageDbSink

func NewImageDbSink(databaseContext *model.DatabaseContext) *ImageDbSink

func (*ImageDbSink) AwaitCompletion

func (is *ImageDbSink) AwaitCompletion()

AwaitCompletion blocks until the ImageSink has processed all received data.

func (*ImageDbSink) In

func (is *ImageDbSink) In() chan<- any

In returns the input channel of the ImageSink connector.

type ImageDbSource

type ImageDbSource struct {
	Config *model.Config

	DatabaseContext *model.DatabaseContext
	Logger          *zerolog.Logger
	ScannerFlow     bool
	// contains filtered or unexported fields
}

func NewImageDbSource

func NewImageDbSource(databaseContext *model.DatabaseContext, config *model.Config) *ImageDbSource

func (*ImageDbSource) CheckSplit

func (sr *ImageDbSource) CheckSplit(element any) bool

func (*ImageDbSource) Out

func (is *ImageDbSource) Out() <-chan any

Out returns the output channel of the ChanSource connector.

func (*ImageDbSource) RunAsync

func (is *ImageDbSource) RunAsync()

func (*ImageDbSource) Start

func (is *ImageDbSource) Start()

TODO consider instead of Source use map function

func (*ImageDbSource) Via

func (is *ImageDbSource) Via(operator streams.Flow) streams.Flow

Via asynchronously streams data to the given Flow and returns it.

Jump to

Keyboard shortcuts

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