Documentation ¶
Index ¶
- func NewEntClient(cfg Config) (*ent.Client, func(), error)
- func NewEntClientWithAutoMigrate(cfg Config) (*ent.Client, func(), error)
- type CardStorage
- func (c CardStorage) Find(ctx context.Context, cr storage.Criteria) (items []card.Card, nextPage storage.PageToken, err error)
- func (c CardStorage) Get(ctx context.Context, id string) (*card.Card, error)
- func (c CardStorage) GetUserCards(ctx context.Context, cr storage.Criteria, userID string) ([]card.Card, storage.PageToken, error)
- func (c CardStorage) Remove(ctx context.Context, id string) error
- func (c CardStorage) Save(ctx context.Context, v card.Card) error
- type Config
- type ContactStorage
- func (c ContactStorage) Find(ctx context.Context, cr storage.Criteria) (items []contact.Contact, nextPage storage.PageToken, err error)
- func (c ContactStorage) Get(ctx context.Context, id string) (*contact.Contact, error)
- func (c ContactStorage) GetUserContacts(ctx context.Context, cr storage.Criteria, userID string) ([]contact.Contact, storage.PageToken, error)
- func (c ContactStorage) Remove(ctx context.Context, id string) error
- func (c ContactStorage) Save(ctx context.Context, v contact.Contact) error
- type FinancialAccountStorage
- func (f FinancialAccountStorage) Find(ctx context.Context, cr storage.Criteria) (items []financialaccount.FinancialAccount, nextPage storage.PageToken, ...)
- func (f FinancialAccountStorage) Get(ctx context.Context, id string) (*financialaccount.FinancialAccount, error)
- func (f FinancialAccountStorage) Remove(ctx context.Context, id string) error
- func (f FinancialAccountStorage) Save(ctx context.Context, v financialaccount.FinancialAccount) error
- type UserStorage
- func (u UserStorage) Find(ctx context.Context, cr storage.Criteria) ([]user.User, storage.PageToken, error)
- func (u UserStorage) Get(ctx context.Context, id string) (*user.User, error)
- func (u UserStorage) Remove(ctx context.Context, id string) error
- func (u UserStorage) Save(ctx context.Context, v user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CardStorage ¶
type CardStorage struct {
// contains filtered or unexported fields
}
func NewCardStorage ¶
func NewCardStorage(e *ent.Client) CardStorage
func (CardStorage) GetUserCards ¶
type ContactStorage ¶
type ContactStorage struct {
// contains filtered or unexported fields
}
func NewContactStorage ¶
func NewContactStorage(e *ent.Client) ContactStorage
func (ContactStorage) GetUserContacts ¶
type FinancialAccountStorage ¶
type FinancialAccountStorage struct {
// contains filtered or unexported fields
}
func NewFinancialAccountStorage ¶
func NewFinancialAccountStorage(e *ent.Client) FinancialAccountStorage
func (FinancialAccountStorage) Find ¶
func (f FinancialAccountStorage) Find(ctx context.Context, cr storage.Criteria) ( items []financialaccount.FinancialAccount, nextPage storage.PageToken, err error)
func (FinancialAccountStorage) Get ¶
func (f FinancialAccountStorage) Get(ctx context.Context, id string) (*financialaccount.FinancialAccount, error)
func (FinancialAccountStorage) Remove ¶
func (f FinancialAccountStorage) Remove(ctx context.Context, id string) error
func (FinancialAccountStorage) Save ¶
func (f FinancialAccountStorage) Save(ctx context.Context, v financialaccount.FinancialAccount) error
type UserStorage ¶
type UserStorage struct {
// contains filtered or unexported fields
}
func NewUserStorage ¶
func NewUserStorage(e *ent.Client) UserStorage
Click to show internal directories.
Click to hide internal directories.