invoiceheader

package
v0.0.0-...-8ebb9f7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT 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 Models

type Models []*Model

Models slice of Model

type Service

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

Service of invoiceheader

func NewService

func NewService(s Storage) *Service

NewService returns a pointer to Service

func (*Service) CreateTx

func (s *Service) CreateTx(tx *sql.Tx, ms *Model) error

CreateTx is used to create invoiceheader

func (*Service) Migrate

func (s *Service) Migrate() error

Migrate is used to migrate invoiceheader

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