adapter

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomerFromDBEntity

func CustomerFromDBEntity(e db.Customer, expands customer.Expands) (*customer.Customer, error)

func New

func New(config Config) (customer.Adapter, error)

func WithActiveSubscriptions

func WithActiveSubscriptions(query *entdb.CustomerQuery, at time.Time) *entdb.CustomerQuery

WithActiveSubscriptions returns a query with the subscription

func WithSubjects

func WithSubjects(q *entdb.CustomerQuery, at time.Time) *entdb.CustomerQuery

WithSubjects returns a query with the subjects

Types

type Config

type Config struct {
	Client *entdb.Client
	Logger *slog.Logger
}

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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