Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/delta/dalal-street-server
/ functions
Functions
739 in github.com/delta/dalal-street-server
⨍
Functions
739
◇
Types & classes
147
Function
InspectComponents
()
models/InspectComponents.go:206
Method
InspectConnectedComponents
(ctx context.Context, req *actions_pb.InspectComponentsRequest)
grpcapi/actionservice/AdminActionService.go:809
Method
InspectUser
(ctx context.Context, req *actions_pb.InspectUserRequest)
grpcapi/actionservice/AdminActionService.go:499
Function
InspectUserDegree
()
models/InspectUserDegree.go:176
Method
InspectUserDegree
(ctx context.Context, req *actions_pb.InspectDegreeRequest)
grpcapi/actionservice/AdminActionService.go:777
Function
IsAdmin
(username, password string)
models/Admin.go:7
Function
IsAdminAuth
(userId uint32)
models/User.go:2430
Function
IsUserOTPBlocked
(userId uint32)
models/User.go:2436
Method
LoadOldAsk
LoadOldAsk mocks base method
mocks/mock_OrderBook.go:47
Method
LoadOldAsk
LoadOldAsk indicates an expected call of LoadOldAsk
mocks/mock_OrderBook.go:52
Method
LoadOldBid
LoadOldBid mocks base method
mocks/mock_OrderBook.go:57
Method
LoadOldBid
LoadOldBid indicates an expected call of LoadOldBid
mocks/mock_OrderBook.go:62
Method
LoadOldTransactions
(txs []*models.Transaction)
matchingengine/OrderBook.go:83
Method
LoadOldTransactions
LoadOldTransactions mocks base method
mocks/mock_OrderBook.go:37
Method
LoadOldTransactions
LoadOldTransactions indicates an expected call of LoadOldTransactions
mocks/mock_OrderBook.go:42
Method
LoadStocks
(ctx context.Context, req *actions_pb.LoadStocksRequest)
grpcapi/actionservice/AdminActionService.go:158
Function
Logout
Logout removes the user from RAM.
models/User.go:2418
Method
Logout
(ctx context.Context, req *actions_pb.LogoutRequest)
grpcapi/actionservice/AuthActionService.go:182
Method
MakeGlobalBroadcast
MakeGlobalBroadcast broadcasts a given update to *all* listeners in the stream
datastreams/MulticastStream.go:131
Function
MinTripleInt64
(a, b, c int64)
utils/utils.go:57
Method
MortgageStocks
(ctx context.Context, req *actions_pb.MortgageStocksRequest)
grpcapi/actionservice/MortgageActionService.go:12
Function
NewMockMatchingEngine
NewMockMatchingEngine creates a new mock instance
mocks/mock_MatchingEngine.go:25
Function
OpenDailyChallenge
OpenDailyChallenge opens dailyChallenge saves initial user state depending upon the challengetype in db for later computation while Closing dailyChall
models/DailyChallenge.go:187
Method
OpenDailyChallenge
(ctx context.Context, req *actions_pb.OpenDailyChallengeRequest)
grpcapi/actionservice/AdminActionService.go:669
Method
OpenIpoBidding
(ctx context.Context, req *actions_pb.OpenIpoBiddingRequest)
grpcapi/actionservice/AdminActionService.go:877
Method
OpenMarket
(ctx context.Context, req *actions_pb.OpenMarketRequest)
grpcapi/actionservice/AdminActionService.go:21
Function
PerformDividendsTransaction
PerformDividendsTransaction finds the users who own the stocks of this Company, performs dividendTransaction for each of these users, updates cash of
models/Dividends.go:19
Method
PlaceIpoBid
(ctx context.Context, req *actions_pb.PlaceIpoBidRequest)
grpcapi/actionservice/OrderActionService.go:152
Method
PlaceOrder
(ctx context.Context, req *actions_pb.PlaceOrderRequest)
grpcapi/actionservice/OrderActionService.go:69
Method
Pop
()
matchingengine/pqueue.go:26
Method
Pop
Pop and returns the highest/lowest priority item (depending on whether you're using a MINPQ or MAXPQ) from the priority queue
matchingengine/pqueue.go:158
Method
Pop
Pop and returns the highest/lowest priority item (depending on whether you're using a MINPQ or MAXPQ) from the priority queue
matchingengine/pqueue.go:178
Method
Pop
Pop mocks base method
mocks/mock_pqueue.go:47
Method
Pop
Pop indicates an expected call of Pop
mocks/mock_pqueue.go:54
Method
Pop
Pop mocks base method
mocks/mock_pqueue.go:128
Method
Pop
Pop indicates an expected call of Pop
mocks/mock_pqueue.go:135
Method
Push
(*models.Ask)
matchingengine/pqueue.go:25
Method
Push
Push the value item into the priority queue with provided priority.
matchingengine/pqueue.go:135
Method
Push
Push the value item into the priority queue with provided priority.
matchingengine/pqueue.go:146
Method
Push
Push mocks base method
mocks/mock_pqueue.go:37
Method
Push
Push indicates an expected call of Push
mocks/mock_pqueue.go:42
Method
Push
Push mocks base method
mocks/mock_pqueue.go:118
Method
Push
Push indicates an expected call of Push
mocks/mock_pqueue.go:123
Method
Register
(ctx context.Context, req *actions_pb.RegisterRequest)
grpcapi/actionservice/AuthActionService.go:48
Method
RemoveListener
RemoveListener mocks base method
mocks/mock_MarketDepth.go:46
Method
RemoveListener
RemoveListener indicates an expected call of RemoveListener
mocks/mock_MarketDepth.go:51
Method
RemoveListener
RemoveListener removes a listener from a marketDepthStream
datastreams/MarketDepth.go:192
Method
RemoveListener
(sessionId string)
datastreams/StockHistory.go:14
Method
RemoveListener
RemoveListener removes a listener from the StockHistory stream
datastreams/StockHistory.go:53
Method
RemoveListener
RemoveListener removes a listener from the MyOrders stream
datastreams/MarketEvents.go:65
Method
RemoveListener
RemoveListener removes a given listener from the subscribers list
datastreams/GameStateStream.go:73
Method
RemoveListener
RemoveListener removes a given listener from the subscribers list
datastreams/Notifications.go:73
Method
RemoveListener
RemoveListener removes a listener from the StockExchangeStream
datastreams/StockExchange.go:111
Method
RemoveListener
RemoveListener removes a listener from a group of a stream. Removes group if empty.
datastreams/MulticastStream.go:69
Method
RemoveListener
(sessionId string)
datastreams/StockPrices.go:18
Method
RemoveListener
RemoveListener removes a listener from the StockPricesStream
datastreams/StockPrices.go:109
Method
RemoveListener
RemoveListener removes a listener from the Transactions stream
datastreams/Transactions.go:67
Method
RemoveListener
(sessionId string)
datastreams/BroadcastStream.go:14
Method
RemoveListener
RemoveListener removes a listener from a stream
datastreams/BroadcastStream.go:58
Method
RemoveListener
RemoveListener removes a listener from the MyOrders stream
datastreams/MyOrders.go:63
Function
ResendVerificationEmail
(email string)
models/Registration.go:69
Method
ResendVerificationEmail
(ctx context.Context, req *actions_pb.ResendVerificationEmailRequest)
grpcapi/actionservice/AuthActionService.go:201
Function
ResolutionFromProto
ResolutionFromProto converts proto StockHistoryResolution to a model's Resolution value
models/StockHistory.go:55
Method
RetrieveMortgageStocks
(ctx context.Context, req *actions_pb.RetrieveMortgageStocksRequest)
grpcapi/actionservice/MortgageActionService.go:66
Method
Run
()
datastreams/StockExchange.go:16
Method
Run
Run runs the StockExchangeStream. Call in a go func. Repeatedly broadcasts stockexchange data every 15s, if there's any update
datastreams/StockExchange.go:44
Method
Run
Run runs the StockPricesStream. Call in a gofunc. Repeatedly broadcasts stock prices every 15 seconds, if there's any update
datastreams/StockPrices.go:43
Method
Scan
(value interface{})
models/Transaction.go:14
Method
SendDividends
(ctx context.Context, req *actions_pb.SendDividendsRequest)
grpcapi/actionservice/AdminActionService.go:363
Function
SendGameStateUpadate
SendGameStateUpadate sends gamestateupdate to multicast stream
models/GameState.go:141
Method
SendGameStateUpdate
SendGameStateUpdate sends a update to all connections of a given user
datastreams/GameStateStream.go:37
Method
SendMarketEvent
SendOrderUpdate sends an order update to a given user
datastreams/MarketEvents.go:35
Method
SendNews
(ctx context.Context, req *actions_pb.SendNewsRequest)
grpcapi/actionservice/AdminActionService.go:13
Method
SendNotification
SendNotification sends a notification to all connections of a given user
datastreams/Notifications.go:37
Method
SendNotifications
(ctx context.Context, req *actions_pb.SendNotificationsRequest)
grpcapi/actionservice/AdminActionService.go:116
Function
SendOTP
(userId uint32, phoneNo string)
models/OTP.go:145
Method
SendOrder
SendOrder sends an order update to a given user
datastreams/MyOrders.go:34
Method
SendStockExchangeUpdate
SendStockExchangeUpdate records the update internally. It doesn't immediately send it. That's done by Run()
datastreams/StockExchange.go:81
Method
SendStockHistoryUpdate
SendStockHistoryUpdate sends out an update to all the listeners
datastreams/StockHistory.go:65
Method
SendStockPriceUpdate
SendStockPriceUpdate updates price of a given stock. It doesn't send it immediately. That's done by Run.
datastreams/StockPrices.go:80
Method
SendTransaction
SendOrderUpdate sends an order update to a given user
datastreams/Transactions.go:35
Method
Set
(k string, v string)
session/fakeSession.go:41
Function
SetBankruptcy
(stockId uint32, isBankrupt bool)
models/Stock.go:441
Method
SetBankruptcy
(ctx context.Context, req *actions_pb.SetBankruptcyRequest)
grpcapi/actionservice/AdminActionService.go:455
Function
SetBlockUser
(userId uint32, isBlocked bool, penalty uint64)
models/User.go:2460
Function
SetGivesDividends
(stockId uint32, givesDividends bool)
models/Stock.go:396
Method
SetGivesDividends
(ctx context.Context, req *actions_pb.SetGivesDividendsRequest)
grpcapi/actionservice/AdminActionService.go:411
Function
SetMarketDay
SetMarketDay updates marketday in db
models/Config.go:125
Method
SetMarketDay
(ctx context.Context, req *actions_pb.SetMarketDayRequest)
grpcapi/actionservice/AdminActionService.go:748
Method
Size
()
matchingengine/pqueue.go:28
Method
Size
Size returns the number of elements present in the priority queue
matchingengine/pqueue.go:227
Method
Size
Size returns the number of elements present in the priority queue
matchingengine/pqueue.go:234
Method
Size
Size mocks base method
mocks/mock_pqueue.go:71
Method
Size
Size indicates an expected call of Size
mocks/mock_pqueue.go:78
Method
Size
Size mocks base method
mocks/mock_pqueue.go:152
Method
Size
Size indicates an expected call of Size
mocks/mock_pqueue.go:159
Function
Sleep
(seconds time.Duration)
utils/test/testutils.go:18
Method
SquareOffShortSells
(ctx context.Context, req *actions_pb.SquareOffShortSellRequest)
grpcapi/actionservice/AdminActionService.go:846
Method
StartStockMatching
StartStockMatching mocks base method
mocks/mock_OrderBook.go:107
Method
StartStockMatching
StartStockMatching indicates an expected call of StartStockMatching
mocks/mock_OrderBook.go:112
← previous
next →
501–600 of 739, ranked by callers