Documentation
¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterRecordServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRecordServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RecordServiceClient) error
- func RegisterRecordServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRecordServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RecordServiceServer) error
- func RegisterRecordServiceServer(s grpc.ServiceRegistrar, srv RecordServiceServer)
- type CreateRecordRequest
- func (*CreateRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRecordRequest) GetBaseInstrument() string
- func (x *CreateRecordRequest) GetComments() string
- func (x *CreateRecordRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreateRecordRequest) GetCreatedBy() uint64
- func (x *CreateRecordRequest) GetDirection() string
- func (x *CreateRecordRequest) GetEntryPrice() float32
- func (x *CreateRecordRequest) GetExitPrice() float32
- func (x *CreateRecordRequest) GetJournal() uint64
- func (x *CreateRecordRequest) GetMarket() string
- func (x *CreateRecordRequest) GetOutcome() string
- func (x *CreateRecordRequest) GetQuantity() float32
- func (x *CreateRecordRequest) GetQuoteInstrument() string
- func (x *CreateRecordRequest) GetStopLoss() float32
- func (x *CreateRecordRequest) GetStrategy() string
- func (x *CreateRecordRequest) GetTakeProfit() float32
- func (x *CreateRecordRequest) GetTimeClosed() string
- func (x *CreateRecordRequest) GetTimeExecuted() string
- func (*CreateRecordRequest) ProtoMessage()
- func (x *CreateRecordRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRecordRequest) Reset()
- func (x *CreateRecordRequest) String() string
- type CreateRecordResponse
- func (*CreateRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRecordResponse) GetData() *Record
- func (x *CreateRecordResponse) GetError() string
- func (x *CreateRecordResponse) GetLevel() string
- func (x *CreateRecordResponse) GetMessage() string
- func (x *CreateRecordResponse) GetStatus() uint64
- func (x *CreateRecordResponse) GetTimestamp() string
- func (*CreateRecordResponse) ProtoMessage()
- func (x *CreateRecordResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRecordResponse) Reset()
- func (x *CreateRecordResponse) String() string
- type DeleteRecordRequest
- func (*DeleteRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRecordRequest) GetId() []string
- func (*DeleteRecordRequest) ProtoMessage()
- func (x *DeleteRecordRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRecordRequest) Reset()
- func (x *DeleteRecordRequest) String() string
- type DeleteRecordResponse
- func (*DeleteRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRecordResponse) GetError() string
- func (x *DeleteRecordResponse) GetLevel() string
- func (x *DeleteRecordResponse) GetMessage() string
- func (x *DeleteRecordResponse) GetRowsAffected() uint64
- func (x *DeleteRecordResponse) GetStatus() uint64
- func (*DeleteRecordResponse) ProtoMessage()
- func (x *DeleteRecordResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRecordResponse) Reset()
- func (x *DeleteRecordResponse) String() string
- type FindAllRecordsRequest
- type FindAllRecordsResponse
- func (*FindAllRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindAllRecordsResponse) GetData() []*Record
- func (x *FindAllRecordsResponse) GetError() string
- func (x *FindAllRecordsResponse) GetStatus() uint64
- func (*FindAllRecordsResponse) ProtoMessage()
- func (x *FindAllRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *FindAllRecordsResponse) Reset()
- func (x *FindAllRecordsResponse) String() string
- type FindOneRecordRequest
- func (*FindOneRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindOneRecordRequest) GetId() uint64
- func (*FindOneRecordRequest) ProtoMessage()
- func (x *FindOneRecordRequest) ProtoReflect() protoreflect.Message
- func (x *FindOneRecordRequest) Reset()
- func (x *FindOneRecordRequest) String() string
- type FindOneRecordResponse
- func (*FindOneRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindOneRecordResponse) GetData() *Record
- func (x *FindOneRecordResponse) GetError() string
- func (x *FindOneRecordResponse) GetStatus() uint64
- func (*FindOneRecordResponse) ProtoMessage()
- func (x *FindOneRecordResponse) ProtoReflect() protoreflect.Message
- func (x *FindOneRecordResponse) Reset()
- func (x *FindOneRecordResponse) String() string
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetBaseInstrument() string
- func (x *Record) GetComments() string
- func (x *Record) GetCreatedAt() *timestamppb.Timestamp
- func (x *Record) GetCreatedBy() uint64
- func (x *Record) GetDirection() string
- func (x *Record) GetEntryPrice() float32
- func (x *Record) GetExitPrice() float32
- func (x *Record) GetId() uint64
- func (x *Record) GetJournal() uint64
- func (x *Record) GetLastUpdatedBy() uint64
- func (x *Record) GetMarket() string
- func (x *Record) GetOutcome() string
- func (x *Record) GetQuantity() float32
- func (x *Record) GetQuoteInstrument() string
- func (x *Record) GetStopLoss() float32
- func (x *Record) GetStrategy() string
- func (x *Record) GetTakeProfit() float32
- func (x *Record) GetTimeClosed() string
- func (x *Record) GetTimeExecuted() string
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type RecordServiceClient
- type RecordServiceServer
- type UnimplementedRecordServiceServer
- func (UnimplementedRecordServiceServer) CreateRecord(context.Context, *CreateRecordRequest) (*CreateRecordResponse, error)
- func (UnimplementedRecordServiceServer) GetRecord(context.Context, *FindOneRecordRequest) (*FindOneRecordResponse, error)
- func (UnimplementedRecordServiceServer) ListRecords(context.Context, *FindAllRecordsRequest) (*FindAllRecordsResponse, error)
- func (UnimplementedRecordServiceServer) RemoveRecord(context.Context, *DeleteRecordRequest) (*DeleteRecordResponse, error)
- func (UnimplementedRecordServiceServer) UpdateRecord(context.Context, *UpdateRecordRequest) (*UpdateRecordResponse, error)
- type UnsafeRecordServiceServer
- type UpdateRecordRequest
- func (*UpdateRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRecordRequest) GetBaseInstrument() string
- func (x *UpdateRecordRequest) GetComments() string
- func (x *UpdateRecordRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *UpdateRecordRequest) GetDirection() string
- func (x *UpdateRecordRequest) GetEntryPrice() float32
- func (x *UpdateRecordRequest) GetExitPrice() float32
- func (x *UpdateRecordRequest) GetId() uint64
- func (x *UpdateRecordRequest) GetJournal() uint64
- func (x *UpdateRecordRequest) GetLastUpdatedBy() uint64
- func (x *UpdateRecordRequest) GetMarket() string
- func (x *UpdateRecordRequest) GetOutcome() string
- func (x *UpdateRecordRequest) GetQuantity() float32
- func (x *UpdateRecordRequest) GetQuoteInstrument() string
- func (x *UpdateRecordRequest) GetStopLoss() float32
- func (x *UpdateRecordRequest) GetStrategy() string
- func (x *UpdateRecordRequest) GetTakeProfit() float32
- func (x *UpdateRecordRequest) GetTimeClosed() string
- func (x *UpdateRecordRequest) GetTimeExecuted() string
- func (*UpdateRecordRequest) ProtoMessage()
- func (x *UpdateRecordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRecordRequest) Reset()
- func (x *UpdateRecordRequest) String() string
- type UpdateRecordResponse
- func (*UpdateRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRecordResponse) GetData() *Record
- func (x *UpdateRecordResponse) GetError() string
- func (x *UpdateRecordResponse) GetLevel() string
- func (x *UpdateRecordResponse) GetMessage() string
- func (x *UpdateRecordResponse) GetStatus() uint64
- func (x *UpdateRecordResponse) GetTimestamp() string
- func (*UpdateRecordResponse) ProtoMessage()
- func (x *UpdateRecordResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRecordResponse) Reset()
- func (x *UpdateRecordResponse) String() string
Constants ¶
const ( RecordService_CreateRecord_FullMethodName = "/record.RecordService/CreateRecord" RecordService_UpdateRecord_FullMethodName = "/record.RecordService/UpdateRecord" RecordService_GetRecord_FullMethodName = "/record.RecordService/GetRecord" RecordService_ListRecords_FullMethodName = "/record.RecordService/ListRecords" RecordService_RemoveRecord_FullMethodName = "/record.RecordService/RemoveRecord" )
Variables ¶
var File_record_record_proto protoreflect.FileDescriptor
var RecordService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "record.RecordService", HandlerType: (*RecordServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRecord", Handler: _RecordService_CreateRecord_Handler, }, { MethodName: "UpdateRecord", Handler: _RecordService_UpdateRecord_Handler, }, { MethodName: "GetRecord", Handler: _RecordService_GetRecord_Handler, }, { MethodName: "ListRecords", Handler: _RecordService_ListRecords_Handler, }, { MethodName: "RemoveRecord", Handler: _RecordService_RemoveRecord_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "record/record.proto", }
RecordService_ServiceDesc is the grpc.ServiceDesc for RecordService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRecordServiceHandler ¶
func RegisterRecordServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRecordServiceHandler registers the http handlers for service RecordService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRecordServiceHandlerClient ¶
func RegisterRecordServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RecordServiceClient) error
RegisterRecordServiceHandlerClient registers the http handlers for service RecordService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RecordServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RecordServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RecordServiceClient" to call the correct interceptors.
func RegisterRecordServiceHandlerFromEndpoint ¶
func RegisterRecordServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRecordServiceHandlerFromEndpoint is same as RegisterRecordServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRecordServiceHandlerServer ¶
func RegisterRecordServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RecordServiceServer) error
RegisterRecordServiceHandlerServer registers the http handlers for service RecordService to "mux". UnaryRPC :call RecordServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRecordServiceHandlerFromEndpoint instead.
func RegisterRecordServiceServer ¶
func RegisterRecordServiceServer(s grpc.ServiceRegistrar, srv RecordServiceServer)
Types ¶
type CreateRecordRequest ¶
type CreateRecordRequest struct { TimeExecuted string `protobuf:"bytes,1,opt,name=timeExecuted,proto3" json:"timeExecuted,omitempty"` Market string `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"` StopLoss float32 `protobuf:"fixed32,3,opt,name=stopLoss,proto3" json:"stopLoss,omitempty"` EntryPrice float32 `protobuf:"fixed32,4,opt,name=entryPrice,proto3" json:"entryPrice,omitempty"` ExitPrice float32 `protobuf:"fixed32,5,opt,name=exitPrice,proto3" json:"exitPrice,omitempty"` Journal uint64 `protobuf:"varint,6,opt,name=journal,proto3" json:"journal,omitempty"` Quantity float32 `protobuf:"fixed32,7,opt,name=quantity,proto3" json:"quantity,omitempty"` Outcome string `protobuf:"bytes,8,opt,name=outcome,proto3" json:"outcome,omitempty"` Direction string `protobuf:"bytes,9,opt,name=direction,proto3" json:"direction,omitempty"` BaseInstrument string `protobuf:"bytes,10,opt,name=baseInstrument,proto3" json:"baseInstrument,omitempty"` QuoteInstrument string `protobuf:"bytes,11,opt,name=quoteInstrument,proto3" json:"quoteInstrument,omitempty"` TakeProfit float32 `protobuf:"fixed32,12,opt,name=takeProfit,proto3" json:"takeProfit,omitempty"` Comments string `protobuf:"bytes,13,opt,name=comments,proto3" json:"comments,omitempty"` Strategy string `protobuf:"bytes,14,opt,name=strategy,proto3" json:"strategy,omitempty"` TimeClosed string `protobuf:"bytes,15,opt,name=timeClosed,proto3" json:"timeClosed,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty"` CreatedBy uint64 `protobuf:"varint,17,opt,name=createdBy,proto3" json:"createdBy,omitempty"` // contains filtered or unexported fields }
func (*CreateRecordRequest) Descriptor
deprecated
func (*CreateRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRecordRequest.ProtoReflect.Descriptor instead.
func (*CreateRecordRequest) GetBaseInstrument ¶
func (x *CreateRecordRequest) GetBaseInstrument() string
func (*CreateRecordRequest) GetComments ¶
func (x *CreateRecordRequest) GetComments() string
func (*CreateRecordRequest) GetCreatedAt ¶
func (x *CreateRecordRequest) GetCreatedAt() *timestamppb.Timestamp
func (*CreateRecordRequest) GetCreatedBy ¶
func (x *CreateRecordRequest) GetCreatedBy() uint64
func (*CreateRecordRequest) GetDirection ¶
func (x *CreateRecordRequest) GetDirection() string
func (*CreateRecordRequest) GetEntryPrice ¶
func (x *CreateRecordRequest) GetEntryPrice() float32
func (*CreateRecordRequest) GetExitPrice ¶
func (x *CreateRecordRequest) GetExitPrice() float32
func (*CreateRecordRequest) GetJournal ¶
func (x *CreateRecordRequest) GetJournal() uint64
func (*CreateRecordRequest) GetMarket ¶
func (x *CreateRecordRequest) GetMarket() string
func (*CreateRecordRequest) GetOutcome ¶
func (x *CreateRecordRequest) GetOutcome() string
func (*CreateRecordRequest) GetQuantity ¶
func (x *CreateRecordRequest) GetQuantity() float32
func (*CreateRecordRequest) GetQuoteInstrument ¶
func (x *CreateRecordRequest) GetQuoteInstrument() string
func (*CreateRecordRequest) GetStopLoss ¶
func (x *CreateRecordRequest) GetStopLoss() float32
func (*CreateRecordRequest) GetStrategy ¶
func (x *CreateRecordRequest) GetStrategy() string
func (*CreateRecordRequest) GetTakeProfit ¶
func (x *CreateRecordRequest) GetTakeProfit() float32
func (*CreateRecordRequest) GetTimeClosed ¶
func (x *CreateRecordRequest) GetTimeClosed() string
func (*CreateRecordRequest) GetTimeExecuted ¶
func (x *CreateRecordRequest) GetTimeExecuted() string
func (*CreateRecordRequest) ProtoMessage ¶
func (*CreateRecordRequest) ProtoMessage()
func (*CreateRecordRequest) ProtoReflect ¶
func (x *CreateRecordRequest) ProtoReflect() protoreflect.Message
func (*CreateRecordRequest) Reset ¶
func (x *CreateRecordRequest) Reset()
func (*CreateRecordRequest) String ¶
func (x *CreateRecordRequest) String() string
type CreateRecordResponse ¶
type CreateRecordResponse struct { Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Status uint64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` Data *Record `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*CreateRecordResponse) Descriptor
deprecated
func (*CreateRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRecordResponse.ProtoReflect.Descriptor instead.
func (*CreateRecordResponse) GetData ¶
func (x *CreateRecordResponse) GetData() *Record
func (*CreateRecordResponse) GetError ¶
func (x *CreateRecordResponse) GetError() string
func (*CreateRecordResponse) GetLevel ¶
func (x *CreateRecordResponse) GetLevel() string
func (*CreateRecordResponse) GetMessage ¶
func (x *CreateRecordResponse) GetMessage() string
func (*CreateRecordResponse) GetStatus ¶
func (x *CreateRecordResponse) GetStatus() uint64
func (*CreateRecordResponse) GetTimestamp ¶
func (x *CreateRecordResponse) GetTimestamp() string
func (*CreateRecordResponse) ProtoMessage ¶
func (*CreateRecordResponse) ProtoMessage()
func (*CreateRecordResponse) ProtoReflect ¶
func (x *CreateRecordResponse) ProtoReflect() protoreflect.Message
func (*CreateRecordResponse) Reset ¶
func (x *CreateRecordResponse) Reset()
func (*CreateRecordResponse) String ¶
func (x *CreateRecordResponse) String() string
type DeleteRecordRequest ¶
type DeleteRecordRequest struct { Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRecordRequest) Descriptor
deprecated
func (*DeleteRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRecordRequest.ProtoReflect.Descriptor instead.
func (*DeleteRecordRequest) GetId ¶
func (x *DeleteRecordRequest) GetId() []string
func (*DeleteRecordRequest) ProtoMessage ¶
func (*DeleteRecordRequest) ProtoMessage()
func (*DeleteRecordRequest) ProtoReflect ¶
func (x *DeleteRecordRequest) ProtoReflect() protoreflect.Message
func (*DeleteRecordRequest) Reset ¶
func (x *DeleteRecordRequest) Reset()
func (*DeleteRecordRequest) String ¶
func (x *DeleteRecordRequest) String() string
type DeleteRecordResponse ¶
type DeleteRecordResponse struct { Status uint64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Level string `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` RowsAffected uint64 `protobuf:"varint,5,opt,name=rowsAffected,proto3" json:"rowsAffected,omitempty"` // contains filtered or unexported fields }
func (*DeleteRecordResponse) Descriptor
deprecated
func (*DeleteRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRecordResponse.ProtoReflect.Descriptor instead.
func (*DeleteRecordResponse) GetError ¶
func (x *DeleteRecordResponse) GetError() string
func (*DeleteRecordResponse) GetLevel ¶
func (x *DeleteRecordResponse) GetLevel() string
func (*DeleteRecordResponse) GetMessage ¶
func (x *DeleteRecordResponse) GetMessage() string
func (*DeleteRecordResponse) GetRowsAffected ¶
func (x *DeleteRecordResponse) GetRowsAffected() uint64
func (*DeleteRecordResponse) GetStatus ¶
func (x *DeleteRecordResponse) GetStatus() uint64
func (*DeleteRecordResponse) ProtoMessage ¶
func (*DeleteRecordResponse) ProtoMessage()
func (*DeleteRecordResponse) ProtoReflect ¶
func (x *DeleteRecordResponse) ProtoReflect() protoreflect.Message
func (*DeleteRecordResponse) Reset ¶
func (x *DeleteRecordResponse) Reset()
func (*DeleteRecordResponse) String ¶
func (x *DeleteRecordResponse) String() string
type FindAllRecordsRequest ¶
type FindAllRecordsRequest struct {
// contains filtered or unexported fields
}
func (*FindAllRecordsRequest) Descriptor
deprecated
func (*FindAllRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindAllRecordsRequest.ProtoReflect.Descriptor instead.
func (*FindAllRecordsRequest) ProtoMessage ¶
func (*FindAllRecordsRequest) ProtoMessage()
func (*FindAllRecordsRequest) ProtoReflect ¶
func (x *FindAllRecordsRequest) ProtoReflect() protoreflect.Message
func (*FindAllRecordsRequest) Reset ¶
func (x *FindAllRecordsRequest) Reset()
func (*FindAllRecordsRequest) String ¶
func (x *FindAllRecordsRequest) String() string
type FindAllRecordsResponse ¶
type FindAllRecordsResponse struct { Status uint64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Data []*Record `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindAllRecordsResponse) Descriptor
deprecated
func (*FindAllRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindAllRecordsResponse.ProtoReflect.Descriptor instead.
func (*FindAllRecordsResponse) GetData ¶
func (x *FindAllRecordsResponse) GetData() []*Record
func (*FindAllRecordsResponse) GetError ¶
func (x *FindAllRecordsResponse) GetError() string
func (*FindAllRecordsResponse) GetStatus ¶
func (x *FindAllRecordsResponse) GetStatus() uint64
func (*FindAllRecordsResponse) ProtoMessage ¶
func (*FindAllRecordsResponse) ProtoMessage()
func (*FindAllRecordsResponse) ProtoReflect ¶
func (x *FindAllRecordsResponse) ProtoReflect() protoreflect.Message
func (*FindAllRecordsResponse) Reset ¶
func (x *FindAllRecordsResponse) Reset()
func (*FindAllRecordsResponse) String ¶
func (x *FindAllRecordsResponse) String() string
type FindOneRecordRequest ¶
type FindOneRecordRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindOneRecordRequest) Descriptor
deprecated
func (*FindOneRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindOneRecordRequest.ProtoReflect.Descriptor instead.
func (*FindOneRecordRequest) GetId ¶
func (x *FindOneRecordRequest) GetId() uint64
func (*FindOneRecordRequest) ProtoMessage ¶
func (*FindOneRecordRequest) ProtoMessage()
func (*FindOneRecordRequest) ProtoReflect ¶
func (x *FindOneRecordRequest) ProtoReflect() protoreflect.Message
func (*FindOneRecordRequest) Reset ¶
func (x *FindOneRecordRequest) Reset()
func (*FindOneRecordRequest) String ¶
func (x *FindOneRecordRequest) String() string
type FindOneRecordResponse ¶
type FindOneRecordResponse struct { Status uint64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Data *Record `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindOneRecordResponse) Descriptor
deprecated
func (*FindOneRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindOneRecordResponse.ProtoReflect.Descriptor instead.
func (*FindOneRecordResponse) GetData ¶
func (x *FindOneRecordResponse) GetData() *Record
func (*FindOneRecordResponse) GetError ¶
func (x *FindOneRecordResponse) GetError() string
func (*FindOneRecordResponse) GetStatus ¶
func (x *FindOneRecordResponse) GetStatus() uint64
func (*FindOneRecordResponse) ProtoMessage ¶
func (*FindOneRecordResponse) ProtoMessage()
func (*FindOneRecordResponse) ProtoReflect ¶
func (x *FindOneRecordResponse) ProtoReflect() protoreflect.Message
func (*FindOneRecordResponse) Reset ¶
func (x *FindOneRecordResponse) Reset()
func (*FindOneRecordResponse) String ¶
func (x *FindOneRecordResponse) String() string
type Record ¶
type Record struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TimeExecuted string `protobuf:"bytes,2,opt,name=timeExecuted,proto3" json:"timeExecuted,omitempty"` Market string `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"` StopLoss float32 `protobuf:"fixed32,4,opt,name=stopLoss,proto3" json:"stopLoss,omitempty"` EntryPrice float32 `protobuf:"fixed32,5,opt,name=entryPrice,proto3" json:"entryPrice,omitempty"` ExitPrice float32 `protobuf:"fixed32,6,opt,name=exitPrice,proto3" json:"exitPrice,omitempty"` Journal uint64 `protobuf:"varint,7,opt,name=journal,proto3" json:"journal,omitempty"` Quantity float32 `protobuf:"fixed32,8,opt,name=quantity,proto3" json:"quantity,omitempty"` Outcome string `protobuf:"bytes,9,opt,name=outcome,proto3" json:"outcome,omitempty"` Direction string `protobuf:"bytes,10,opt,name=direction,proto3" json:"direction,omitempty"` BaseInstrument string `protobuf:"bytes,11,opt,name=baseInstrument,proto3" json:"baseInstrument,omitempty"` QuoteInstrument string `protobuf:"bytes,12,opt,name=quoteInstrument,proto3" json:"quoteInstrument,omitempty"` TakeProfit float32 `protobuf:"fixed32,13,opt,name=takeProfit,proto3" json:"takeProfit,omitempty"` Comments string `protobuf:"bytes,14,opt,name=comments,proto3" json:"comments,omitempty"` Strategy string `protobuf:"bytes,15,opt,name=strategy,proto3" json:"strategy,omitempty"` TimeClosed string `protobuf:"bytes,16,opt,name=timeClosed,proto3" json:"timeClosed,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=createdAt,proto3" json:"createdAt,omitempty"` CreatedBy uint64 `protobuf:"varint,18,opt,name=createdBy,proto3" json:"createdBy,omitempty"` LastUpdatedBy uint64 `protobuf:"varint,19,opt,name=lastUpdatedBy,proto3" json:"lastUpdatedBy,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetBaseInstrument ¶
func (*Record) GetComments ¶
func (*Record) GetCreatedAt ¶
func (x *Record) GetCreatedAt() *timestamppb.Timestamp
func (*Record) GetCreatedBy ¶
func (*Record) GetDirection ¶
func (*Record) GetEntryPrice ¶
func (*Record) GetExitPrice ¶
func (*Record) GetJournal ¶
func (*Record) GetLastUpdatedBy ¶
func (*Record) GetOutcome ¶
func (*Record) GetQuantity ¶
func (*Record) GetQuoteInstrument ¶
func (*Record) GetStopLoss ¶
func (*Record) GetStrategy ¶
func (*Record) GetTakeProfit ¶
func (*Record) GetTimeClosed ¶
func (*Record) GetTimeExecuted ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type RecordServiceClient ¶
type RecordServiceClient interface { CreateRecord(ctx context.Context, in *CreateRecordRequest, opts ...grpc.CallOption) (*CreateRecordResponse, error) UpdateRecord(ctx context.Context, in *UpdateRecordRequest, opts ...grpc.CallOption) (*UpdateRecordResponse, error) GetRecord(ctx context.Context, in *FindOneRecordRequest, opts ...grpc.CallOption) (*FindOneRecordResponse, error) ListRecords(ctx context.Context, in *FindAllRecordsRequest, opts ...grpc.CallOption) (*FindAllRecordsResponse, error) RemoveRecord(ctx context.Context, in *DeleteRecordRequest, opts ...grpc.CallOption) (*DeleteRecordResponse, error) }
RecordServiceClient is the client API for RecordService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRecordServiceClient ¶
func NewRecordServiceClient(cc grpc.ClientConnInterface) RecordServiceClient
type RecordServiceServer ¶
type RecordServiceServer interface { CreateRecord(context.Context, *CreateRecordRequest) (*CreateRecordResponse, error) UpdateRecord(context.Context, *UpdateRecordRequest) (*UpdateRecordResponse, error) GetRecord(context.Context, *FindOneRecordRequest) (*FindOneRecordResponse, error) ListRecords(context.Context, *FindAllRecordsRequest) (*FindAllRecordsResponse, error) RemoveRecord(context.Context, *DeleteRecordRequest) (*DeleteRecordResponse, error) // contains filtered or unexported methods }
RecordServiceServer is the server API for RecordService service. All implementations must embed UnimplementedRecordServiceServer for forward compatibility
type UnimplementedRecordServiceServer ¶
type UnimplementedRecordServiceServer struct { }
UnimplementedRecordServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRecordServiceServer) CreateRecord ¶
func (UnimplementedRecordServiceServer) CreateRecord(context.Context, *CreateRecordRequest) (*CreateRecordResponse, error)
func (UnimplementedRecordServiceServer) GetRecord ¶
func (UnimplementedRecordServiceServer) GetRecord(context.Context, *FindOneRecordRequest) (*FindOneRecordResponse, error)
func (UnimplementedRecordServiceServer) ListRecords ¶
func (UnimplementedRecordServiceServer) ListRecords(context.Context, *FindAllRecordsRequest) (*FindAllRecordsResponse, error)
func (UnimplementedRecordServiceServer) RemoveRecord ¶
func (UnimplementedRecordServiceServer) RemoveRecord(context.Context, *DeleteRecordRequest) (*DeleteRecordResponse, error)
func (UnimplementedRecordServiceServer) UpdateRecord ¶
func (UnimplementedRecordServiceServer) UpdateRecord(context.Context, *UpdateRecordRequest) (*UpdateRecordResponse, error)
type UnsafeRecordServiceServer ¶
type UnsafeRecordServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRecordServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RecordServiceServer will result in compilation errors.
type UpdateRecordRequest ¶
type UpdateRecordRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TimeExecuted string `protobuf:"bytes,2,opt,name=timeExecuted,proto3" json:"timeExecuted,omitempty"` Market string `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"` StopLoss float32 `protobuf:"fixed32,4,opt,name=stopLoss,proto3" json:"stopLoss,omitempty"` EntryPrice float32 `protobuf:"fixed32,5,opt,name=entryPrice,proto3" json:"entryPrice,omitempty"` ExitPrice float32 `protobuf:"fixed32,6,opt,name=exitPrice,proto3" json:"exitPrice,omitempty"` Journal uint64 `protobuf:"varint,7,opt,name=journal,proto3" json:"journal,omitempty"` Quantity float32 `protobuf:"fixed32,8,opt,name=quantity,proto3" json:"quantity,omitempty"` Outcome string `protobuf:"bytes,9,opt,name=outcome,proto3" json:"outcome,omitempty"` Direction string `protobuf:"bytes,10,opt,name=direction,proto3" json:"direction,omitempty"` BaseInstrument string `protobuf:"bytes,11,opt,name=baseInstrument,proto3" json:"baseInstrument,omitempty"` QuoteInstrument string `protobuf:"bytes,12,opt,name=quoteInstrument,proto3" json:"quoteInstrument,omitempty"` TakeProfit float32 `protobuf:"fixed32,13,opt,name=takeProfit,proto3" json:"takeProfit,omitempty"` Comments string `protobuf:"bytes,14,opt,name=comments,proto3" json:"comments,omitempty"` Strategy string `protobuf:"bytes,15,opt,name=strategy,proto3" json:"strategy,omitempty"` TimeClosed string `protobuf:"bytes,16,opt,name=timeClosed,proto3" json:"timeClosed,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=createdAt,proto3" json:"createdAt,omitempty"` LastUpdatedBy uint64 `protobuf:"varint,18,opt,name=lastUpdatedBy,proto3" json:"lastUpdatedBy,omitempty"` // contains filtered or unexported fields }
func (*UpdateRecordRequest) Descriptor
deprecated
func (*UpdateRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRecordRequest.ProtoReflect.Descriptor instead.
func (*UpdateRecordRequest) GetBaseInstrument ¶
func (x *UpdateRecordRequest) GetBaseInstrument() string
func (*UpdateRecordRequest) GetComments ¶
func (x *UpdateRecordRequest) GetComments() string
func (*UpdateRecordRequest) GetCreatedAt ¶
func (x *UpdateRecordRequest) GetCreatedAt() *timestamppb.Timestamp
func (*UpdateRecordRequest) GetDirection ¶
func (x *UpdateRecordRequest) GetDirection() string
func (*UpdateRecordRequest) GetEntryPrice ¶
func (x *UpdateRecordRequest) GetEntryPrice() float32
func (*UpdateRecordRequest) GetExitPrice ¶
func (x *UpdateRecordRequest) GetExitPrice() float32
func (*UpdateRecordRequest) GetId ¶
func (x *UpdateRecordRequest) GetId() uint64
func (*UpdateRecordRequest) GetJournal ¶
func (x *UpdateRecordRequest) GetJournal() uint64
func (*UpdateRecordRequest) GetLastUpdatedBy ¶
func (x *UpdateRecordRequest) GetLastUpdatedBy() uint64
func (*UpdateRecordRequest) GetMarket ¶
func (x *UpdateRecordRequest) GetMarket() string
func (*UpdateRecordRequest) GetOutcome ¶
func (x *UpdateRecordRequest) GetOutcome() string
func (*UpdateRecordRequest) GetQuantity ¶
func (x *UpdateRecordRequest) GetQuantity() float32
func (*UpdateRecordRequest) GetQuoteInstrument ¶
func (x *UpdateRecordRequest) GetQuoteInstrument() string
func (*UpdateRecordRequest) GetStopLoss ¶
func (x *UpdateRecordRequest) GetStopLoss() float32
func (*UpdateRecordRequest) GetStrategy ¶
func (x *UpdateRecordRequest) GetStrategy() string
func (*UpdateRecordRequest) GetTakeProfit ¶
func (x *UpdateRecordRequest) GetTakeProfit() float32
func (*UpdateRecordRequest) GetTimeClosed ¶
func (x *UpdateRecordRequest) GetTimeClosed() string
func (*UpdateRecordRequest) GetTimeExecuted ¶
func (x *UpdateRecordRequest) GetTimeExecuted() string
func (*UpdateRecordRequest) ProtoMessage ¶
func (*UpdateRecordRequest) ProtoMessage()
func (*UpdateRecordRequest) ProtoReflect ¶
func (x *UpdateRecordRequest) ProtoReflect() protoreflect.Message
func (*UpdateRecordRequest) Reset ¶
func (x *UpdateRecordRequest) Reset()
func (*UpdateRecordRequest) String ¶
func (x *UpdateRecordRequest) String() string
type UpdateRecordResponse ¶
type UpdateRecordResponse struct { Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Status uint64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` Data *Record `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*UpdateRecordResponse) Descriptor
deprecated
func (*UpdateRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRecordResponse.ProtoReflect.Descriptor instead.
func (*UpdateRecordResponse) GetData ¶
func (x *UpdateRecordResponse) GetData() *Record
func (*UpdateRecordResponse) GetError ¶
func (x *UpdateRecordResponse) GetError() string
func (*UpdateRecordResponse) GetLevel ¶
func (x *UpdateRecordResponse) GetLevel() string
func (*UpdateRecordResponse) GetMessage ¶
func (x *UpdateRecordResponse) GetMessage() string
func (*UpdateRecordResponse) GetStatus ¶
func (x *UpdateRecordResponse) GetStatus() uint64
func (*UpdateRecordResponse) GetTimestamp ¶
func (x *UpdateRecordResponse) GetTimestamp() string
func (*UpdateRecordResponse) ProtoMessage ¶
func (*UpdateRecordResponse) ProtoMessage()
func (*UpdateRecordResponse) ProtoReflect ¶
func (x *UpdateRecordResponse) ProtoReflect() protoreflect.Message
func (*UpdateRecordResponse) Reset ¶
func (x *UpdateRecordResponse) Reset()
func (*UpdateRecordResponse) String ¶
func (x *UpdateRecordResponse) String() string