strategy

package
v0.0.0-...-0765ed5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(
		func() (finance_pb.MarketdataClient, error) {
			conn, err := grpc.NewClient("localhost:50055", grpc.WithTransportCredentials(
				insecure.NewCredentials(),
			))
			if err != nil {
				return nil, fmt.Errorf("failed to dial: %w", err)
			}

			return finance_pb.NewMarketdataClient(conn), nil
		}),
	fx.Invoke(
		func(g *grpc.Server, md finance_pb.MarketdataClient) error {
			srv := servicer.NewStrategyServer(md)
			pb.RegisterStrategyServicerServer(g, srv)
			return nil
		}),
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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