Documentation ¶
Index ¶
- type CsvReport
- type PostgresDB
- func (pg *PostgresDB) AddSegment(ctx context.Context, segment Segment, log *slog.Logger) (uint64, error)
- func (pg *PostgresDB) AddUser(ctx context.Context, user User, log *slog.Logger) (uint64, error)
- func (pg *PostgresDB) AddUserToSegments(ctx context.Context, userSegment UserSegments, log *slog.Logger) error
- func (pg *PostgresDB) CascadeDeleteSegment(ctx context.Context, segment Segment, log *slog.Logger) error
- func (pg *PostgresDB) Close()
- func (pg *PostgresDB) CsvHistoryReport(ctx context.Context, csvDates CsvReport, log *slog.Logger) error
- func (pg *PostgresDB) DeleteUserFromSegments(ctx context.Context, userSegment UserSegments, log *slog.Logger) error
- func (pg *PostgresDB) DropDB(ctx context.Context) error
- func (pg *PostgresDB) GetSegmentUsersInfo(ctx context.Context, segment Segment, log *slog.Logger) ([]uint64, error)
- func (pg *PostgresDB) GetUserSegmentsInfo(ctx context.Context, user User, log *slog.Logger) ([]string, error)
- func (pg *PostgresDB) Migrate(ctx context.Context) error
- func (pg *PostgresDB) Ping(ctx context.Context) error
- type Segment
- type User
- type UserSegments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDB ¶
func (*PostgresDB) AddSegment ¶
func (*PostgresDB) AddUserToSegments ¶
func (pg *PostgresDB) AddUserToSegments(ctx context.Context, userSegment UserSegments, log *slog.Logger) error
func (*PostgresDB) CascadeDeleteSegment ¶
func (*PostgresDB) Close ¶
func (pg *PostgresDB) Close()
func (*PostgresDB) CsvHistoryReport ¶
func (*PostgresDB) DeleteUserFromSegments ¶
func (pg *PostgresDB) DeleteUserFromSegments(ctx context.Context, userSegment UserSegments, log *slog.Logger) error
func (*PostgresDB) GetSegmentUsersInfo ¶
func (*PostgresDB) GetUserSegmentsInfo ¶
type UserSegments ¶
Click to show internal directories.
Click to hide internal directories.