Documentation ¶
Index ¶
- Variables
- type Invoice
- type Options
- type PostgresClient
- func (pc *PostgresClient) Create(ctx context.Context, table string, fields []string, invoices []Invoice) error
- func (pc *PostgresClient) Delete(ctx context.Context, table, userID, fileID string) error
- func (pc *PostgresClient) ReadByPeriod(ctx context.Context, table string, fields []string, userID, fileID string, ...) ([]Invoice, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AllFields = []string{
"user_id",
"file_id",
"customer_id",
"period_start",
"paid_plan",
"paid_amount",
"period_end",
}
)
Functions ¶
This section is empty.
Types ¶
type PostgresClient ¶
func NewPostgresClient ¶
func NewPostgresClient(ctx context.Context, options *Options) (*PostgresClient, error)
Click to show internal directories.
Click to hide internal directories.