Versions in this module Expand all Collapse all v1 v1.0.1 Mar 22, 2022 Changes in this version + const AESStr + const CertStr + const DESStr + const HMACStr + const MD5Str + const RSAStr + const SHA1Str + const SHA256Str + const SHA512Str + func Bind(registry services.IMicroRegistry, opts ...ConfOption) error + func Config(opts ...Option) + func NewSasClient(euid string, opts ...ClientOption) *sasClient + func Unbind() + type ClientOption func(*sasClient) + func WithChain(chain string) ClientOption + func WithDynamicKeyName(name string) ClientOption + func WithEncryptName(name ...string) ClientOption + func WithKeyValue(keyValue string) ClientOption + func WithSecretName(sertName, sertKeyValue string) ClientOption + func WithSertModeHead(chain ...string) ClientOption + func WithSertModeTail(chain ...string) ClientOption + func WithSertModeTailAndHead(chain ...string) ClientOption + func WithSignAlias(name string) ClientOption + func WithSortAll() ClientOption + func WithSortData() ClientOption + func WithSortStatic(fields ...string) ClientOption + func WithTimestampAlias(name string) ClientOption + func WithUIDAlias(name string) ClientOption + type ConfOption func() + func WithDBName(db string) ConfOption + func WithServicePrefix(prefix string) ConfOption + type Option func() + func WithCleanupInterval(interval time.Duration) Option + func WithExpiration(expiration time.Duration) Option + type Response struct + AesSecret string + Bits int + CertKey string + DesSecret string + ExpireTime string + HmacSecret string + Md5Secret string + MerchantCert string + PkcsType string + RootCert string + RsaPrivateSecret string + RsaPublicSecret string + Sha1Secret string + Sha256Secret string + Sha512Secret string + Status string + SupplierCert string + Time string + UID string + type SecretOption func(*models.Item) + func WithAesSecret(key string) SecretOption + func WithCertKey(key string) SecretOption + func WithDesSecret(key string) SecretOption + func WithExpire(expireSeconds int) SecretOption + func WithHmacSecret(key string) SecretOption + func WithMd5Secret(key string) SecretOption + func WithMerchantCert(key string) SecretOption + func WithPkcsType(pkcsType string) SecretOption + func WithRootCert(key string) SecretOption + func WithRsaBits(rsaBits int) SecretOption + func WithRsaPrivateKey(priKey string) SecretOption + func WithRsaPublicKey(pubKey string) SecretOption + func WithSha1Secret(key string) SecretOption + func WithSha256Secret(key string) SecretOption + func WithSha512Secret(key string) SecretOption + func WithSupplierCert(key string) SecretOption