storages

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Storage that periodicaly load shedules from YAML files in specified derectory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVstorage

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

func GetCSVStorage

func GetCSVStorage(config map[string]string, logger *zap.Logger) (*CSVstorage, error)

func (*CSVstorage) FillAllShedules

func (o *CSVstorage) FillAllShedules() (shedules []models.SheduleSection, err error)

func (*CSVstorage) Run

func (o *CSVstorage) Run(add chan models.SheduleSection, del chan string)

type YAMLstorage

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

func GetYAMLStorage

func GetYAMLStorage(config map[string]string, logger *zap.Logger) (*YAMLstorage, error)

func (*YAMLstorage) FillAllShedules

func (o *YAMLstorage) FillAllShedules() (shedules map[string]models.SheduleSection, err error)

func (*YAMLstorage) Run

func (o *YAMLstorage) Run(add chan models.SheduleSection, del chan string)

Jump to

Keyboard shortcuts

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