Documentation
¶
Index ¶
- type Deposit
- type HotConfig
- type OffchainWithdrawal
- type OnchainWithdrawal
- type Storage
- func (s *Storage) CloseDB()
- func (s *Storage) CreateDeposit(_dep *plasma.Deposit) error
- func (s *Storage) CreateOffchainWithdraw(_withd *plasma.OffchainWithdrawal) error
- func (s *Storage) CreateOnchainWithdraw(_withd *plasma.OnchainWithdrawal) error
- func (s *Storage) CreateTransfer(_trans *plasma.Transfer) error
- func (s *Storage) CreateUser(_user *plasma.User) error
- func (s *Storage) DepositPeriod() (time.Duration, error)
- func (s *Storage) DepositsByUserId(id int) ([]plasma.Deposit, error)
- func (s *Storage) GetUsersCount() int
- func (s *Storage) IncreaseBalance(id int, value int) error
- func (s *Storage) InitHotConfig(dotenvFileName string) error
- func (s *Storage) IsUserValid(username, password string) bool
- func (s *Storage) IsUsernameAvailable(username string) bool
- func (s *Storage) MigrateDB() error
- func (s *Storage) OffchainWithdrawalPeriod() (time.Duration, error)
- func (s *Storage) OffchainWithdrawalsByUserId(id int) ([]plasma.OffchainWithdrawal, error)
- func (s *Storage) OnchainWithdrawalPeriod() (time.Duration, error)
- func (s *Storage) OnchainWithdrawalsByUserId(id int) ([]plasma.OnchainWithdrawal, error)
- func (s *Storage) ReduceBalance(id int, value int) error
- func (s *Storage) TransferPeriod() (time.Duration, error)
- func (s *Storage) TransfersByUserId(id int) ([]plasma.Transfer, error)
- func (s *Storage) UserByAddress(addr string) (*plasma.User, error)
- func (s *Storage) UserById(id int) (*plasma.User, error)
- type Transfer
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OffchainWithdrawal ¶
type OffchainWithdrawal struct { gorm.Model plasma.OffchainWithdrawal }
type OnchainWithdrawal ¶
type OnchainWithdrawal struct { gorm.Model plasma.OnchainWithdrawal }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() Storage
func (*Storage) CreateOffchainWithdraw ¶
func (s *Storage) CreateOffchainWithdraw(_withd *plasma.OffchainWithdrawal) error
func (*Storage) CreateOnchainWithdraw ¶
func (s *Storage) CreateOnchainWithdraw(_withd *plasma.OnchainWithdrawal) error
func (*Storage) DepositsByUserId ¶
func (*Storage) GetUsersCount ¶
func (*Storage) InitHotConfig ¶
func (*Storage) IsUserValid ¶
func (*Storage) IsUsernameAvailable ¶
func (*Storage) OffchainWithdrawalPeriod ¶
func (*Storage) OffchainWithdrawalsByUserId ¶
func (s *Storage) OffchainWithdrawalsByUserId(id int) ([]plasma.OffchainWithdrawal, error)
func (*Storage) OnchainWithdrawalPeriod ¶
func (*Storage) OnchainWithdrawalsByUserId ¶
func (s *Storage) OnchainWithdrawalsByUserId(id int) ([]plasma.OnchainWithdrawal, error)
func (*Storage) TransfersByUserId ¶
Click to show internal directories.
Click to hide internal directories.