MCPcopy Create free account

hub / github.com/delta/dalal-street-server / functions

Functions739 in github.com/delta/dalal-street-server

FunctionInspectComponents
()
models/InspectComponents.go:206
MethodInspectConnectedComponents
(ctx context.Context, req *actions_pb.InspectComponentsRequest)
grpcapi/actionservice/AdminActionService.go:809
MethodInspectUser
(ctx context.Context, req *actions_pb.InspectUserRequest)
grpcapi/actionservice/AdminActionService.go:499
FunctionInspectUserDegree
()
models/InspectUserDegree.go:176
MethodInspectUserDegree
(ctx context.Context, req *actions_pb.InspectDegreeRequest)
grpcapi/actionservice/AdminActionService.go:777
FunctionIsAdmin
(username, password string)
models/Admin.go:7
FunctionIsAdminAuth
(userId uint32)
models/User.go:2430
FunctionIsUserOTPBlocked
(userId uint32)
models/User.go:2436
MethodLoadOldAsk
LoadOldAsk mocks base method
mocks/mock_OrderBook.go:47
MethodLoadOldAsk
LoadOldAsk indicates an expected call of LoadOldAsk
mocks/mock_OrderBook.go:52
MethodLoadOldBid
LoadOldBid mocks base method
mocks/mock_OrderBook.go:57
MethodLoadOldBid
LoadOldBid indicates an expected call of LoadOldBid
mocks/mock_OrderBook.go:62
MethodLoadOldTransactions
(txs []*models.Transaction)
matchingengine/OrderBook.go:83
MethodLoadOldTransactions
LoadOldTransactions mocks base method
mocks/mock_OrderBook.go:37
MethodLoadOldTransactions
LoadOldTransactions indicates an expected call of LoadOldTransactions
mocks/mock_OrderBook.go:42
MethodLoadStocks
(ctx context.Context, req *actions_pb.LoadStocksRequest)
grpcapi/actionservice/AdminActionService.go:158
FunctionLogout
Logout removes the user from RAM.
models/User.go:2418
MethodLogout
(ctx context.Context, req *actions_pb.LogoutRequest)
grpcapi/actionservice/AuthActionService.go:182
MethodMakeGlobalBroadcast
MakeGlobalBroadcast broadcasts a given update to *all* listeners in the stream
datastreams/MulticastStream.go:131
FunctionMinTripleInt64
(a, b, c int64)
utils/utils.go:57
MethodMortgageStocks
(ctx context.Context, req *actions_pb.MortgageStocksRequest)
grpcapi/actionservice/MortgageActionService.go:12
FunctionNewMockMatchingEngine
NewMockMatchingEngine creates a new mock instance
mocks/mock_MatchingEngine.go:25
FunctionOpenDailyChallenge
OpenDailyChallenge opens dailyChallenge saves initial user state depending upon the challengetype in db for later computation while Closing dailyChall
models/DailyChallenge.go:187
MethodOpenDailyChallenge
(ctx context.Context, req *actions_pb.OpenDailyChallengeRequest)
grpcapi/actionservice/AdminActionService.go:669
MethodOpenIpoBidding
(ctx context.Context, req *actions_pb.OpenIpoBiddingRequest)
grpcapi/actionservice/AdminActionService.go:877
MethodOpenMarket
(ctx context.Context, req *actions_pb.OpenMarketRequest)
grpcapi/actionservice/AdminActionService.go:21
FunctionPerformDividendsTransaction
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
MethodPlaceIpoBid
(ctx context.Context, req *actions_pb.PlaceIpoBidRequest)
grpcapi/actionservice/OrderActionService.go:152
MethodPlaceOrder
(ctx context.Context, req *actions_pb.PlaceOrderRequest)
grpcapi/actionservice/OrderActionService.go:69
MethodPop
()
matchingengine/pqueue.go:26
MethodPop
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
MethodPop
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
MethodPop
Pop mocks base method
mocks/mock_pqueue.go:47
MethodPop
Pop indicates an expected call of Pop
mocks/mock_pqueue.go:54
MethodPop
Pop mocks base method
mocks/mock_pqueue.go:128
MethodPop
Pop indicates an expected call of Pop
mocks/mock_pqueue.go:135
MethodPush
(*models.Ask)
matchingengine/pqueue.go:25
MethodPush
Push the value item into the priority queue with provided priority.
matchingengine/pqueue.go:135
MethodPush
Push the value item into the priority queue with provided priority.
matchingengine/pqueue.go:146
MethodPush
Push mocks base method
mocks/mock_pqueue.go:37
MethodPush
Push indicates an expected call of Push
mocks/mock_pqueue.go:42
MethodPush
Push mocks base method
mocks/mock_pqueue.go:118
MethodPush
Push indicates an expected call of Push
mocks/mock_pqueue.go:123
MethodRegister
(ctx context.Context, req *actions_pb.RegisterRequest)
grpcapi/actionservice/AuthActionService.go:48
MethodRemoveListener
RemoveListener mocks base method
mocks/mock_MarketDepth.go:46
MethodRemoveListener
RemoveListener indicates an expected call of RemoveListener
mocks/mock_MarketDepth.go:51
MethodRemoveListener
RemoveListener removes a listener from a marketDepthStream
datastreams/MarketDepth.go:192
MethodRemoveListener
(sessionId string)
datastreams/StockHistory.go:14
MethodRemoveListener
RemoveListener removes a listener from the StockHistory stream
datastreams/StockHistory.go:53
MethodRemoveListener
RemoveListener removes a listener from the MyOrders stream
datastreams/MarketEvents.go:65
MethodRemoveListener
RemoveListener removes a given listener from the subscribers list
datastreams/GameStateStream.go:73
MethodRemoveListener
RemoveListener removes a given listener from the subscribers list
datastreams/Notifications.go:73
MethodRemoveListener
RemoveListener removes a listener from the StockExchangeStream
datastreams/StockExchange.go:111
MethodRemoveListener
RemoveListener removes a listener from a group of a stream. Removes group if empty.
datastreams/MulticastStream.go:69
MethodRemoveListener
(sessionId string)
datastreams/StockPrices.go:18
MethodRemoveListener
RemoveListener removes a listener from the StockPricesStream
datastreams/StockPrices.go:109
MethodRemoveListener
RemoveListener removes a listener from the Transactions stream
datastreams/Transactions.go:67
MethodRemoveListener
(sessionId string)
datastreams/BroadcastStream.go:14
MethodRemoveListener
RemoveListener removes a listener from a stream
datastreams/BroadcastStream.go:58
MethodRemoveListener
RemoveListener removes a listener from the MyOrders stream
datastreams/MyOrders.go:63
FunctionResendVerificationEmail
(email string)
models/Registration.go:69
MethodResendVerificationEmail
(ctx context.Context, req *actions_pb.ResendVerificationEmailRequest)
grpcapi/actionservice/AuthActionService.go:201
FunctionResolutionFromProto
ResolutionFromProto converts proto StockHistoryResolution to a model's Resolution value
models/StockHistory.go:55
MethodRetrieveMortgageStocks
(ctx context.Context, req *actions_pb.RetrieveMortgageStocksRequest)
grpcapi/actionservice/MortgageActionService.go:66
MethodRun
()
datastreams/StockExchange.go:16
MethodRun
Run runs the StockExchangeStream. Call in a go func. Repeatedly broadcasts stockexchange data every 15s, if there's any update
datastreams/StockExchange.go:44
MethodRun
Run runs the StockPricesStream. Call in a gofunc. Repeatedly broadcasts stock prices every 15 seconds, if there's any update
datastreams/StockPrices.go:43
MethodScan
(value interface{})
models/Transaction.go:14
MethodSendDividends
(ctx context.Context, req *actions_pb.SendDividendsRequest)
grpcapi/actionservice/AdminActionService.go:363
FunctionSendGameStateUpadate
SendGameStateUpadate sends gamestateupdate to multicast stream
models/GameState.go:141
MethodSendGameStateUpdate
SendGameStateUpdate sends a update to all connections of a given user
datastreams/GameStateStream.go:37
MethodSendMarketEvent
SendOrderUpdate sends an order update to a given user
datastreams/MarketEvents.go:35
MethodSendNews
(ctx context.Context, req *actions_pb.SendNewsRequest)
grpcapi/actionservice/AdminActionService.go:13
MethodSendNotification
SendNotification sends a notification to all connections of a given user
datastreams/Notifications.go:37
MethodSendNotifications
(ctx context.Context, req *actions_pb.SendNotificationsRequest)
grpcapi/actionservice/AdminActionService.go:116
FunctionSendOTP
(userId uint32, phoneNo string)
models/OTP.go:145
MethodSendOrder
SendOrder sends an order update to a given user
datastreams/MyOrders.go:34
MethodSendStockExchangeUpdate
SendStockExchangeUpdate records the update internally. It doesn't immediately send it. That's done by Run()
datastreams/StockExchange.go:81
MethodSendStockHistoryUpdate
SendStockHistoryUpdate sends out an update to all the listeners
datastreams/StockHistory.go:65
MethodSendStockPriceUpdate
SendStockPriceUpdate updates price of a given stock. It doesn't send it immediately. That's done by Run.
datastreams/StockPrices.go:80
MethodSendTransaction
SendOrderUpdate sends an order update to a given user
datastreams/Transactions.go:35
MethodSet
(k string, v string)
session/fakeSession.go:41
FunctionSetBankruptcy
(stockId uint32, isBankrupt bool)
models/Stock.go:441
MethodSetBankruptcy
(ctx context.Context, req *actions_pb.SetBankruptcyRequest)
grpcapi/actionservice/AdminActionService.go:455
FunctionSetBlockUser
(userId uint32, isBlocked bool, penalty uint64)
models/User.go:2460
FunctionSetGivesDividends
(stockId uint32, givesDividends bool)
models/Stock.go:396
MethodSetGivesDividends
(ctx context.Context, req *actions_pb.SetGivesDividendsRequest)
grpcapi/actionservice/AdminActionService.go:411
FunctionSetMarketDay
SetMarketDay updates marketday in db
models/Config.go:125
MethodSetMarketDay
(ctx context.Context, req *actions_pb.SetMarketDayRequest)
grpcapi/actionservice/AdminActionService.go:748
MethodSize
()
matchingengine/pqueue.go:28
MethodSize
Size returns the number of elements present in the priority queue
matchingengine/pqueue.go:227
MethodSize
Size returns the number of elements present in the priority queue
matchingengine/pqueue.go:234
MethodSize
Size mocks base method
mocks/mock_pqueue.go:71
MethodSize
Size indicates an expected call of Size
mocks/mock_pqueue.go:78
MethodSize
Size mocks base method
mocks/mock_pqueue.go:152
MethodSize
Size indicates an expected call of Size
mocks/mock_pqueue.go:159
FunctionSleep
(seconds time.Duration)
utils/test/testutils.go:18
MethodSquareOffShortSells
(ctx context.Context, req *actions_pb.SquareOffShortSellRequest)
grpcapi/actionservice/AdminActionService.go:846
MethodStartStockMatching
StartStockMatching mocks base method
mocks/mock_OrderBook.go:107
MethodStartStockMatching
StartStockMatching indicates an expected call of StartStockMatching
mocks/mock_OrderBook.go:112
← previousnext →501–600 of 739, ranked by callers