Documentation ¶
Index ¶
- func ParseFabircChain(chain *Chain) model.FabricChain
- func ParseFabircChainAndChannel(chain *Chain, channel *Channel) model.FabricChain
- func ParseFabircChannel(chain model.FabricChain, cc *Chaincode) model.FabricChannel
- type Chain
- type Chaincode
- type Channel
- type JwtToken
- type Role
- type User
- type UserDetail
- type UserInfo
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFabircChain ¶
func ParseFabircChain(chain *Chain) model.FabricChain
func ParseFabircChainAndChannel ¶
func ParseFabircChainAndChannel(chain *Chain, channel *Channel) model.FabricChain
func ParseFabircChannel ¶
func ParseFabircChannel(chain model.FabricChain, cc *Chaincode) model.FabricChannel
Types ¶
type Chain ¶
type Chain struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Name string `json:"name" xorm:"not null VARCHAR(64)"` UserAccount string `json:"userAccount" xorm:"not null VARCHAR(100)"` Description string `json:"description" xorm:"VARCHAR(255)"` Consensus string `json:"consensus" xorm:"not null VARCHAR(10)"` PeersOrgs string `json:"peersOrgs" xorm:"not null VARCHAR(100)"` OrderCount int `json:"orderCount" xorm:"not null INT(11)"` PeerCount int `json:"peerCount" xorm:"not null INT(11)"` TlsEnabled string `json:"tlsEnabled" xorm:"not null VARCHAR(5)"` Status int `json:"status" xorm:"default 0 INT(11)"` //0定义 1已构建 2运行中 3已停止 Created int64 `json:"created" xorm:"not null BIGINT(20)"` }
type Chaincode ¶
type Chaincode struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` ChaincodeName string `json:"chaincodeName" xorm:"not null VARCHAR(64)"` ChannelId int `json:"channelId" xorm:"not null INT(11)"` UserAccount string `json:"userAccount" xorm:"not null VARCHAR(100)"` Created int64 `json:"created" xorm:"not null BIGINT(20)"` Version string `json:"version" xorm:"VARCHAR(10)"` Status int `json:"status" xorm:"default 0 INT(11)"` GithubPath string `json:"githubPath" xorm:"VARCHAR(256)"` Args string `json:"args" xorm:"not null VARCHAR(500)"` Policy string `json:"policy" xorm:"not null VARCHAR(200)"` }
type Channel ¶
type Channel struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` ChainId int `json:"chainId" xorm:"not null INT(11)"` Orgs string `json:"orgs" xorm:"not null VARCHAR(255)"` ChannelName string `json:"channelName" xorm:"not null VARCHAR(64)"` UserAccount string `json:"userAccount" xorm:"not null VARCHAR(100)"` Created int64 `json:"created" xorm:"not null BIGINT(20)"` }
type User ¶
type User struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Account string `json:"account" xorm:"not null unique VARCHAR(30)"` Password string `json:"password" xorm:"not null VARCHAR(100)"` Avatar string `json:"avatar" xorm:"VARCHAR(200)"` Name string `json:"name" xorm:"not null VARCHAR(20)"` Created int64 `json:"created" xorm:"not null BIGINT(20)"` }
type UserDetail ¶
Click to show internal directories.
Click to hide internal directories.