portfolio

package
v0.0.0-...-d047bce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL