Versions in this module Expand all Collapse all v0 v0.1.0 Mar 13, 2022 Changes in this version + var ErrAccountConflictOnSave = errors.New(...) + type Account struct + func CreateAccountFromRepository(id string, telegramID TelegramID, version uint) *Account + func NewAccount(id string, telegramID TelegramID) (*Account, error) + func (a Account) ID() string + func (a Account) TelegramID() TelegramID + func (a Account) Version() uint + type AccountRepository interface + GetOneByID func(ctx context.Context, id string) (*Account, error) + GetOneByTgID func(ctx context.Context, tgID TelegramID) (*Account, error) + Save func(ctx context.Context, account *Account) error + type TelegramID struct + func NewTelegramID(val int64) (TelegramID, error) + func (t TelegramID) String() string + func (t TelegramID) Value() int64