bbgo_origin/pkg/grpc/server.go

23 lines
372 B
Go

package grpc
import (
"github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/pb"
)
import "google.golang.org/grpc"
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
}