Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2023 Changes in this version + const ACCESS_CONTROL + const CERT_CONTENT_NAME + const CERT_INFO_NAME + const KEY_PAIR_NAME + const REVOKED_CERT_NAME + var AccessRole2NameMap = map[AccessRole]string + var CertUsage2NameMap = map[CertUsage]string + var DB *gorm.DB + var Name2AccessRoleMap = map[string]AccessRole + var Name2CertUsageMap = map[string]CertUsage + var Name2UserTypeMap = map[string]UserType + var UserType2NameMap = map[UserType]string + func GormInit() + type AccessRole int + const ADMIN + const USER + type AppInfo struct + AppId string + AppKey string + AppRole AccessRole + func (*AppInfo) TableName() string + type CertContent struct + Aki string + CommonName string + Content string + Country string + CsrContent string + ExpirationDate int64 + ExtKeyUsage string + IsCa bool + IssueDate int64 + KeyUsage int + Locality string + Organization string + OrganizationalUnit string + Province string + SerialNumber int64 + Signature string + Ski string + func (*CertContent) TableName() string + type CertInfo struct + CertUsage CertUsage + IssuerSn int64 + OrgId string + P2pNodeId string + PrivateKeyId string + SerialNumber int64 + UserId string + UserType UserType + func (*CertInfo) TableName() string + type CertUsage int + const SIGN + const TLS + const TLS_ENC + const TLS_SIGN + type KeyPair struct + HashType crypto.HashType + KeyType crypto.KeyType + PrivateKey string + PublicKey string + Ski string + func (*KeyPair) TableName() string + type RevokedCert struct + OrgId string + Reason string + RevokedBy int64 + RevokedCertSN int64 + RevokedEndTime int64 + RevokedStartTime int64 + func (*RevokedCert) TableName() string + type TableModel struct + CreatedAt int + Id int + UpdatedAt int + type UserType int + const INTERMRDIARY_CA + const NODE_COMMON + const NODE_CONSENSUS + const ROOT_CA + const USER_ADMIN + const USER_CLIENT