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 TickerBeatsServiceServer
- type TransactionsServiceServer
- func (s *TransactionsServiceServer) CreateAccount(ctx context.Context, req *v1.CreateAccountRequest) (*pb1.Empty, error)
- func (s *TransactionsServiceServer) CreateDeals(ctx context.Context, req *v1.CreateDealsRequest) (*emptypb.Empty, error)
- func (s *TransactionsServiceServer) CreateOrders(ctx context.Context, req *v1.CreateOrdersRequest) (*emptypb.Empty, error)
- func (s *TransactionsServiceServer) CreatePositions(ctx context.Context, req *v1.CreatePositionsRequest) (*emptypb.Empty, error)
- func (s *TransactionsServiceServer) CreateTradeTransaction(ctx context.Context, req *v1.CreateTradeTransactionRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TickerBeatsServiceServer ¶ added in v0.9.2
type TickerBeatsServiceServer struct { v1.UnimplementedTickerBeatsServiceServer // contains filtered or unexported fields }
TransactionsServiceServer is used to implement TransactionsServiceServer
func NewTickerBeatsServiceServer ¶ added in v0.9.2
func NewTickerBeatsServiceServer(ticker svc.TickerBeatsService) *TickerBeatsServiceServer
NewTickerBeatsServiceServer creates a new API server handler
func (*TickerBeatsServiceServer) GetTickerBeats ¶ added in v0.9.2
func (t *TickerBeatsServiceServer) GetTickerBeats(ctx context.Context, req *v1.TickerBeatsRequest) (*v1.TickerBeatsResponse, error)
type TransactionsServiceServer ¶ added in v0.9.2
type TransactionsServiceServer struct { v1.UnimplementedTransactionsServiceServer // contains filtered or unexported fields }
TransactionsServiceServer is used to implement TransactionsServiceServer
func NewTransactionsServiceServer ¶ added in v0.9.2
func NewTransactionsServiceServer( accSvc accService.AccountsService, infoSvc infoS.AccountsInfoService, deaSvc deaService.DealsService, ordSvc ordService.OrdersService, posSvc posService.PositionsService, ttSvc ttService.TradeTransactionService, beats bb.TickerBeatsService, ) *TransactionsServiceServer
NewTransactionsServiceServer creates a new API server handler
func (*TransactionsServiceServer) CreateAccount ¶ added in v0.9.2
func (s *TransactionsServiceServer) CreateAccount(ctx context.Context, req *v1.CreateAccountRequest) (*pb1.Empty, error)
CreateAccount Create a new account
func (*TransactionsServiceServer) CreateDeals ¶ added in v0.9.2
func (s *TransactionsServiceServer) CreateDeals(ctx context.Context, req *v1.CreateDealsRequest) (*emptypb.Empty, error)
CreateDeals Create a new beats
func (*TransactionsServiceServer) CreateOrders ¶ added in v0.9.2
func (s *TransactionsServiceServer) CreateOrders(ctx context.Context, req *v1.CreateOrdersRequest) (*emptypb.Empty, error)
CreateOrders a new order
func (*TransactionsServiceServer) CreatePositions ¶ added in v0.9.2
func (s *TransactionsServiceServer) CreatePositions(ctx context.Context, req *v1.CreatePositionsRequest) (*emptypb.Empty, error)
func (*TransactionsServiceServer) CreateTradeTransaction ¶ added in v0.9.2
func (s *TransactionsServiceServer) CreateTradeTransaction(ctx context.Context, req *v1.CreateTradeTransactionRequest) (*emptypb.Empty, error)