Documentation ¶
Index ¶
- Variables
- type GetBankCardDataByIDResponseModel
- type GetBinaryDataByIDResponseModel
- type GetCredentialsDataByIDResponseModel
- type GetDataByIDResponseModel
- type GetDataListResponseItemModel
- type GetDataListToSynchronizeItemModel
- type GetTextDataByIDResponseModel
- type RemoveDataByIDRequestModel
- type SaveDataRequestModel
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) GetDataByID(ctx context.Context, id string) (*GetDataByIDResponseModel, error)
- func (s *Storage) GetDataList(ctx context.Context, userID string) ([]GetDataListResponseItemModel, error)
- func (s *Storage) GetDataListToSynchronize(ctx context.Context, userID string) ([]GetDataListToSynchronizeItemModel, error)
- func (s *Storage) GetSecretKey() (sc string, err error)
- func (s *Storage) GetTokens() (at string, rt string, err error)
- func (s *Storage) GetUserID() (userID string, err error)
- func (s *Storage) RemoveDataByID(ctx context.Context, request RemoveDataByIDRequestModel) error
- func (s *Storage) RemoveTokens() error
- func (s *Storage) SaveCredentials(ctx context.Context, at string, rt string, sk string, userID string) error
- func (s *Storage) SaveData(ctx context.Context, request SaveDataRequestModel) error
- func (s *Storage) UpdateData(ctx context.Context, request UpdateDataRequestModel) error
- func (s *Storage) UpdateTokens(accesstoken string, refreshtoken string) (err error)
- type UpdateDataRequestModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokensNotFound = errors.New("token not found")
Functions ¶
This section is empty.
Types ¶
type SaveDataRequestModel ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetDataByID ¶
func (*Storage) GetDataList ¶
func (*Storage) GetDataListToSynchronize ¶
func (*Storage) GetSecretKey ¶
func (*Storage) RemoveDataByID ¶
func (s *Storage) RemoveDataByID(ctx context.Context, request RemoveDataByIDRequestModel) error
func (*Storage) RemoveTokens ¶
func (*Storage) SaveCredentials ¶
func (*Storage) SaveData ¶
func (s *Storage) SaveData(ctx context.Context, request SaveDataRequestModel) error
func (*Storage) UpdateData ¶
func (s *Storage) UpdateData(ctx context.Context, request UpdateDataRequestModel) error
Click to show internal directories.
Click to hide internal directories.