Documentation ¶
Index ¶
- Constants
- func NewPortfolioServiceHandler(svc PortfolioServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewSecuritiesServiceHandler(svc SecuritiesServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type PortfolioServiceClient
- type PortfolioServiceHandler
- type SecuritiesServiceClient
- type SecuritiesServiceHandler
- type UnimplementedPortfolioServiceHandler
- func (UnimplementedPortfolioServiceHandler) CreatePortfolio(context.Context, *connect.Request[gen.CreatePortfolioRequest]) (*connect.Response[gen.Portfolio], error)
- func (UnimplementedPortfolioServiceHandler) CreatePortfolioTransaction(context.Context, *connect.Request[gen.CreatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
- func (UnimplementedPortfolioServiceHandler) DeletePortfolio(context.Context, *connect.Request[gen.DeletePortfolioRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedPortfolioServiceHandler) DeletePortfolioTransaction(context.Context, *connect.Request[gen.DeletePortfolioTransactionRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedPortfolioServiceHandler) GetPortfolio(context.Context, *connect.Request[gen.GetPortfolioRequest]) (*connect.Response[gen.Portfolio], error)
- func (UnimplementedPortfolioServiceHandler) GetPortfolioSnapshot(context.Context, *connect.Request[gen.GetPortfolioSnapshotRequest]) (*connect.Response[gen.PortfolioSnapshot], error)
- func (UnimplementedPortfolioServiceHandler) ImportTransactions(context.Context, *connect.Request[gen.ImportTransactionsRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedPortfolioServiceHandler) ListPortfolioTransactions(context.Context, *connect.Request[gen.ListPortfolioTransactionsRequest]) (*connect.Response[gen.ListPortfolioTransactionsResponse], error)
- func (UnimplementedPortfolioServiceHandler) ListPortfolios(context.Context, *connect.Request[gen.ListPortfoliosRequest]) (*connect.Response[gen.ListPortfoliosResponse], error)
- func (UnimplementedPortfolioServiceHandler) UpdatePortfolio(context.Context, *connect.Request[gen.UpdatePortfolioRequest]) (*connect.Response[gen.Portfolio], error)
- func (UnimplementedPortfolioServiceHandler) UpdatePortfolioTransaction(context.Context, *connect.Request[gen.UpdatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
- type UnimplementedSecuritiesServiceHandler
- func (UnimplementedSecuritiesServiceHandler) CreateSecurity(context.Context, *connect.Request[gen.CreateSecurityRequest]) (*connect.Response[gen.Security], error)
- func (UnimplementedSecuritiesServiceHandler) DeleteSecurity(context.Context, *connect.Request[gen.DeleteSecurityRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedSecuritiesServiceHandler) GetSecurity(context.Context, *connect.Request[gen.GetSecurityRequest]) (*connect.Response[gen.Security], error)
- func (UnimplementedSecuritiesServiceHandler) ListSecurities(context.Context, *connect.Request[gen.ListSecuritiesRequest]) (*connect.Response[gen.ListSecuritiesResponse], error)
- func (UnimplementedSecuritiesServiceHandler) TriggerSecurityQuoteUpdate(context.Context, *connect.Request[gen.TriggerQuoteUpdateRequest]) (*connect.Response[gen.TriggerQuoteUpdateResponse], error)
- func (UnimplementedSecuritiesServiceHandler) UpdateSecurity(context.Context, *connect.Request[gen.UpdateSecurityRequest]) (*connect.Response[gen.Security], error)
Constants ¶
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" )
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" // 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" // 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) 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) }
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) 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) }
PortfolioServiceHandler is an implementation of the mgo.portfolio.v1.PortfolioService service.
type SecuritiesServiceClient ¶
type SecuritiesServiceClient interface { ListSecurities(context.Context, *connect.Request[gen.ListSecuritiesRequest]) (*connect.Response[gen.ListSecuritiesResponse], error) GetSecurity(context.Context, *connect.Request[gen.GetSecurityRequest]) (*connect.Response[gen.Security], error) CreateSecurity(context.Context, *connect.Request[gen.CreateSecurityRequest]) (*connect.Response[gen.Security], error) UpdateSecurity(context.Context, *connect.Request[gen.UpdateSecurityRequest]) (*connect.Response[gen.Security], error) DeleteSecurity(context.Context, *connect.Request[gen.DeleteSecurityRequest]) (*connect.Response[emptypb.Empty], error) TriggerSecurityQuoteUpdate(context.Context, *connect.Request[gen.TriggerQuoteUpdateRequest]) (*connect.Response[gen.TriggerQuoteUpdateResponse], error) }
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 SecuritiesServiceHandler ¶
type SecuritiesServiceHandler interface { ListSecurities(context.Context, *connect.Request[gen.ListSecuritiesRequest]) (*connect.Response[gen.ListSecuritiesResponse], error) GetSecurity(context.Context, *connect.Request[gen.GetSecurityRequest]) (*connect.Response[gen.Security], error) CreateSecurity(context.Context, *connect.Request[gen.CreateSecurityRequest]) (*connect.Response[gen.Security], error) UpdateSecurity(context.Context, *connect.Request[gen.UpdateSecurityRequest]) (*connect.Response[gen.Security], error) DeleteSecurity(context.Context, *connect.Request[gen.DeleteSecurityRequest]) (*connect.Response[emptypb.Empty], error) TriggerSecurityQuoteUpdate(context.Context, *connect.Request[gen.TriggerQuoteUpdateRequest]) (*connect.Response[gen.TriggerQuoteUpdateResponse], error) }
SecuritiesServiceHandler is an implementation of the mgo.portfolio.v1.SecuritiesService service.
type UnimplementedPortfolioServiceHandler ¶
type UnimplementedPortfolioServiceHandler struct{}
UnimplementedPortfolioServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPortfolioServiceHandler) CreatePortfolio ¶
func (UnimplementedPortfolioServiceHandler) CreatePortfolioTransaction ¶
func (UnimplementedPortfolioServiceHandler) CreatePortfolioTransaction(context.Context, *connect.Request[gen.CreatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
func (UnimplementedPortfolioServiceHandler) DeletePortfolio ¶
func (UnimplementedPortfolioServiceHandler) DeletePortfolioTransaction ¶
func (UnimplementedPortfolioServiceHandler) GetPortfolio ¶
func (UnimplementedPortfolioServiceHandler) GetPortfolioSnapshot ¶
func (UnimplementedPortfolioServiceHandler) GetPortfolioSnapshot(context.Context, *connect.Request[gen.GetPortfolioSnapshotRequest]) (*connect.Response[gen.PortfolioSnapshot], error)
func (UnimplementedPortfolioServiceHandler) ImportTransactions ¶
func (UnimplementedPortfolioServiceHandler) ListPortfolioTransactions ¶
func (UnimplementedPortfolioServiceHandler) ListPortfolioTransactions(context.Context, *connect.Request[gen.ListPortfolioTransactionsRequest]) (*connect.Response[gen.ListPortfolioTransactionsResponse], error)
func (UnimplementedPortfolioServiceHandler) ListPortfolios ¶
func (UnimplementedPortfolioServiceHandler) ListPortfolios(context.Context, *connect.Request[gen.ListPortfoliosRequest]) (*connect.Response[gen.ListPortfoliosResponse], error)
func (UnimplementedPortfolioServiceHandler) UpdatePortfolio ¶
func (UnimplementedPortfolioServiceHandler) UpdatePortfolioTransaction ¶
func (UnimplementedPortfolioServiceHandler) UpdatePortfolioTransaction(context.Context, *connect.Request[gen.UpdatePortfolioTransactionRequest]) (*connect.Response[gen.PortfolioEvent], error)
type UnimplementedSecuritiesServiceHandler ¶
type UnimplementedSecuritiesServiceHandler struct{}
UnimplementedSecuritiesServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedSecuritiesServiceHandler) CreateSecurity ¶
func (UnimplementedSecuritiesServiceHandler) DeleteSecurity ¶
func (UnimplementedSecuritiesServiceHandler) GetSecurity ¶
func (UnimplementedSecuritiesServiceHandler) ListSecurities ¶
func (UnimplementedSecuritiesServiceHandler) ListSecurities(context.Context, *connect.Request[gen.ListSecuritiesRequest]) (*connect.Response[gen.ListSecuritiesResponse], error)
func (UnimplementedSecuritiesServiceHandler) TriggerSecurityQuoteUpdate ¶
func (UnimplementedSecuritiesServiceHandler) TriggerSecurityQuoteUpdate(context.Context, *connect.Request[gen.TriggerQuoteUpdateRequest]) (*connect.Response[gen.TriggerQuoteUpdateResponse], error)