mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-03 13:11:42 +02:00
32 lines
623 B
Go
32 lines
623 B
Go
|
package main
|
||
|
|
||
|
var _headerTemplate = `
|
||
|
// Code generated by kratos tool genbts. DO NOT EDIT.
|
||
|
|
||
|
NEWLINE
|
||
|
/*
|
||
|
Package {{.PkgName}} is a generated cache proxy package.
|
||
|
It is generated from:
|
||
|
ARGS
|
||
|
*/
|
||
|
NEWLINE
|
||
|
|
||
|
package {{.PkgName}}
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
{{if .EnableBatch }}"sync"{{end}}
|
||
|
NEWLINE
|
||
|
"github.com/bilibili/kratos/pkg/stat/prom"
|
||
|
{{if .EnableBatch }}"github.com/bilibili/kratos/pkg/sync/errgroup"{{end}}
|
||
|
{{.ImportPackage}}
|
||
|
NEWLINE
|
||
|
{{if .EnableSingleFlight}} "golang.org/x/sync/singleflight" {{end}}
|
||
|
)
|
||
|
|
||
|
var _ _bts
|
||
|
{{if .EnableSingleFlight}}
|
||
|
var cacheSingleFlights = [SFCOUNT]*singleflight.Group{SFINIT}
|
||
|
{{end }}
|
||
|
`
|