charge

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Threshold = 100

用户可以快速调用的阈值,该值应该和系统输出能力相匹配

Variables

This section is empty.

Functions

func Push

func Push(obj interface{}, queue ali_mns.AliMNSQueue) (err error)

Push 向阿里推送相关的消息

Types

type Charge

type Charge struct {
	UserID        bson.ObjectId
	TransactionID string
	Unit          int
	Stat          Stat
}

func (*Charge) WriteToInfluxDB

func (c *Charge) WriteToInfluxDB(cli client.Client) error

type Remark

type Remark struct {
	Value      interface{}
	JustForLog bool
}

type RemoveAPIMessage

type RemoveAPIMessage struct {
	APPID string
	API   string
}

type Stat

type Stat struct {
	StartAt    time.Time
	SendAt     time.Time
	RecvAt     time.Time
	CallBackAt time.Time
	API        string
	Source     string
	RemoteIp   string
	Request    interface{}
	APIRemark  map[string]Remark
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL