Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMaxEvaluatorWait ¶ added in v0.12.4
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler converts a model prediction HTTP request to its internal calls.
func NewHandler ¶
NewHandler creates a new HTTP service Handler
type Response ¶
type Response struct {
Status string
Error string
DictHash int
Data interface{}
ServiceTimeMcs int
// contains filtered or unexported fields
}
Response represents service response
func (*Response) MarshalJSONObject ¶
MarshalJSONObject marshal response
type Service ¶
type Service struct {
// reload
ReloadOK int32
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, fs afs.Service, cfg *config.Model, metrics *gmetric.Service, sema *semaphore.Weighted, datastores map[string]*datastore.Service, options ...Option) (*Service, error)
New creates a service
func (*Service) Dictionary ¶
func (s *Service) Dictionary() *common.Dictionary
func (*Service) NewRequest ¶
NewRequest should be used for Do()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.