Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsyncConsume ¶
func AsyncConsume( postGroupConsumer balance.PostGroupConsumer, code int, usage *relaymodel.Usage, meta *meta.Meta, inputPrice, outputPrice float64, cachedPrice float64, cacheCreationPrice float64, content string, ip string, retryTimes int, requestDetail *model.RequestDetail, downstreamResult bool, )
func CalculateAmount ¶
func CalculateAmount( usage *relaymodel.Usage, inputPrice, outputPrice, cachedPrice, cacheCreationPrice float64, ) float64
func Consume ¶
func Consume( ctx context.Context, postGroupConsumer balance.PostGroupConsumer, code int, usage *relaymodel.Usage, meta *meta.Meta, inputPrice, outputPrice float64, cachedPrice float64, cacheCreationPrice float64, content string, ip string, retryTimes int, requestDetail *model.RequestDetail, downstreamResult bool, )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.