Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*PredictRace)
func WithFormat ¶
func WithParamProvider ¶
func WithParamProvider(pp ParamProvider) Option
func WithWriter ¶
type Output ¶
type Output interface {
Output(param *predictv1.PredictParam, result *predictv1.PredictResult) string
}
type ParamProvider ¶
type ParamProvider func() (*predictv1.PredictParam, error)
type PredictRace ¶
type PredictRace struct {
// contains filtered or unexported fields
}
func NewPredictRace ¶
func NewPredictRace(client *grpc.ClientConn, opts ...Option) (*PredictRace, error)
func (*PredictRace) Predict ¶
func (pr *PredictRace) Predict() error
func (*PredictRace) Result ¶
func (pr *PredictRace) Result() (*predictv1.PredictParam, *predictv1.PredictResult)
func (*PredictRace) WriteResult ¶
func (pr *PredictRace) WriteResult() error
Click to show internal directories.
Click to hide internal directories.