Documentation
¶
Index ¶
Constants ¶
View Source
const ( SleepTime = time.Microsecond * 100 MaxBatchSize = 32 MaxLatency = 5000 )
Variables ¶
This section is empty.
Functions ¶
func GenerateUUID ¶
func GenerateUUID() string
func GetNowTime ¶
Types ¶
type BatcherInfo ¶
type BatcherInfo struct {
MaxBatchSize int
MaxLatency int
Port string
SvcHost string
SvcPort string
Timeout time.Duration
Path string
ContentType string
BatchID string
Instances []interface{}
Predictions Predictions
Info map[*context.Context]InputInfo
Start time.Time
Now time.Time
CurrentInputLen int
}
func (*BatcherInfo) BatchPredict ¶
func (batcherInfo *BatcherInfo) BatchPredict()
func (*BatcherInfo) Batcher ¶
func (batcherInfo *BatcherInfo) Batcher()
func (*BatcherInfo) CallService ¶
func (batcherInfo *BatcherInfo) CallService() *string
func (*BatcherInfo) Consume ¶
func (batcherInfo *BatcherInfo) Consume()
func (*BatcherInfo) InitializeInfo ¶
func (batcherInfo *BatcherInfo) InitializeInfo()
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) Post ¶
func (c *MainController) Post()
type Predictions ¶
type Predictions struct {
Predictions []interface{} `json:"predictions"`
}
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.