Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoClient *mongo.Client
View Source
var MongoCollection *mongo.Collection
View Source
var MongoDatabase *mongo.Database
Functions ¶
func MustInitMongoClient ¶
Types ¶
type OpenRecord ¶
type OpenRecord struct { Id primitive.ObjectID `bson:"_id,omitempty"` ChannelId string `bson:"channel_id"` AppName string `bson:"app_name"` Ip string `bson:"ip"` Region Region `bson:"region"` // 域名 Origin string `bson:"origin"` IsCountryChina bool `bson:"is_country_china"` IsChinaInland bool `bson:"is_china_inland"` CreatedAt primitive.Timestamp `bson:"created_at"` }
func (*OpenRecord) Insert ¶
func (m *OpenRecord) Insert() error
Click to show internal directories.
Click to hide internal directories.