package
0.0.0-20221207144256-af619fd70247
Repository: https://github.com/bugkillerpro/less.git
Documentation: pkg.go.dev

# Constants

AppKey 定义字符串凭证.
No description provided by the author
ConfigKey is config key in container.
DebugLevel level.
DistributedKey 定义字符串凭证.
EnvDevelopment 代表开发环境.
EnvKey 是环境变量服务字符串凭证.
EnvProduction 代表生产环境.
EnvTesting 代表测试环境.
ErrorLevel level.
FatalLevel level.
No description provided by the author
InfoLevel level.
No description provided by the author
No description provided by the author
ORMKey 代表 ORM的服务.
PanicLevel level, panic 表示会导致整个程序出现崩溃的日志信息.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TraceLevel level.
UnknownLevel 表示未知的日志级别.
WarnLevel level.

# Structs

DBConfig 代表数据库连接的所有配置.
RedisConfig 为less定义的Redis配置结构.
SSHConfig 为less定义的SSH配置结构.
Trace define struct according Google Dapper.

# Interfaces

App 定义接口.
CacheService 缓存服务.
Config 定义了配置文件服务,读取配置文件,支持点分割的路径读取 例如: .Get("app.name") 表示从app文件中读取name属性 建议使用 yaml 属性, https://yaml.org/spec/1.2/spec.html.
Distributed 分布式服务.
Env 定义环境变量的获取服务.
No description provided by the author
Kernel 接口提供框架最核心的结构.
Log 定义了日志服务协议.
ORMService 表示传入的参数.
RedisService 表示一个redis服务.
SSHService 表示一个ssh服务.
No description provided by the author

# Type aliases

CtxFielder 定义了从context中获取信息的方法.
DBOption 代表初始化的时候的选项.
Formatter 定义了将日志信息组织成字符串的通用方法.
No description provided by the author
RedisOption 代表初始化的时候的选项.
RememberFunc 缓存的Remember方法使用,Cache-Aside模式对应的对象生成方法.
SSHOption 代表初始化的时候的选项.