core

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GAppName

func GAppName() string

GAppName 运行服务名

func GBuildVersion

func GBuildVersion() string

GBuildVersion 构建版本

func GConfigs added in v0.1.2

func GConfigs() cfg_provider.ConfigProvider

GConfigs 全局配置

func GEventBus added in v0.2.18

func GEventBus() *event_bus.EventBus

func GRunEnv

func GRunEnv() string

func GWorkDir added in v0.2.1

func GWorkDir() string

func InitEnv added in v0.2.6

func InitEnv(appName, workDir string, args ...string) error

InitEnv 初始化环境

func NewLoggerWithCTX

func NewLoggerWithCTX(module string, args ...context.Context) log_provider.Logger

NewLoggerWithCTX 日志收集器

func SetLogProvider added in v0.3.11

func SetLogProvider(logProvider log_provider.LoggerProvider)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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