portfoliov1connect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PortfolioServiceName is the fully-qualified name of the PortfolioService service.
	PortfolioServiceName = "mgo.portfolio.v1.PortfolioService"
	// SecuritiesServiceName is the fully-qualified name of the SecuritiesService service.
	SecuritiesServiceName = "mgo.portfolio.v1.SecuritiesService"
)
View Source
const (
	// PortfolioServiceCreatePortfolioProcedure is the fully-qualified name of the PortfolioService's
	// CreatePortfolio RPC.
	PortfolioServiceCreatePortfolioProcedure = "/mgo.portfolio.v1.PortfolioService/CreatePortfolio"
	// PortfolioServiceListPortfoliosProcedure is the fully-qualified name of the PortfolioService's
	// ListPortfolios RPC.
	PortfolioServiceListPortfoliosProcedure = "/mgo.portfolio.v1.PortfolioService/ListPortfolios"
	// PortfolioServiceGetPortfolioProcedure is the fully-qualified name of the PortfolioService's
	// GetPortfolio RPC.
	PortfolioServiceGetPortfolioProcedure = "/mgo.portfolio.v1.PortfolioService/GetPortfolio"
	// PortfolioServiceUpdatePortfolioProcedure is the fully-qualified name of the PortfolioService's
	// UpdatePortfolio RPC.
	PortfolioServiceUpdatePortfolioProcedure = "/mgo.portfolio.v1.PortfolioService/UpdatePortfolio"
	// PortfolioServiceDeletePortfolioProcedure is the fully-qualified name of the PortfolioService's
	// DeletePortfolio RPC.
	PortfolioServiceDeletePortfolioProcedure = "/mgo.portfolio.v1.PortfolioService/DeletePortfolio"
	// PortfolioServiceGetPortfolioSnapshotProcedure is the fully-qualified name of the
	// PortfolioService's GetPortfolioSnapshot RPC.
	PortfolioServiceGetPortfolioSnapshotProcedure = "/mgo.portfolio.v1.PortfolioService/GetPortfolioSnapshot"
	// PortfolioServiceCreatePortfolioTransactionProcedure is the fully-qualified name of the
	// PortfolioService's CreatePortfolioTransaction RPC.
	PortfolioServiceCreatePortfolioTransactionProcedure = "/mgo.portfolio.v1.PortfolioService/CreatePortfolioTransaction"
	// PortfolioServiceGetPortfolioTransactionProcedure is the fully-qualified name of the
	// PortfolioService's GetPortfolioTransaction RPC.
	PortfolioServiceGetPortfolioTransactionProcedure = "/mgo.portfolio.v1.PortfolioService/GetPortfolioTransaction"
	// PortfolioServiceListPortfolioTransactionsProcedure is the fully-qualified name of the
	// PortfolioService's ListPortfolioTransactions RPC.
	PortfolioServiceListPortfolioTransactionsProcedure = "/mgo.portfolio.v1.PortfolioService/ListPortfolioTransactions"
	// PortfolioServiceUpdatePortfolioTransactionProcedure is the fully-qualified name of the
	// PortfolioService's UpdatePortfolioTransaction RPC.
	PortfolioServiceUpdatePortfolioTransactionProcedure = "/mgo.portfolio.v1.PortfolioService/UpdatePortfolioTransaction"
	// PortfolioServiceDeletePortfolioTransactionProcedure is the fully-qualified name of the
	// PortfolioService's DeletePortfolioTransaction RPC.
	PortfolioServiceDeletePortfolioTransactionProcedure = "/mgo.portfolio.v1.PortfolioService/DeletePortfolioTransaction"
	// PortfolioServiceImportTransactionsProcedure is the fully-qualified name of the PortfolioService's
	// ImportTransactions RPC.
	PortfolioServiceImportTransactionsProcedure = "/mgo.portfolio.v1.PortfolioService/ImportTransactions"
	// PortfolioServiceCreateBankAccountProcedure is the fully-qualified name of the PortfolioService's
	// CreateBankAccount RPC.
	PortfolioServiceCreateBankAccountProcedure = "/mgo.portfolio.v1.PortfolioService/CreateBankAccount"
	// PortfolioServiceUpdateBankAccountProcedure is the fully-qualified name of the PortfolioService's
	// UpdateBankAccount RPC.
	PortfolioServiceUpdateBankAccountProcedure = "/mgo.portfolio.v1.PortfolioService/UpdateBankAccount"
	// PortfolioServiceDeleteBankAccountProcedure is the fully-qualified name of the PortfolioService's
	// DeleteBankAccount RPC.
	PortfolioServiceDeleteBankAccountProcedure = "/mgo.portfolio.v1.PortfolioService/DeleteBankAccount"
	// SecuritiesServiceListSecuritiesProcedure is the fully-qualified name of the SecuritiesService's
	// ListSecurities RPC.
	SecuritiesServiceListSecuritiesProcedure = "/mgo.portfolio.v1.SecuritiesService/ListSecurities"
	// SecuritiesServiceGetSecurityProcedure is the fully-qualified name of the SecuritiesService's
	// GetSecurity RPC.
	SecuritiesServiceGetSecurityProcedure = "/mgo.portfolio.v1.SecuritiesService/GetSecurity"
	// SecuritiesServiceCreateSecurityProcedure is the fully-qualified name of the SecuritiesService's
	// CreateSecurity RPC.
	SecuritiesServiceCreateSecurityProcedure = "/mgo.portfolio.v1.SecuritiesService/CreateSecurity"
	// SecuritiesServiceUpdateSecurityProcedure is the fully-qualified name of the SecuritiesService's
	// UpdateSecurity RPC.
	SecuritiesServiceUpdateSecurityProcedure = "/mgo.portfolio.v1.SecuritiesService/UpdateSecurity"
	// SecuritiesServiceDeleteSecurityProcedure is the fully-qualified name of the SecuritiesService's
	// DeleteSecurity RPC.
	SecuritiesServiceDeleteSecurityProcedure = "/mgo.portfolio.v1.SecuritiesService/DeleteSecurity"
	// SecuritiesServiceTriggerSecurityQuoteUpdateProcedure is the fully-qualified name of the
	// SecuritiesService's TriggerSecurityQuoteUpdate RPC.
	SecuritiesServiceTriggerSecurityQuoteUpdateProcedure = "/mgo.portfolio.v1.SecuritiesService/TriggerSecurityQuoteUpdate"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

Variables

This section is empty.

Functions

func NewPortfolioServiceHandler

func NewPortfolioServiceHandler(svc PortfolioServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewPortfolioServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewSecuritiesServiceHandler

func NewSecuritiesServiceHandler(svc SecuritiesServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSecuritiesServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type PortfolioServiceClient

type PortfolioServiceClient interface {
	CreatePortfolio(context.Context, *connect.Request[gen.CreatePortfolioRequest]) (*connect.Response[gen.Portfolio], error)
	ListPortfolios(context.Context, *connect.Request[gen.ListPortfoliosRequest]) (*connect.Response[gen.ListPortfoliosResponse], error)
	GetPortfolio(context.Context, *connect.Request[gen.GetPortfolioRequest]) (*connect.Response[gen.Portfolio], error)
	UpdatePortfolio(context.Context, *connect.Request[gen.UpdatePortfolioRequest]) (*connect.Response[gen.Portfolio], error)
	DeletePortfolio(context.Context, *connect.Request[gen.DeletePortfolioRequest]) (*connect.Response[emptypb.Empty], error)
	GetPortfolioSnapshot(context.Context, *connect.Request[gen.GetPortfolioSnapshotRequest]) (*connect.Response[gen.PortfolioSnapshot], error)
	CreatePortfolioTransaction(context.Context, *connect.Request[gen.CreatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
	GetPortfolioTransaction(context.Context, *connect.Request[gen.GetPortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
	ListPortfolioTransactions(context.Context, *connect.Request[gen.ListPortfolioTransactionsRequest]) (*connect.Response[gen.ListPortfolioTransactionsResponse], error)
	UpdatePortfolioTransaction(context.Context, *connect.Request[gen.UpdatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
	DeletePortfolioTransaction(context.Context, *connect.Request[gen.DeletePortfolioTransactionRequest]) (*connect.Response[emptypb.Empty], error)
	ImportTransactions(context.Context, *connect.Request[gen.ImportTransactionsRequest]) (*connect.Response[emptypb.Empty], error)
	CreateBankAccount(context.Context, *connect.Request[gen.CreateBankAccountRequest]) (*connect.Response[gen.BankAccount], error)
	UpdateBankAccount(context.Context, *connect.Request[gen.UpdateBankAccountRequest]) (*connect.Response[gen.BankAccount], error)
	DeleteBankAccount(context.Context, *connect.Request[gen.DeleteBankAccountRequest]) (*connect.Response[emptypb.Empty], error)
}

PortfolioServiceClient is a client for the mgo.portfolio.v1.PortfolioService service.

func NewPortfolioServiceClient

func NewPortfolioServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PortfolioServiceClient

NewPortfolioServiceClient constructs a client for the mgo.portfolio.v1.PortfolioService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type PortfolioServiceHandler

type PortfolioServiceHandler interface {
	CreatePortfolio(context.Context, *connect.Request[gen.CreatePortfolioRequest]) (*connect.Response[gen.Portfolio], error)
	ListPortfolios(context.Context, *connect.Request[gen.ListPortfoliosRequest]) (*connect.Response[gen.ListPortfoliosResponse], error)
	GetPortfolio(context.Context, *connect.Request[gen.GetPortfolioRequest]) (*connect.Response[gen.Portfolio], error)
	UpdatePortfolio(context.Context, *connect.Request[gen.UpdatePortfolioRequest]) (*connect.Response[gen.Portfolio], error)
	DeletePortfolio(context.Context, *connect.Request[gen.DeletePortfolioRequest]) (*connect.Response[emptypb.Empty], error)
	GetPortfolioSnapshot(context.Context, *connect.Request[gen.GetPortfolioSnapshotRequest]) (*connect.Response[gen.PortfolioSnapshot], error)
	CreatePortfolioTransaction(context.Context, *connect.Request[gen.CreatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
	GetPortfolioTransaction(context.Context, *connect.Request[gen.GetPortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
	ListPortfolioTransactions(context.Context, *connect.Request[gen.ListPortfolioTransactionsRequest]) (*connect.Response[gen.ListPortfolioTransactionsResponse], error)
	UpdatePortfolioTransaction(context.Context, *connect.Request[gen.UpdatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
	DeletePortfolioTransaction(context.Context, *connect.Request[gen.DeletePortfolioTransactionRequest]) (*connect.Response[emptypb.Empty], error)
	ImportTransactions(context.Context, *connect.Request[gen.ImportTransactionsRequest]) (*connect.Response[emptypb.Empty], error)
	CreateBankAccount(context.Context, *connect.Request[gen.CreateBankAccountRequest]) (*connect.Response[gen.BankAccount], error)
	UpdateBankAccount(context.Context, *connect.Request[gen.UpdateBankAccountRequest]) (*connect.Response[gen.BankAccount], error)
	DeleteBankAccount(context.Context, *connect.Request[gen.DeleteBankAccountRequest]) (*connect.Response[emptypb.Empty], error)
}

PortfolioServiceHandler is an implementation of the mgo.portfolio.v1.PortfolioService service.

type SecuritiesServiceClient

SecuritiesServiceClient is a client for the mgo.portfolio.v1.SecuritiesService service.

func NewSecuritiesServiceClient

func NewSecuritiesServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SecuritiesServiceClient

NewSecuritiesServiceClient constructs a client for the mgo.portfolio.v1.SecuritiesService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UnimplementedPortfolioServiceHandler

type UnimplementedPortfolioServiceHandler struct{}

UnimplementedPortfolioServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedPortfolioServiceHandler) CreateBankAccount added in v0.1.0

func (UnimplementedPortfolioServiceHandler) DeleteBankAccount added in v0.1.0

func (UnimplementedPortfolioServiceHandler) GetPortfolio

func (UnimplementedPortfolioServiceHandler) GetPortfolioTransaction added in v0.0.4

func (UnimplementedPortfolioServiceHandler) UpdateBankAccount added in v0.1.0

type UnimplementedSecuritiesServiceHandler

type UnimplementedSecuritiesServiceHandler struct{}

UnimplementedSecuritiesServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSecuritiesServiceHandler) CreateSecurity

func (UnimplementedSecuritiesServiceHandler) GetSecurity

func (UnimplementedSecuritiesServiceHandler) UpdateSecurity

Jump to

Keyboard shortcuts

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