helper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 8 Imported by: 0

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 WithFormat(arg string) Option

func WithParamProvider

func WithParamProvider(pp ParamProvider) Option

func WithWriter

func WithWriter(w io.Writer) Option

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 (*PredictRace) WriteResult

func (pr *PredictRace) WriteResult() error

Jump to

Keyboard shortcuts

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