Documentation ¶
Index ¶
- Variables
- func RegisterPortfolioServiceServer(s grpc.ServiceRegistrar, srv PortfolioServiceServer)
- type GetHistoryRequest
- func (*GetHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHistoryRequest) GetToken() string
- func (x *GetHistoryRequest) GetUserId() string
- func (*GetHistoryRequest) ProtoMessage()
- func (x *GetHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetHistoryRequest) Reset()
- func (x *GetHistoryRequest) String() string
- type GetHistoryResponse
- func (*GetHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHistoryResponse) GetHistory() []*v1.HoldingHistory
- func (*GetHistoryResponse) ProtoMessage()
- func (x *GetHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetHistoryResponse) Reset()
- func (x *GetHistoryResponse) String() string
- type PortfolioServiceClient
- type PortfolioServiceServer
- type UnimplementedPortfolioServiceServer
- type UnsafePortfolioServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_services_portfolio_pb_v1_portfolio_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPortfolioServiceServer ¶
func RegisterPortfolioServiceServer(s grpc.ServiceRegistrar, srv PortfolioServiceServer)
Types ¶
type GetHistoryRequest ¶
type GetHistoryRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetHistoryRequest) Descriptor
deprecated
func (*GetHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetHistoryRequest) GetToken ¶
func (x *GetHistoryRequest) GetToken() string
func (*GetHistoryRequest) GetUserId ¶
func (x *GetHistoryRequest) GetUserId() string
func (*GetHistoryRequest) ProtoMessage ¶
func (*GetHistoryRequest) ProtoMessage()
func (*GetHistoryRequest) ProtoReflect ¶
func (x *GetHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetHistoryRequest) Reset ¶
func (x *GetHistoryRequest) Reset()
func (*GetHistoryRequest) String ¶
func (x *GetHistoryRequest) String() string
type GetHistoryResponse ¶
type GetHistoryResponse struct { History []*v1.HoldingHistory `protobuf:"bytes,1,rep,name=history,proto3" json:"history,omitempty"` // contains filtered or unexported fields }
func (*GetHistoryResponse) Descriptor
deprecated
func (*GetHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetHistoryResponse) GetHistory ¶
func (x *GetHistoryResponse) GetHistory() []*v1.HoldingHistory
func (*GetHistoryResponse) ProtoMessage ¶
func (*GetHistoryResponse) ProtoMessage()
func (*GetHistoryResponse) ProtoReflect ¶
func (x *GetHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetHistoryResponse) Reset ¶
func (x *GetHistoryResponse) Reset()
func (*GetHistoryResponse) String ¶
func (x *GetHistoryResponse) String() string
type PortfolioServiceClient ¶
type PortfolioServiceClient interface { // Hydrate returns a chartable object for the users portfolio transactions. GetHistory(ctx context.Context, in *GetHistoryRequest, opts ...grpc.CallOption) (*GetHistoryResponse, error) }
PortfolioServiceClient is the client API for PortfolioService 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 NewPortfolioServiceClient ¶
func NewPortfolioServiceClient(cc grpc.ClientConnInterface) PortfolioServiceClient
type PortfolioServiceServer ¶
type PortfolioServiceServer interface { // Hydrate returns a chartable object for the users portfolio transactions. GetHistory(context.Context, *GetHistoryRequest) (*GetHistoryResponse, error) // contains filtered or unexported methods }
PortfolioServiceServer is the server API for PortfolioService service. All implementations must embed UnimplementedPortfolioServiceServer for forward compatibility
type UnimplementedPortfolioServiceServer ¶
type UnimplementedPortfolioServiceServer struct { }
UnimplementedPortfolioServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPortfolioServiceServer) GetHistory ¶
func (UnimplementedPortfolioServiceServer) GetHistory(context.Context, *GetHistoryRequest) (*GetHistoryResponse, error)
type UnsafePortfolioServiceServer ¶
type UnsafePortfolioServiceServer interface {
// contains filtered or unexported methods
}
UnsafePortfolioServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PortfolioServiceServer will result in compilation errors.