storage

package
v2.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package storage contains the storage converter which allows to concurrently store the processed data in a storage system.

Index

Constants

View Source
const Name = "storage"

Name of the converter.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage[In any] struct {
	converter.IConverter[In, string] `json:"converter" validate:"required"`
}

Storage definition.

func Must added in v2.2.3

func Must[In any](
	s storage.IStorage,
	target string,
	opts ...converter.Func[In, string],
) *Storage[In]

Must returns a new converter or panics if an error occurs.

func New

func New[In any](
	s storage.IStorage,
	target string,
	opts ...converter.Func[In, string],
) (*Storage[In], error)

New creates a new Storage converter.

Jump to

Keyboard shortcuts

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