Documentation ¶
Overview ¶
Copyright 2021 Sander Ruscigno
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 Sander Ruscigno ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type HttpTickerBeats
- type HttpTransaction
- func (c *HttpTransaction) AccountHandler(w http.ResponseWriter, r *http.Request)
- func (c *HttpTransaction) DealsHandler(w http.ResponseWriter, r *http.Request)
- func (c *HttpTransaction) OrdersHandler(w http.ResponseWriter, r *http.Request)
- func (c *HttpTransaction) PositionsHandler(w http.ResponseWriter, r *http.Request)
- func (c *HttpTransaction) TransactionHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpTickerBeats ¶
type HttpTickerBeats struct {
// contains filtered or unexported fields
}
HttpTickerBeats grpc
func NewHttpTickerBeats ¶
func NewHttpTickerBeats(ctx context.Context, cc *grpc.ClientConn, mongo *db.MongoDbService) *HttpTickerBeats
NewHttpTickerBeats return a new service instance
func (*HttpTickerBeats) GetTickerBeats ¶
func (c *HttpTickerBeats) GetTickerBeats(w http.ResponseWriter, r *http.Request)
Get TickerBeats from Ticker-Heart server
type HttpTransaction ¶
type HttpTransaction struct {
// contains filtered or unexported fields
}
Client grpc
func NewHttpTransaction ¶
func NewHttpTransaction(ctx context.Context, con *grpc.ClientConn, cc *api.TransactionGRPc, mongo *db.MongoDbService) *HttpTransaction
NewClient return a new Client instance
func (*HttpTransaction) AccountHandler ¶
func (c *HttpTransaction) AccountHandler(w http.ResponseWriter, r *http.Request)
AccountHandler handles accounts notifications
func (*HttpTransaction) DealsHandler ¶
func (c *HttpTransaction) DealsHandler(w http.ResponseWriter, r *http.Request)
DealsHandler handles deals notifications
func (*HttpTransaction) OrdersHandler ¶
func (c *HttpTransaction) OrdersHandler(w http.ResponseWriter, r *http.Request)
OrdersHandler handles orders notifications
func (*HttpTransaction) PositionsHandler ¶
func (c *HttpTransaction) PositionsHandler(w http.ResponseWriter, r *http.Request)
PositionsHandler handles position notifications
func (*HttpTransaction) TransactionHandler ¶
func (c *HttpTransaction) TransactionHandler(w http.ResponseWriter, r *http.Request)
TransactionHandler handles transaction notifications