invoiceheader

package
v0.0.0-...-df4534a Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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 Model

type Model struct {
	ID        uint
	Client    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Model of invoiceheader

type Service

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

Service of invoiceheader

func NewService

func NewService(s Storage) *Service

NewService return a pointer of Service

func (*Service) Migrate

func (s *Service) Migrate() error

Migrate is used for migrate product

type Storage

type Storage interface {
	Migrate() error
	CreateTx(*sql.Tx, *Model) error
}

Storage interface that must implement a db storage

Jump to

Keyboard shortcuts

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