Documentation ¶
Overview ¶
* Copyright (c) 2019. Baidu Inc. All Rights Reserved.
* Copyright (c) 2019. Baidu Inc. All Rights Reserved.
* Copyright (c) 2019. Baidu Inc. All Rights Reserved.
* Copyright (c) 2019. Baidu Inc. All Rights Reserved.
Index ¶
- func InitTables()
- type CaDb
- type NetAdmin
- type NetAdminDao
- type Node
- type NodeDao
- func (nodeDao *NodeDao) Insert(node *Node) (int64, error)
- func (nodeDao *NodeDao) QueryTotalNode(net, adminAddress string) (uint32, error)
- func (nodeDao *NodeDao) QueryValidNodeByNetAndAddress(net, address string) *Node
- func (nodeDao *NodeDao) QueryValidNodeByNetAndAdmin(net, adminAddress string) *Node
- func (nodeDao *NodeDao) RevokeNodeByNetAndAddress(net, address string) (bool, error)
- type Revoke
- type RevokeDao
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CaDb ¶
type CaDb struct {
// contains filtered or unexported fields
}
func GetDbInstance ¶
func GetDbInstance() *CaDb
type NetAdmin ¶
type NetAdmin struct { Id int `db:"id"` Net string `db:"net"` Address string `db:"address"` SerialNum string `db:"serial_num"` Cert string `db:"cert"` PrivateKey string `db:"private_key"` CreateTime int `db:"create_time"` UpdateTime int `db:"update_time"` IsValid bool `db:"is_valid"` ValidTime int `db:"valid_time"` HdPrivateKey string `db:"hd_private_key"` }
type NetAdminDao ¶
type NetAdminDao struct { }
ca内的网络管理数据层
func (*NetAdminDao) GetNetAdmin ¶
func (netAdminDao *NetAdminDao) GetNetAdmin(net, adminAddress string) *NetAdmin
type Node ¶
type Node struct { Id int `db:"id"` Net string `db:"net"` AdminAddress string `db:"adminAddress"` Address string `db:"address"` SerialNum string `db:"serial_num"` Cert string `db:"cert"` PrivateKey string `db:"private_key"` CreateTime int `db:"create_time"` UpdateTime int `db:"update_time"` IsValid bool `db:"is_valid"` ValidTime int `db:"valid_time"` HdPrivateKey string `db:"hd_private_key"` }
type NodeDao ¶
type NodeDao struct { }
ca网络下的节点管理数据层
func (*NodeDao) QueryTotalNode ¶
func (*NodeDao) QueryValidNodeByNetAndAddress ¶
func (*NodeDao) QueryValidNodeByNetAndAdmin ¶
Click to show internal directories.
Click to hide internal directories.