Help us shape the future of Go! Take the 2026 Go Developer Survey

storagepublisher

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package storagepublisher provides an adapter to publish hits to a worker-backed storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter translates hits to a task and publishes it to the storage

func NewAdapter

func NewAdapter(encoder encoding.EncoderFunc, publisher worker.Publisher) *Adapter

NewAdapter creates a new Adapter instance

func (*Adapter) Push

func (p *Adapter) Push(theHits []*hits.Hit) error

Push distributes hits to the storage

Jump to

Keyboard shortcuts

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