Documentation ¶
Overview ¶
Billing Service. Infrastructure layer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository interface { Repository Get(ctx context.Context, id string) (*v1.Account, error) List(ctx context.Context, filter interface{}) ([]*v1.Account, error) Add(ctx context.Context, in *v1.Account) (*v1.Account, error) Update(ctx context.Context, in *v1.Account) (*v1.Account, error) Delete(ctx context.Context, id string) error }
type BillingStore ¶
type BillingStore struct { // Repositories Account AccountRepository Tariff TariffRepository EventStore *event_store.Repository // Observer interface for subscribe on system event notify.Subscriber // Observer interface for subscribe on system event // contains filtered or unexported fields }
Store abstract type
type TariffRepository ¶
type TariffRepository interface { Repository Get(ctx context.Context, id string) (*billing.Tariff, error) List(ctx context.Context, filter interface{}) (*billing.Tariffs, error) Add(ctx context.Context, in *billing.Tariff) (*billing.Tariff, error) Update(ctx context.Context, in *billing.Tariff) (*billing.Tariff, error) Delete(ctx context.Context, id string) error }
Click to show internal directories.
Click to hide internal directories.