Documentation ¶
Index ¶
- type MockAuctionRepository
- func (m *MockAuctionRepository) CreateAuction(input *entity.Auction) (*entity.Auction, error)
- func (m *MockAuctionRepository) DeleteAuction(id uint) error
- func (m *MockAuctionRepository) FindActiveAuction() (*entity.Auction, error)
- func (m *MockAuctionRepository) FindAllAuctions() ([]*entity.Auction, error)
- func (m *MockAuctionRepository) FindAuctionById(id uint) (*entity.Auction, error)
- func (m *MockAuctionRepository) UpdateAuction(input *entity.Auction) (*entity.Auction, error)
- type MockBidRepository
- func (m *MockBidRepository) CreateBid(input *entity.Bid) (*entity.Bid, error)
- func (m *MockBidRepository) DeleteBid(id uint) error
- func (m *MockBidRepository) FindAllBids() ([]*entity.Bid, error)
- func (m *MockBidRepository) FindBidById(id uint) (*entity.Bid, error)
- func (m *MockBidRepository) FindBidsByAuctionId(id uint) ([]*entity.Bid, error)
- func (m *MockBidRepository) FindBidsByState(auctionId uint, state string) ([]*entity.Bid, error)
- func (m *MockBidRepository) UpdateBid(input *entity.Bid) (*entity.Bid, error)
- type MockContractRepository
- func (m *MockContractRepository) CreateContract(contract *entity.Contract) (*entity.Contract, error)
- func (m *MockContractRepository) DeleteContract(symbol string) error
- func (m *MockContractRepository) FindAllContracts() ([]*entity.Contract, error)
- func (m *MockContractRepository) FindContractBySymbol(symbol string) (*entity.Contract, error)
- func (m *MockContractRepository) UpdateContract(contract *entity.Contract) (*entity.Contract, error)
- type MockOrderRepository
- func (m *MockOrderRepository) CreateOrder(input *entity.Order) (*entity.Order, error)
- func (m *MockOrderRepository) DeleteOrder(id uint) error
- func (m *MockOrderRepository) FindAllOrders() ([]*entity.Order, error)
- func (m *MockOrderRepository) FindOrderById(id uint) (*entity.Order, error)
- func (m *MockOrderRepository) FindOrdersByUser(buyer custom_type.Address) ([]*entity.Order, error)
- func (m *MockOrderRepository) UpdateOrder(order *entity.Order) (*entity.Order, error)
- type MockStationRepository
- func (m *MockStationRepository) CreateStation(input *entity.Station) (*entity.Station, error)
- func (m *MockStationRepository) DeleteStation(id string) error
- func (m *MockStationRepository) FindAllStations() ([]*entity.Station, error)
- func (m *MockStationRepository) FindStationById(id string) (*entity.Station, error)
- func (m *MockStationRepository) UpdateStation(input *entity.Station) (*entity.Station, error)
- type MockUserRepository
- func (m *MockUserRepository) CreateUser(input *entity.User) (*entity.User, error)
- func (m *MockUserRepository) DeleteUserByAddress(address custom_type.Address) error
- func (m *MockUserRepository) FindAllUsers() ([]*entity.User, error)
- func (m *MockUserRepository) FindUserByAddress(address custom_type.Address) (*entity.User, error)
- func (m *MockUserRepository) FindUserByRole(role string) (*entity.User, error)
- func (m *MockUserRepository) UpdateUser(input *entity.User) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuctionRepository ¶
func (*MockAuctionRepository) CreateAuction ¶
func (*MockAuctionRepository) DeleteAuction ¶
func (m *MockAuctionRepository) DeleteAuction(id uint) error
func (*MockAuctionRepository) FindActiveAuction ¶
func (m *MockAuctionRepository) FindActiveAuction() (*entity.Auction, error)
func (*MockAuctionRepository) FindAllAuctions ¶
func (m *MockAuctionRepository) FindAllAuctions() ([]*entity.Auction, error)
func (*MockAuctionRepository) FindAuctionById ¶
func (m *MockAuctionRepository) FindAuctionById(id uint) (*entity.Auction, error)
func (*MockAuctionRepository) UpdateAuction ¶
type MockBidRepository ¶
func (*MockBidRepository) DeleteBid ¶
func (m *MockBidRepository) DeleteBid(id uint) error
func (*MockBidRepository) FindAllBids ¶
func (m *MockBidRepository) FindAllBids() ([]*entity.Bid, error)
func (*MockBidRepository) FindBidById ¶
func (m *MockBidRepository) FindBidById(id uint) (*entity.Bid, error)
func (*MockBidRepository) FindBidsByAuctionId ¶
func (m *MockBidRepository) FindBidsByAuctionId(id uint) ([]*entity.Bid, error)
func (*MockBidRepository) FindBidsByState ¶
type MockContractRepository ¶
func (*MockContractRepository) CreateContract ¶
func (*MockContractRepository) DeleteContract ¶
func (m *MockContractRepository) DeleteContract(symbol string) error
func (*MockContractRepository) FindAllContracts ¶
func (m *MockContractRepository) FindAllContracts() ([]*entity.Contract, error)
func (*MockContractRepository) FindContractBySymbol ¶
func (m *MockContractRepository) FindContractBySymbol(symbol string) (*entity.Contract, error)
func (*MockContractRepository) UpdateContract ¶
type MockOrderRepository ¶
func (*MockOrderRepository) CreateOrder ¶
func (*MockOrderRepository) DeleteOrder ¶
func (m *MockOrderRepository) DeleteOrder(id uint) error
func (*MockOrderRepository) FindAllOrders ¶
func (m *MockOrderRepository) FindAllOrders() ([]*entity.Order, error)
func (*MockOrderRepository) FindOrderById ¶
func (m *MockOrderRepository) FindOrderById(id uint) (*entity.Order, error)
func (*MockOrderRepository) FindOrdersByUser ¶
func (m *MockOrderRepository) FindOrdersByUser(buyer custom_type.Address) ([]*entity.Order, error)
func (*MockOrderRepository) UpdateOrder ¶
type MockStationRepository ¶
func (*MockStationRepository) CreateStation ¶
func (*MockStationRepository) DeleteStation ¶
func (m *MockStationRepository) DeleteStation(id string) error
func (*MockStationRepository) FindAllStations ¶
func (m *MockStationRepository) FindAllStations() ([]*entity.Station, error)
func (*MockStationRepository) FindStationById ¶
func (m *MockStationRepository) FindStationById(id string) (*entity.Station, error)
func (*MockStationRepository) UpdateStation ¶
type MockUserRepository ¶
func (*MockUserRepository) CreateUser ¶
func (*MockUserRepository) DeleteUserByAddress ¶
func (m *MockUserRepository) DeleteUserByAddress(address custom_type.Address) error
func (*MockUserRepository) FindAllUsers ¶
func (m *MockUserRepository) FindAllUsers() ([]*entity.User, error)
func (*MockUserRepository) FindUserByAddress ¶
func (m *MockUserRepository) FindUserByAddress(address custom_type.Address) (*entity.User, error)
func (*MockUserRepository) FindUserByRole ¶
func (m *MockUserRepository) FindUserByRole(role string) (*entity.User, error)
func (*MockUserRepository) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.