utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SECRETSMANAGER_PLUGIN_GO_OF_USER_AGENT          = "aliyun-sdk-managed-credentials-providers-go"
	SECRETSMANAGER_PLUGIN_GO_OF_USER_AGENT_PRIORITY = 2
	PROJECT_VERSION                                 = "0.0.6"
)
View Source
const (
	TimezoneDatePattern = "2006-01-02T15:04:05Z"
)

Variables

This section is empty.

Functions

func Call

func Call(instance interface{}, methodName string, params ...interface{}) ([]reflect.Value, error)

func FormatDate

func FormatDate(date time.Time, pattern string) string

将UTC日期转换为日期字符串

func GenStandardUuid

func GenStandardUuid() (ret string, err error)

func GetConfigName added in v0.0.4

func GetConfigName() string

func GetUnExportedField

func GetUnExportedField(ptr interface{}, fieldName string) reflect.Value

func LogAndAddMonitorMessage

func LogAndAddMonitorMessage(blockingQueue *models.BlockingQueue, monitorMessageInfo *models.MonitorMessageInfo)

func ParseDate

func ParseDate(dateStr string, pattern string) (int64, error)

将UTC日期字符串转换为时间戳毫秒数

func SetConfigName added in v0.0.4

func SetConfigName(name string)

func SetUnExportedField

func SetUnExportedField(ptr interface{}, fieldName string, newFieldVal interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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