Documentation ¶
Index ¶
- func RegisterStrategyAPIServer(s *grpc.Server, srv StrategyAPIServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) String() string
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (m *CreateResponse) GetStrategy() *Strategy
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) String() string
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetId() string
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type GetAllRequest
- func (*GetAllRequest) Descriptor() ([]byte, []int)
- func (*GetAllRequest) ProtoMessage()
- func (m *GetAllRequest) Reset()
- func (m *GetAllRequest) String() string
- func (m *GetAllRequest) XXX_DiscardUnknown()
- func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllRequest) XXX_Merge(src proto.Message)
- func (m *GetAllRequest) XXX_Size() int
- func (m *GetAllRequest) XXX_Unmarshal(b []byte) error
- type GetAllResponse
- func (*GetAllResponse) Descriptor() ([]byte, []int)
- func (m *GetAllResponse) GetStrategies() []*Strategy
- func (*GetAllResponse) ProtoMessage()
- func (m *GetAllResponse) Reset()
- func (m *GetAllResponse) String() string
- func (m *GetAllResponse) XXX_DiscardUnknown()
- func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllResponse) XXX_Merge(src proto.Message)
- func (m *GetAllResponse) XXX_Size() int
- func (m *GetAllResponse) XXX_Unmarshal(b []byte) error
- type GetLogsRequest
- func (*GetLogsRequest) Descriptor() ([]byte, []int)
- func (m *GetLogsRequest) GetId() string
- func (*GetLogsRequest) ProtoMessage()
- func (m *GetLogsRequest) Reset()
- func (m *GetLogsRequest) String() string
- func (m *GetLogsRequest) XXX_DiscardUnknown()
- func (m *GetLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLogsRequest) XXX_Merge(src proto.Message)
- func (m *GetLogsRequest) XXX_Size() int
- func (m *GetLogsRequest) XXX_Unmarshal(b []byte) error
- type GetLogsResponse
- func (*GetLogsResponse) Descriptor() ([]byte, []int)
- func (m *GetLogsResponse) GetLogs() []*StrategyLog
- func (*GetLogsResponse) ProtoMessage()
- func (m *GetLogsResponse) Reset()
- func (m *GetLogsResponse) String() string
- func (m *GetLogsResponse) XXX_DiscardUnknown()
- func (m *GetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLogsResponse) XXX_Merge(src proto.Message)
- func (m *GetLogsResponse) XXX_Size() int
- func (m *GetLogsResponse) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetId() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetStrategy() *Strategy
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type Strategy
- func (*Strategy) Descriptor() ([]byte, []int)
- func (m *Strategy) GetAccountId() string
- func (m *Strategy) GetEnabled() bool
- func (m *Strategy) GetId() string
- func (m *Strategy) GetRunIntervalDuration() *duration.Duration
- func (m *Strategy) GetStackId() string
- func (*Strategy) ProtoMessage()
- func (m *Strategy) Reset()
- func (m *Strategy) String() string
- func (m *Strategy) XXX_DiscardUnknown()
- func (m *Strategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Strategy) XXX_Merge(src proto.Message)
- func (m *Strategy) XXX_Size() int
- func (m *Strategy) XXX_Unmarshal(b []byte) error
- type StrategyAPIClient
- type StrategyAPIServer
- type StrategyLog
- func (*StrategyLog) Descriptor() ([]byte, []int)
- func (m *StrategyLog) GetLogType() string
- func (m *StrategyLog) GetMessage() string
- func (m *StrategyLog) GetTime() *timestamp.Timestamp
- func (*StrategyLog) ProtoMessage()
- func (m *StrategyLog) Reset()
- func (m *StrategyLog) String() string
- func (m *StrategyLog) XXX_DiscardUnknown()
- func (m *StrategyLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StrategyLog) XXX_Merge(src proto.Message)
- func (m *StrategyLog) XXX_Size() int
- func (m *StrategyLog) XXX_Unmarshal(b []byte) error
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetStrategy() *Strategy
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStrategyAPIServer ¶
func RegisterStrategyAPIServer(s *grpc.Server, srv StrategyAPIServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateResponse ¶
type CreateResponse struct { Strategy *Strategy `protobuf:"bytes,1,opt,name=strategy,proto3" json:"strategy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) GetStrategy ¶
func (m *CreateResponse) GetStrategy() *Strategy
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type DeleteRequest ¶
type DeleteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetId ¶
func (m *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type GetAllRequest ¶
type GetAllRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAllRequest) Descriptor ¶
func (*GetAllRequest) Descriptor() ([]byte, []int)
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) Reset ¶
func (m *GetAllRequest) Reset()
func (*GetAllRequest) String ¶
func (m *GetAllRequest) String() string
func (*GetAllRequest) XXX_DiscardUnknown ¶
func (m *GetAllRequest) XXX_DiscardUnknown()
func (*GetAllRequest) XXX_Marshal ¶
func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllRequest) XXX_Merge ¶
func (m *GetAllRequest) XXX_Merge(src proto.Message)
func (*GetAllRequest) XXX_Size ¶
func (m *GetAllRequest) XXX_Size() int
func (*GetAllRequest) XXX_Unmarshal ¶
func (m *GetAllRequest) XXX_Unmarshal(b []byte) error
type GetAllResponse ¶
type GetAllResponse struct { Strategies []*Strategy `protobuf:"bytes,1,rep,name=strategies,proto3" json:"strategies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAllResponse) Descriptor ¶
func (*GetAllResponse) Descriptor() ([]byte, []int)
func (*GetAllResponse) GetStrategies ¶
func (m *GetAllResponse) GetStrategies() []*Strategy
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) Reset ¶
func (m *GetAllResponse) Reset()
func (*GetAllResponse) String ¶
func (m *GetAllResponse) String() string
func (*GetAllResponse) XXX_DiscardUnknown ¶
func (m *GetAllResponse) XXX_DiscardUnknown()
func (*GetAllResponse) XXX_Marshal ¶
func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllResponse) XXX_Merge ¶
func (m *GetAllResponse) XXX_Merge(src proto.Message)
func (*GetAllResponse) XXX_Size ¶
func (m *GetAllResponse) XXX_Size() int
func (*GetAllResponse) XXX_Unmarshal ¶
func (m *GetAllResponse) XXX_Unmarshal(b []byte) error
type GetLogsRequest ¶
type GetLogsRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLogsRequest) Descriptor ¶
func (*GetLogsRequest) Descriptor() ([]byte, []int)
func (*GetLogsRequest) GetId ¶
func (m *GetLogsRequest) GetId() string
func (*GetLogsRequest) ProtoMessage ¶
func (*GetLogsRequest) ProtoMessage()
func (*GetLogsRequest) Reset ¶
func (m *GetLogsRequest) Reset()
func (*GetLogsRequest) String ¶
func (m *GetLogsRequest) String() string
func (*GetLogsRequest) XXX_DiscardUnknown ¶
func (m *GetLogsRequest) XXX_DiscardUnknown()
func (*GetLogsRequest) XXX_Marshal ¶
func (m *GetLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLogsRequest) XXX_Merge ¶
func (m *GetLogsRequest) XXX_Merge(src proto.Message)
func (*GetLogsRequest) XXX_Size ¶
func (m *GetLogsRequest) XXX_Size() int
func (*GetLogsRequest) XXX_Unmarshal ¶
func (m *GetLogsRequest) XXX_Unmarshal(b []byte) error
type GetLogsResponse ¶
type GetLogsResponse struct { Logs []*StrategyLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLogsResponse) Descriptor ¶
func (*GetLogsResponse) Descriptor() ([]byte, []int)
func (*GetLogsResponse) GetLogs ¶
func (m *GetLogsResponse) GetLogs() []*StrategyLog
func (*GetLogsResponse) ProtoMessage ¶
func (*GetLogsResponse) ProtoMessage()
func (*GetLogsResponse) Reset ¶
func (m *GetLogsResponse) Reset()
func (*GetLogsResponse) String ¶
func (m *GetLogsResponse) String() string
func (*GetLogsResponse) XXX_DiscardUnknown ¶
func (m *GetLogsResponse) XXX_DiscardUnknown()
func (*GetLogsResponse) XXX_Marshal ¶
func (m *GetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLogsResponse) XXX_Merge ¶
func (m *GetLogsResponse) XXX_Merge(src proto.Message)
func (*GetLogsResponse) XXX_Size ¶
func (m *GetLogsResponse) XXX_Size() int
func (*GetLogsResponse) XXX_Unmarshal ¶
func (m *GetLogsResponse) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetId ¶
func (m *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct { Strategy *Strategy `protobuf:"bytes,1,opt,name=strategy,proto3" json:"strategy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetStrategy ¶
func (m *GetResponse) GetStrategy() *Strategy
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type Strategy ¶
type Strategy struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` StackId string `protobuf:"bytes,2,opt,name=stack_id,json=stackId,proto3" json:"stack_id,omitempty"` AccountId string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` RunIntervalDuration *duration.Duration `protobuf:"bytes,4,opt,name=run_interval_duration,json=runIntervalDuration,proto3" json:"run_interval_duration,omitempty"` Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Стратегия.
func (*Strategy) Descriptor ¶
func (*Strategy) GetAccountId ¶
func (*Strategy) GetEnabled ¶
func (*Strategy) GetRunIntervalDuration ¶
func (*Strategy) GetStackId ¶
func (*Strategy) ProtoMessage ¶
func (*Strategy) ProtoMessage()
func (*Strategy) XXX_DiscardUnknown ¶
func (m *Strategy) XXX_DiscardUnknown()
func (*Strategy) XXX_Marshal ¶
func (*Strategy) XXX_Unmarshal ¶
type StrategyAPIClient ¶
type StrategyAPIClient interface { // Создаёт новую стратегию. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // Возвращает стратегию. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Возвращает список всех стратегий. GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) // Обновляет стратегию. Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) // Удаляет стратегию. Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) // Возвращает логи запуска стратегии. GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (*GetLogsResponse, error) }
StrategyAPIClient is the client API for StrategyAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStrategyAPIClient ¶
func NewStrategyAPIClient(cc *grpc.ClientConn) StrategyAPIClient
type StrategyAPIServer ¶
type StrategyAPIServer interface { // Создаёт новую стратегию. Create(context.Context, *CreateRequest) (*CreateResponse, error) // Возвращает стратегию. Get(context.Context, *GetRequest) (*GetResponse, error) // Возвращает список всех стратегий. GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) // Обновляет стратегию. Update(context.Context, *UpdateRequest) (*UpdateResponse, error) // Удаляет стратегию. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // Возвращает логи запуска стратегии. GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) }
StrategyAPIServer is the server API for StrategyAPI service.
type StrategyLog ¶
type StrategyLog struct { LogType string `protobuf:"bytes,1,opt,name=log_type,json=logType,proto3" json:"log_type,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Time *timestamp.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Лог.
func (*StrategyLog) Descriptor ¶
func (*StrategyLog) Descriptor() ([]byte, []int)
func (*StrategyLog) GetLogType ¶
func (m *StrategyLog) GetLogType() string
func (*StrategyLog) GetMessage ¶
func (m *StrategyLog) GetMessage() string
func (*StrategyLog) GetTime ¶
func (m *StrategyLog) GetTime() *timestamp.Timestamp
func (*StrategyLog) ProtoMessage ¶
func (*StrategyLog) ProtoMessage()
func (*StrategyLog) Reset ¶
func (m *StrategyLog) Reset()
func (*StrategyLog) String ¶
func (m *StrategyLog) String() string
func (*StrategyLog) XXX_DiscardUnknown ¶
func (m *StrategyLog) XXX_DiscardUnknown()
func (*StrategyLog) XXX_Marshal ¶
func (m *StrategyLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StrategyLog) XXX_Merge ¶
func (m *StrategyLog) XXX_Merge(src proto.Message)
func (*StrategyLog) XXX_Size ¶
func (m *StrategyLog) XXX_Size() int
func (*StrategyLog) XXX_Unmarshal ¶
func (m *StrategyLog) XXX_Unmarshal(b []byte) error
type UpdateRequest ¶
type UpdateRequest struct { Strategy *Strategy `protobuf:"bytes,1,opt,name=strategy,proto3" json:"strategy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetStrategy ¶
func (m *UpdateRequest) GetStrategy() *Strategy
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateResponse ¶
type UpdateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
func (*UpdateResponse) XXX_Size ¶
func (m *UpdateResponse) XXX_Size() int
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.