mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
34 lines
682 B
Go
34 lines
682 B
Go
package main
|
|
|
|
var _headerTemplate = `
|
|
// Code generated by kratos tool mcgen. DO NOT EDIT.
|
|
|
|
NEWLINE
|
|
/*
|
|
Package {{.PkgName}} is a generated mc cache package.
|
|
It is generated from:
|
|
ARGS
|
|
*/
|
|
NEWLINE
|
|
|
|
package {{.PkgName}}
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
{{if .UseStrConv}}"strconv"{{end}}
|
|
{{if .EnableBatch }}"sync"{{end}}
|
|
NEWLINE
|
|
"github.com/bilibili/kratos/pkg/stat/metric"
|
|
{{if .UseMemcached }}"github.com/bilibili/kratos/pkg/cache/memcache"{{end}}
|
|
{{if .EnableBatch }}"github.com/bilibili/kratos/pkg/sync/errgroup"{{end}}
|
|
"github.com/bilibili/kratos/pkg/log"
|
|
{{.ImportPackage}}
|
|
)
|
|
|
|
var (
|
|
_ _mc
|
|
_metricErrCount = metric.NewBusinessMetricCount("mc_error_total", "NAME")
|
|
)
|
|
`
|