store

package
v0.0.0-...-9df599e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType string

Тип хранимых данных. Возможные значения:

  • BANK_CARD
  • BINARY
  • CREDENTIALS
  • TEXT

func (*DataType) IsValid

func (dt *DataType) IsValid() bool

func (*DataType) String

func (dt *DataType) String() string

type GetDataByIDRequestModel

type GetDataByIDRequestModel struct {
	UserID string
	ID     string
}

type GetDataByIDResponseModel

type GetDataByIDResponseModel struct {
	Data        []byte
	DataType    string
	Description string
}

type RemoveDataByIDRequestModel

type RemoveDataByIDRequestModel struct {
	ID                    string
	UserID                string
	ModificationTimestamp int64
}

type RemoveDataByIDResponseModel

type RemoveDataByIDResponseModel struct{}

type SaveDataRequestModel

type SaveDataRequestModel struct {
	ID                    string
	UserID                string
	Data                  []byte
	DataType              DataType
	Description           string
	ModificationTimestamp int64
	Hash                  string
}

type SaveDataResponseModel

type SaveDataResponseModel struct {
	DataID string
}

type UpdateDataRequestModel

type UpdateDataRequestModel struct {
	ID                    string
	UserID                string
	Hash                  string
	ModificationTimestamp int64
	Data                  []byte
}

type UpdateDataResponseModel

type UpdateDataResponseModel struct{}

Jump to

Keyboard shortcuts

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