package
2.0.17
Repository: https://github.com/grpc-boot/base.git
Documentation: pkg.go.dev

# Functions

AcquireCtx 申请Context.
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
CreatePkcs1Keys 生成pkcs1格式公钥私钥.
CreatePkcs8Keys 生成pkcs8格式公钥私钥.
GetMachineIdByEnv 根据环境变量获取机器Id.
GetMachineIdByIp 根据Ip获取机器Id.
No description provided by the author
No description provided by the author
No description provided by the author
NewAes 实例化Aes.
NewAesWithBytes 实例化Aes.
No description provided by the author
No description provided by the author
NewI18n 实例化多语言.
NewI18nFromJson 从Json文件配置实例化多语言.
NewI18nFromYaml 从Yaml文件配置实例化多语言.
No description provided by the author
NewRsa 实例化Rsa.
NewRsaBytes 实例化Rsa.
NewRsaWithPkcs1 pkcs1实例化Rsa.
NewRsaWithPkcs1Bytes pkc1实例化Rsa.
NewRsaWithPkcs8 pkcs8实例化Rsa.
No description provided by the author
NewSF 实例化雪花算法.
NewSFByIp ip方式实例化雪花算法.
NewSFByMachineFunc GetMachineId方式实例化雪花算法.
StatusOk 创建携带数据的Status.
StatusWithCode 指定Code获取一个Status.
StatusWithCodeMsg 实例化Status.
StatusWithJsonUnmarshal 指定json []byte获取一个Status.

# Constants

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

# Variables

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
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Aes Aes加密.
No description provided by the author
No description provided by the author
Context 上下文.
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
Rsa Rsa.
No description provided by the author

# Interfaces

HashRing Hash环.
I18n 多语言接口.
SnowFlake 雪花算法接口,1位0,41位毫秒时间戳,8位机器码,14位递增值.

# Type aliases

GetMachineId 获取机器Id.
No description provided by the author
No description provided by the author