You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
450 B
17 lines
450 B
package service |
|
|
|
import ( |
|
"context" |
|
|
|
"go-common/app/interface/main/report-click/model" |
|
) |
|
|
|
// ErrReport reports the failures of calling the api "heartbeat/mobile" |
|
func (s *Service) ErrReport(ctx context.Context, req *model.ErrReport) { |
|
s.promErr.Incr(req.ToProm()) |
|
} |
|
|
|
// SuccReport reports the success of calling the api "heartbeat/mobile" |
|
func (s *Service) SuccReport(ctx context.Context, req *model.SuccReport) { |
|
s.promInfo.Incr(req.ToProm()) |
|
}
|
|
|