Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface { io.Closer Read() error Write() error Config() *types.Config // Accounts returns a list of accounts that maches the Id. // The ID can be either an ID or a Name. Accounts(id ...string) []*types.Account // Clients returns a list of clients that maches the Id. // The ID can be either an ID or a Name. Clients(id ...string) []*types.Client // Projects returns a list of projects that maches the Id. // The ID can be either an ID or a Name. Projects(id ...string) []*types.Project Invoices(id ...string) []*types.Invoice InvoicesCount(id ...string) int Templates(id ...string) []*types.Template SetConfig(*types.Config) error SetAccount(*types.Account) error SetClient(*types.Client) error SetProject(*types.Project) error SetInvoice(*types.Invoice) error SetTemplate(*types.Template) error DelAccount(*types.Account) error DelClient(*types.Client) error DelProject(*types.Project) error DelInvoice(*types.Invoice) error DelTemplate(*types.Template) error FS() fs.FS }
Click to show internal directories.
Click to hide internal directories.