misc

package
v0.0.0-...-d050cfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CacheUpdateIntv = 60

缓存更新间隔(秒)

Variables

View Source
var StaticCql *gocql.Session
View Source
var TraceCql *gocql.Session

Functions

func GetExceptionByID

func GetExceptionByID(appName string, id int) string

func GetMethodByID

func GetMethodByID(appName string, id int) string

func GetSqlByID

func GetSqlByID(appName string, id int) string

func InitConfig

func InitConfig(path string)

InitConfig ...

func SplitMethod

func SplitMethod(m string) (string, string)

切分pinpoint采集的java method,获得class和method name e.g. org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response)

func StartEndDate

func StartEndDate(c echo.Context) (start time.Time, end time.Time, err error)

获取开始和截止日期

func TimeToChartString

func TimeToChartString(t time.Time) string

func TimeToChartString1

func TimeToChartString1(t time.Time) string

func TimeToChartString2

func TimeToChartString2(t time.Time) string

func Timestamp2TimeString

func Timestamp2TimeString(t int64) string

Types

type Config

type Config struct {
	Common struct {
		Version    string
		LogLevel   string
		AdminToken string
	}

	Login struct {
		SsoLogin  string
		SsoLogout string
		Tone      string
	}

	Storage struct {
		Cluster  []string
		NumConns int
	}

	Web struct {
		Addr string
	}
}

Config ...

var Conf *Config

Conf ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL