ports

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminService

type AdminService interface {
	Backup() (string, error)
	CreateDirectory(previousMonth bool, nextMonth bool) (string, error)
}

type ConfigService

type ConfigService interface {
	Init()
	Get(key string) string
	Set(key string, value string) error
	GetWorkingDirectory() string
}

type DbService

type DbService interface {
	FindCustomer(code int) (model.Customer, error)
	FindChild(code int) (model.Child, error)
	FindInvoice(code string) (model.Invoice, error)
	FindProduct(code string) (model.Product, error)
	FindAllProducts() ([]model.Product, error)
	FindInvoicesByYearMonth(yearMonth string) ([]model.Invoice, error)
	FindInvoicesByCustomer(customerCode int) ([]model.Invoice, error)
	FindInvoicesByCustomerAndYearMonth(customerCode int, yearMonth string) ([]model.Invoice, error)
	FindActiveCustomers() ([]model.Customer, error)
	SearchCustomers(searchText string) ([]model.Customer, error)
	FindActiveChildren() ([]model.Child, error)
	FindAllConsumptions() ([]model.Consumption, error)
	FindChildConsumptions(code int) ([]model.Consumption, error)
}

type DisplayService

type DisplayService interface {
	DisplayCustomer(code int) (string, error)
	DisplayInvoice(code string) (string, error)
	DisplayProduct(code string) (string, error)
}

type EditService

type EditService interface {
	EditCustomer(code int) (string, error)
	EditInvoice(code string) (string, error)
	EditProduct(code string) (string, error)
}

type Entity

type Entity uint
const (
	Customer Entity = iota
	Invoice
	Product
)

type ExternalEditor

type ExternalEditor interface {
	Edit(entity Entity, code string) (string, error)
}

type GenerateService

type GenerateService interface {
	CustomerReport() (string, error)
	MonthReport() (string, error)
	ProductReport() (string, error)
}

type ListService

type ListService interface {
	ListCustomerInvoices(customerCode int) (string, error)
	ListCustomerYearMonthInvoices(customerCode int, yearMonth string) (string, error)
	ListProducts() (string, error)
	ListYearMonthInvoices(yearMonth string) (string, error)
	ListCustomers() (string, error)
	ListChildren() (string, error)
	ListMails() (string, error)
	ListMailsByLanguage() (string, error)
	ListGroupMails(group string) (string, error)
	ListConsumptions() (string, error)
	ListChildConsumptions(childCode int) (string, error)
}

type OsService

type OsService interface {
	OpenUrlInBrowser(url string) error
	RunCommand(command string, args ...string) error
	CreateDirectory(dirPath string) error
	ItemExists(itemPath string) (bool, error)
	GetTempDirectory() (string, error)
	CreateZipFile(zipFilePath string, files []string) error
	Now() time.Time
}

type SearchService

type SearchService interface {
	SearchCustomer(searchText string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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