bbgo_origin/pkg/grpc/server.go

23 lines
372 B
Go
Raw Normal View History

2022-04-07 03:01:43 +00:00
package grpc
import (
"github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/pb"
)
2022-04-07 03:01:43 +00:00
import "google.golang.org/grpc"
2022-04-07 03:01:43 +00:00
type Server struct {
Config *bbgo.Config
Environ *bbgo.Environment
Trader *bbgo.Trader
}
func (s *Server) Run(bind string) error {
var grpcServer = grpc.NewServer()
_ = grpcServer
_ = pb.QueryTradesResponse{}
return nil
}