Documentation ¶ Index ¶ func AsyncConsume(postGroupConsumer balance.PostGroupConsumer, code int, firstByteAt time.Time, ...) func CalculateAmount(usage model.Usage, modelPrice model.Price) float64 func Consume(ctx context.Context, postGroupConsumer balance.PostGroupConsumer, ...) func Wait() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AsyncConsume ¶ func AsyncConsume( postGroupConsumer balance.PostGroupConsumer, code int, firstByteAt time.Time, meta *meta.Meta, usage model.Usage, modelPrice model.Price, content string, ip string, retryTimes int, requestDetail *model.RequestDetail, downstreamResult bool, ) func CalculateAmount ¶ func CalculateAmount( usage model.Usage, modelPrice model.Price, ) float64 func Consume ¶ func Consume( ctx context.Context, postGroupConsumer balance.PostGroupConsumer, firstByteAt time.Time, code int, meta *meta.Meta, usage model.Usage, modelPrice model.Price, content string, ip string, retryTimes int, requestDetail *model.RequestDetail, downstreamResult bool, ) func Wait ¶ func Wait() Types ¶ This section is empty. Source Files ¶ View all Source files consume.gorecord.go Click to show internal directories. Click to hide internal directories.