models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* @Description: * @Autor: liujinyin * @Date: 2021-07-02 18:17:24 * @LastEditors: liujinyin * @LastEditTime: 2021-07-02 19:40:42

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	UID  string `json:"uid,omitempty"`
	EUID string `json:"euid,omitempty"`

	AesSecret        string `json:"aes_secret,omitempty"`
	DesSecret        string `json:"des_secret,omitempty"`
	HmacSecret       string `json:"hmac_secret,omitempty"`
	Md5Secret        string `json:"md5_secret,omitempty"`
	Sha1Secret       string `json:"sha1_secret,omitempty"`
	Sha256Secret     string `json:"sha256_secret,omitempty"`
	Sha512Secret     string `json:"sha512_secret,omitempty"`
	RsaPrivateSecret string `json:"rsa_private_secret,omitempty"`
	RsaPublicSecret  string `json:"rsa_public_secret,omitempty"`

	RsaType      string `json:"rsa_type,omitempty"`
	RsaBits      int    `json:"rsa_bits,omitempty"`
	MerchantCert string `json:"mer_cert,omitempty"`
	SupplierCert string `json:"spl_cert,omitempty"`
	RootCert     string `json:"root_cert,omitempty"`
	CertKey      string `json:"cert_key,omitempty"`

	Time       string `json:"time,omitempty"`
	ExpireTime string `json:"expire_time,omitempty"`
}

func (*Item) GetSecret

func (i *Item) GetSecret(stype string) string

func (*Item) SetSecret

func (i *Item) SetSecret(stype, secret string)

Jump to

Keyboard shortcuts

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