Documentation ¶
Index ¶
- Constants
- func BuildDurationFilterSql(fieldName string, minDuration, maxDuration float64) string
- func BuildLayerPathFilterSql(path string, paramName string, fuzzy bool, layers ...TransactionLayerType) string
- func BuildServerSideServiceIdFilterSql(paramName string, layers ...TransactionLayerType) string
- func FormatFloatWith2Digits(value float64) float64
- func GetDataSourceNames(layers ...TransactionLayerType) string
- func GetLayerPathKeys(layers ...TransactionLayerType) []string
- func GetServerSideServiceIdKeys(layers ...TransactionLayerType) []string
- func GetSlowThreshold(layer TransactionLayerType) float64
- func GetSortSql(fieldSqlMap map[string]string, defaultOrder string, sorts ...*Sort) string
- func NewStructValue(v map[string]interface{}) *structpb.Value
- type Sort
- type TransactionLayerType
Constants ¶
View Source
const DefaultPageSize = 10
View Source
const LangKey = "lang"
Variables ¶
This section is empty.
Functions ¶
func BuildDurationFilterSql ¶
func BuildLayerPathFilterSql ¶
func BuildLayerPathFilterSql(path string, paramName string, fuzzy bool, layers ...TransactionLayerType) string
func BuildServerSideServiceIdFilterSql ¶
func BuildServerSideServiceIdFilterSql(paramName string, layers ...TransactionLayerType) string
func FormatFloatWith2Digits ¶
func GetDataSourceNames ¶
func GetDataSourceNames(layers ...TransactionLayerType) string
func GetLayerPathKeys ¶
func GetLayerPathKeys(layers ...TransactionLayerType) []string
func GetServerSideServiceIdKeys ¶
func GetServerSideServiceIdKeys(layers ...TransactionLayerType) []string
func GetSlowThreshold ¶
func GetSlowThreshold(layer TransactionLayerType) float64
func GetSortSql ¶
func NewStructValue ¶
Types ¶
type TransactionLayerType ¶
type TransactionLayerType string
const ( TransactionLayerHttp TransactionLayerType = "http" TransactionLayerRpc TransactionLayerType = "rpc" TransactionLayerCache TransactionLayerType = "cache" TransactionLayerDb TransactionLayerType = "db" TransactionLayerMq TransactionLayerType = "mq" )
Click to show internal directories.
Click to hide internal directories.