Documentation
¶
Index ¶
- type InfoServer
- func (s *InfoServer) Accounts(ctx context.Context, in *infov1.AccountsRequest) (*infov1.AccountsResponse, error)
- func (s *InfoServer) GetSandboxPositions(ctx context.Context, in *infov1.GetSandboxPositionsRequest) (*infov1.GetSandboxPositionsResponse, error)
- func (s *InfoServer) OpenSandboxAccount(ctx context.Context, in *infov1.OpenSandboxAccountRequest) (*infov1.OpenSandboxAccountResponse, error)
- func (s *InfoServer) SandboxAccounts(ctx context.Context, in *infov1.SandboxAccountsRequest) (*infov1.SandboxAccountsResponse, error)
- func (s *InfoServer) SandboxPayIn(ctx context.Context, in *infov1.SandboxPayInRequest) (*infov1.SandboxPayInResponse, error)
- func (s *InfoServer) SearchInstrument(ctx context.Context, in *infov1.SearchInstrumentRequest) (*infov1.SearchInstrumentResponse, error)
- type InfoToProtobufMapper
- func (t *InfoToProtobufMapper) MapAccounts(in []*domain.Account) []*infov1.Account
- func (t *InfoToProtobufMapper) MapInstrument(in *domain.Share) *infov1.Instrument
- func (t *InfoToProtobufMapper) MapInstruments(in []*domain.Share) []*infov1.Instrument
- func (t *InfoToProtobufMapper) MapMoney(in *domain.MoneyValue) *infov1.Money
- func (t *InfoToProtobufMapper) MapMoneys(in []*domain.MoneyValue) []*infov1.Money
- type StackServer
- func (s *StackServer) Create(ctx context.Context, in *stackv1.CreateRequest) (*stackv1.CreateResponse, error)
- func (s *StackServer) Delete(ctx context.Context, in *stackv1.DeleteRequest) (*stackv1.DeleteResponse, error)
- func (s *StackServer) FuncArgumentVarList(ctx context.Context, in *stackv1.FuncArgumentVarListRequest) (*stackv1.FuncArgumentVarListResponse, error)
- func (s *StackServer) FuncList(ctx context.Context, in *stackv1.FuncListRequest) (*stackv1.FuncListResponse, error)
- func (s *StackServer) Get(ctx context.Context, in *stackv1.GetRequest) (*stackv1.GetResponse, error)
- func (s *StackServer) GetAll(ctx context.Context, in *stackv1.GetAllRequest) (*stackv1.GetAllResponse, error)
- func (s *StackServer) Test(ctx context.Context, in *stackv1.TestRequest) (*stackv1.TestResponse, error)
- func (s *StackServer) Update(ctx context.Context, in *stackv1.UpdateRequest) (*stackv1.UpdateResponse, error)
- type StrategyServer
- func (s *StrategyServer) Create(ctx context.Context, in *strategyv1.CreateRequest) (*strategyv1.CreateResponse, error)
- func (s *StrategyServer) Delete(ctx context.Context, in *strategyv1.DeleteRequest) (*strategyv1.DeleteResponse, error)
- func (s *StrategyServer) Get(ctx context.Context, in *strategyv1.GetRequest) (*strategyv1.GetResponse, error)
- func (s *StrategyServer) GetAll(ctx context.Context, in *strategyv1.GetAllRequest) (*strategyv1.GetAllResponse, error)
- func (s *StrategyServer) GetLogs(ctx context.Context, in *strategyv1.GetLogsRequest) (*strategyv1.GetLogsResponse, error)
- func (s *StrategyServer) Update(ctx context.Context, in *strategyv1.UpdateRequest) (*strategyv1.UpdateResponse, error)
- type StrategyToDomainMapper
- type StrategyToProtobufMapper
- func (t *StrategyToProtobufMapper) MapLog(in *domain.StrategyLog) *strategyv1.StrategyLog
- func (t *StrategyToProtobufMapper) MapLogs(in []*domain.StrategyLog) []*strategyv1.StrategyLog
- func (t *StrategyToProtobufMapper) MapStrategies(in []*domain.Strategy) []*strategyv1.Strategy
- func (t *StrategyToProtobufMapper) MapStrategy(in *domain.Strategy) *strategyv1.Strategy
- type ToDomainMapper
- func (t *ToDomainMapper) MapDecimal(in string) decimal.Decimal
- func (t *ToDomainMapper) MapSetArgument(in *stackv1.SetArgument) *engine.SetArgument
- func (t *ToDomainMapper) MapSetItem(in *stackv1.SetItem) *engine.SetStackItem
- func (t *ToDomainMapper) MapSetItems(in []*stackv1.SetItem) []*engine.SetStackItem
- func (t *ToDomainMapper) MapSetStackFunc(in *stackv1.SetStackFunc) *engine.SetStackFunc
- func (t *ToDomainMapper) MapValue(in *stackv1.Value) interface{}
- func (t *ToDomainMapper) MapVariable(in *stackv1.Variable) *baseoption.Variable
- type ToProtobufMapper
- func (t *ToProtobufMapper) MapArgument(in *engine.Argument) *stackv1.Argument
- func (t *ToProtobufMapper) MapArguments(in []*engine.Argument) []*stackv1.Argument
- func (t *ToProtobufMapper) MapDecimal(in decimal.Decimal) string
- func (t *ToProtobufMapper) MapFuncs(in []*engine.StackFunc) []*stackv1.StackFunc
- func (t *ToProtobufMapper) MapItem(in *engine.StackItem) *stackv1.Item
- func (t *ToProtobufMapper) MapStack(in *engine.Stack) *stackv1.Stack
- func (t *ToProtobufMapper) MapStackFunc(in *engine.StackFunc) *stackv1.StackFunc
- func (t *ToProtobufMapper) MapStacks(in []*engine.Stack) []*stackv1.Stack
- func (t *ToProtobufMapper) MapTestItemResult(in *engine.TestItemResult) *stackv1.TestItemResult
- func (t *ToProtobufMapper) MapTestItemResults(in []*engine.TestItemResult) []*stackv1.TestItemResult
- func (t *ToProtobufMapper) MapValue(in interface{}) *stackv1.Value
- func (t *ToProtobufMapper) MapVariable(in *baseoption.Variable) *stackv1.Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoServer ¶
type InfoServer struct {
// contains filtered or unexported fields
}
func NewInfoServer ¶
func NewInfoServer(instr *datamanager.Instruments, api apiclient.ApiClient) *InfoServer
func (*InfoServer) Accounts ¶
func (s *InfoServer) Accounts(ctx context.Context, in *infov1.AccountsRequest) (*infov1.AccountsResponse, error)
func (*InfoServer) GetSandboxPositions ¶
func (s *InfoServer) GetSandboxPositions(ctx context.Context, in *infov1.GetSandboxPositionsRequest) (*infov1.GetSandboxPositionsResponse, error)
func (*InfoServer) OpenSandboxAccount ¶
func (s *InfoServer) OpenSandboxAccount(ctx context.Context, in *infov1.OpenSandboxAccountRequest) (*infov1.OpenSandboxAccountResponse, error)
func (*InfoServer) SandboxAccounts ¶
func (s *InfoServer) SandboxAccounts(ctx context.Context, in *infov1.SandboxAccountsRequest) (*infov1.SandboxAccountsResponse, error)
func (*InfoServer) SandboxPayIn ¶
func (s *InfoServer) SandboxPayIn(ctx context.Context, in *infov1.SandboxPayInRequest) (*infov1.SandboxPayInResponse, error)
func (*InfoServer) SearchInstrument ¶
func (s *InfoServer) SearchInstrument(ctx context.Context, in *infov1.SearchInstrumentRequest) (*infov1.SearchInstrumentResponse, error)
type InfoToProtobufMapper ¶
type InfoToProtobufMapper struct { }
func (*InfoToProtobufMapper) MapAccounts ¶
func (t *InfoToProtobufMapper) MapAccounts(in []*domain.Account) []*infov1.Account
func (*InfoToProtobufMapper) MapInstrument ¶
func (t *InfoToProtobufMapper) MapInstrument(in *domain.Share) *infov1.Instrument
func (*InfoToProtobufMapper) MapInstruments ¶
func (t *InfoToProtobufMapper) MapInstruments(in []*domain.Share) []*infov1.Instrument
func (*InfoToProtobufMapper) MapMoney ¶
func (t *InfoToProtobufMapper) MapMoney(in *domain.MoneyValue) *infov1.Money
func (*InfoToProtobufMapper) MapMoneys ¶
func (t *InfoToProtobufMapper) MapMoneys(in []*domain.MoneyValue) []*infov1.Money
type StackServer ¶
type StackServer struct {
// contains filtered or unexported fields
}
func NewStackServer ¶
func NewStackServer(sm *engine.StackManager, sfr *engine.StackFuncRepository, ts *engine.TestStack) *StackServer
func (*StackServer) Create ¶
func (s *StackServer) Create(ctx context.Context, in *stackv1.CreateRequest) (*stackv1.CreateResponse, error)
func (*StackServer) Delete ¶
func (s *StackServer) Delete(ctx context.Context, in *stackv1.DeleteRequest) (*stackv1.DeleteResponse, error)
func (*StackServer) FuncArgumentVarList ¶
func (s *StackServer) FuncArgumentVarList(ctx context.Context, in *stackv1.FuncArgumentVarListRequest) (*stackv1.FuncArgumentVarListResponse, error)
func (*StackServer) FuncList ¶
func (s *StackServer) FuncList(ctx context.Context, in *stackv1.FuncListRequest) (*stackv1.FuncListResponse, error)
func (*StackServer) Get ¶
func (s *StackServer) Get(ctx context.Context, in *stackv1.GetRequest) (*stackv1.GetResponse, error)
func (*StackServer) GetAll ¶
func (s *StackServer) GetAll(ctx context.Context, in *stackv1.GetAllRequest) (*stackv1.GetAllResponse, error)
func (*StackServer) Test ¶
func (s *StackServer) Test(ctx context.Context, in *stackv1.TestRequest) (*stackv1.TestResponse, error)
func (*StackServer) Update ¶
func (s *StackServer) Update(ctx context.Context, in *stackv1.UpdateRequest) (*stackv1.UpdateResponse, error)
type StrategyServer ¶
type StrategyServer struct {
// contains filtered or unexported fields
}
func NewStrategyServer ¶
func NewStrategyServer(se *engine.StrategyEngine) *StrategyServer
func (*StrategyServer) Create ¶
func (s *StrategyServer) Create(ctx context.Context, in *strategyv1.CreateRequest) (*strategyv1.CreateResponse, error)
func (*StrategyServer) Delete ¶
func (s *StrategyServer) Delete(ctx context.Context, in *strategyv1.DeleteRequest) (*strategyv1.DeleteResponse, error)
func (*StrategyServer) Get ¶
func (s *StrategyServer) Get(ctx context.Context, in *strategyv1.GetRequest) (*strategyv1.GetResponse, error)
func (*StrategyServer) GetAll ¶
func (s *StrategyServer) GetAll(ctx context.Context, in *strategyv1.GetAllRequest) (*strategyv1.GetAllResponse, error)
func (*StrategyServer) GetLogs ¶
func (s *StrategyServer) GetLogs(ctx context.Context, in *strategyv1.GetLogsRequest) (*strategyv1.GetLogsResponse, error)
func (*StrategyServer) Update ¶
func (s *StrategyServer) Update(ctx context.Context, in *strategyv1.UpdateRequest) (*strategyv1.UpdateResponse, error)
type StrategyToDomainMapper ¶
type StrategyToDomainMapper struct { }
func (*StrategyToDomainMapper) MapStrategy ¶
func (t *StrategyToDomainMapper) MapStrategy(in *strategyv1.Strategy) *domain.Strategy
type StrategyToProtobufMapper ¶
type StrategyToProtobufMapper struct { }
func (*StrategyToProtobufMapper) MapLog ¶
func (t *StrategyToProtobufMapper) MapLog(in *domain.StrategyLog) *strategyv1.StrategyLog
func (*StrategyToProtobufMapper) MapLogs ¶
func (t *StrategyToProtobufMapper) MapLogs(in []*domain.StrategyLog) []*strategyv1.StrategyLog
func (*StrategyToProtobufMapper) MapStrategies ¶
func (t *StrategyToProtobufMapper) MapStrategies(in []*domain.Strategy) []*strategyv1.Strategy
func (*StrategyToProtobufMapper) MapStrategy ¶
func (t *StrategyToProtobufMapper) MapStrategy(in *domain.Strategy) *strategyv1.Strategy
type ToDomainMapper ¶
type ToDomainMapper struct { }
func (*ToDomainMapper) MapDecimal ¶
func (t *ToDomainMapper) MapDecimal(in string) decimal.Decimal
func (*ToDomainMapper) MapSetArgument ¶
func (t *ToDomainMapper) MapSetArgument(in *stackv1.SetArgument) *engine.SetArgument
func (*ToDomainMapper) MapSetItem ¶
func (t *ToDomainMapper) MapSetItem(in *stackv1.SetItem) *engine.SetStackItem
func (*ToDomainMapper) MapSetItems ¶
func (t *ToDomainMapper) MapSetItems(in []*stackv1.SetItem) []*engine.SetStackItem
func (*ToDomainMapper) MapSetStackFunc ¶
func (t *ToDomainMapper) MapSetStackFunc(in *stackv1.SetStackFunc) *engine.SetStackFunc
func (*ToDomainMapper) MapValue ¶
func (t *ToDomainMapper) MapValue(in *stackv1.Value) interface{}
func (*ToDomainMapper) MapVariable ¶
func (t *ToDomainMapper) MapVariable(in *stackv1.Variable) *baseoption.Variable
type ToProtobufMapper ¶
type ToProtobufMapper struct { }
func (*ToProtobufMapper) MapArgument ¶
func (t *ToProtobufMapper) MapArgument(in *engine.Argument) *stackv1.Argument
func (*ToProtobufMapper) MapArguments ¶
func (t *ToProtobufMapper) MapArguments(in []*engine.Argument) []*stackv1.Argument
func (*ToProtobufMapper) MapDecimal ¶
func (t *ToProtobufMapper) MapDecimal(in decimal.Decimal) string
func (*ToProtobufMapper) MapFuncs ¶
func (t *ToProtobufMapper) MapFuncs(in []*engine.StackFunc) []*stackv1.StackFunc
func (*ToProtobufMapper) MapItem ¶
func (t *ToProtobufMapper) MapItem(in *engine.StackItem) *stackv1.Item
func (*ToProtobufMapper) MapStack ¶
func (t *ToProtobufMapper) MapStack(in *engine.Stack) *stackv1.Stack
func (*ToProtobufMapper) MapStackFunc ¶
func (t *ToProtobufMapper) MapStackFunc(in *engine.StackFunc) *stackv1.StackFunc
func (*ToProtobufMapper) MapStacks ¶
func (t *ToProtobufMapper) MapStacks(in []*engine.Stack) []*stackv1.Stack
func (*ToProtobufMapper) MapTestItemResult ¶
func (t *ToProtobufMapper) MapTestItemResult(in *engine.TestItemResult) *stackv1.TestItemResult
func (*ToProtobufMapper) MapTestItemResults ¶
func (t *ToProtobufMapper) MapTestItemResults(in []*engine.TestItemResult) []*stackv1.TestItemResult
func (*ToProtobufMapper) MapValue ¶
func (t *ToProtobufMapper) MapValue(in interface{}) *stackv1.Value
func (*ToProtobufMapper) MapVariable ¶
func (t *ToProtobufMapper) MapVariable(in *baseoption.Variable) *stackv1.Variable
Source Files
¶
Click to show internal directories.
Click to hide internal directories.