services

package
v0.0.0-...-2bde531 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationDataService

type ApplicationDataService struct {
	Filename string
	Log      func(string, string)
}

func NewApplicationDataService

func NewApplicationDataService(filename string, log func(string, string)) *ApplicationDataService

NewApplicationDataService constructs service which loads and saves the data from configuration file.

func (*ApplicationDataService) Load

Load deserializes json file to a @models.Output.

func (*ApplicationDataService) Save

func (s *ApplicationDataService) Save(value models.Output)

Save serializes @models.Output in the configuration app file.

Jump to

Keyboard shortcuts

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