server

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package server is the SQLFlow grpc server which connects to database and parse, submit or execute the training and predicting codes.

To generate grpc protobuf code, run the below command:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the instance will be used to connect to DB and execute training

func NewServer

func NewServer(run func(string, *sf.DB, string, *pb.Session) *sf.PipeReader, db *sf.DB, modelDir string, enableSession bool) *Server

NewServer returns a server instance

func (*Server) Run

func (s *Server) Run(req *pb.Request, stream pb.SQLFlow_RunServer) error

Run implements `rpc Run (Request) returns (stream Response)`

Jump to

Keyboard shortcuts

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