示例#1
0
// Finish is called once the baseController method completes
func (baseController *BaseController) Finish() {
	defer func() {
		if baseController.MongoSession != nil {
			mongo.CloseSession(baseController.UserId, baseController.MongoSession)
			baseController.MongoSession = nil
		}
	}()

	tracelog.COMPLETEDf(baseController.UserId, "Finish", baseController.Ctx.Request.URL.Path)
}
示例#2
0
// Finish is called once the baseController method completes.
func (baseController *BaseController) Finish() {
	defer func() {
		if baseController.MongoSession != nil {
			mongo.CloseSession(baseController.UserID, baseController.MongoSession)
			baseController.MongoSession = nil
		}
	}()

	log.Completedf(baseController.UserID, "Finish", baseController.Ctx.Request.URL.Path)
}
示例#3
0
// Finish is called after the controller.
func (service *Service) Finish() (err error) {
	defer helper.CatchPanic(&err, service.UserID, "Service.Finish")

	if service.MongoSession != nil {
		mongo.CloseSession(service.UserID, service.MongoSession)
		service.MongoSession = nil
	}

	return err
}
示例#4
0
func (this *Service) Finish() (err error) {
	defer helper.CatchPanic(&err, this.UserId, "Service.Finish")

	if this.MongoSession != nil {
		mongo.CloseSession(this.UserId, this.MongoSession)
		this.MongoSession = nil
	}

	return err
}
示例#5
0
// Finish is called once the controller method completes
func (this *BaseController) Finish() {
	defer func() {
		if this.MongoSession != nil {
			mongo.CloseSession(this.UserId, this.MongoSession)
			this.MongoSession = nil
		}
	}()

	tracelog.COMPLETEDf(this.UserId, "Finish", this.Ctx.Request.URL.Path)
}
示例#6
0
// Finish is called once the controller method completes
func Finish(service *services.Service) {
	defer func() {
		if service.MongoSession != nil {
			mongo.CloseSession(service.UserId, service.MongoSession)
			service.MongoSession = nil
		}
	}()

	tracelog.COMPLETED(service.UserId, "Finish")
}