Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthcheckResponse ¶ added in v0.7.0
type HealthcheckResponse struct {
Status string `json:"status"`
}
type HelpResponse ¶
type HelpResponse struct {
Arguments map[string]*config.RunArgument `json:"arguments"`
}
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
func NewPredictor ¶
func (*Predictor) Predict ¶
func (p *Predictor) Predict(inputs Inputs, context RequestContext) (*Response, error)
type Request ¶ added in v0.1.0
type Request struct { // TODO: could this be Inputs? Input map[string]interface{} `json:"input"` Context RequestContext `json:"context"` }
type RequestContext ¶ added in v0.15.1
type RequestContext struct {
ReplicateAPIToken string `json:"replicate_api_token,omitempty"`
}
type Response ¶ added in v0.1.0
type Response struct { Status status `json:"status"` Output *interface{} `json:"output"` Error string `json:"error"` }
type ValidationErrorResponse ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.