storage

package
v0.0.0-...-57fb5ef Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage is a service that writes csv's to disk

func NewStorage

func NewStorage(baseDir, dir string) (*Storage, error)

NewStorage creates a new storage service

func (*Storage) Close

func (s *Storage) Close() error

Close closes the storage service

func (*Storage) GetFilePath

func (s *Storage) GetFilePath() string

GetFilePath returns the file path of the storage service

func (*Storage) Init

func (s *Storage) Init(headers []string) error

Init initializes the storage service with headers

func (*Storage) Write

func (s *Storage) Write(data []string) error

Write writes a record to the storage service

Jump to

Keyboard shortcuts

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