Documentation ¶
Index ¶
- Constants
- func GetDeserializers() map[string]msp.IdentityDeserializer
- func GetIdentityDeserializer(chainID string) msp.IdentityDeserializer
- func GetLocalMSP() msp.MSP
- func GetLocalSigningIdentityOrPanic() msp.SigningIdentity
- func GetManagerForChain(chainID string) msp.MSPManager
- func LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error
- func LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error
- func XXXSetMSPManager(chainID string, manager msp.MSPManager)
- type DeserializersManager
- type MSPPrincipalGetter
Constants ¶
View Source
const ( //admins是本地MSP管理员的标签 Admins = "Admins" //成员是本地MSP成员的标签 Members = "Members" )
Variables ¶
This section is empty.
Functions ¶
func GetDeserializers ¶
func GetDeserializers() map[string]msp.IdentityDeserializer
GetManagers返回所有已注册的管理器
func GetIdentityDeserializer ¶
func GetIdentityDeserializer(chainID string) msp.IdentityDeserializer
GetIdentityDeserializer返回给定链的IdentityDeserializer
func GetLocalSigningIdentityOrPanic ¶
func GetLocalSigningIdentityOrPanic() msp.SigningIdentity
GetLocalSigningIdentityOrpanic返回本地签名标识或紧急情况 或错误
func GetManagerForChain ¶
func GetManagerForChain(chainID string) msp.MSPManager
GetManagerForChain返回所提供的 链;如果不存在此类管理器,则创建一个
func LoadLocalMsp ¶
func LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error
loadLocalMSP从指定目录加载本地MSP
func LoadLocalMspWithType ¶
func LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error
loadLocalMSPWithType从指定目录中加载具有指定类型的本地MSP
func XXXSetMSPManager ¶
func XXXSetMSPManager(chainID string, manager msp.MSPManager)
XXXSetMSPManager是从自定义MSP配置块转换的权宜之计解决方案 分析到channelconfig.resources接口,同时保留有问题的单例 MSP经理的性质
Types ¶
type DeserializersManager ¶
type DeserializersManager interface { //反序列化接收SerializedEntity字节并返回未解析的窗体 //或失败时出错。 Deserialize(raw []byte) (*mspproto.SerializedIdentity, error) //getlocalmspidentifier返回本地msp标识符 GetLocalMSPIdentifier() string //GetLocalDeserializer返回本地标识反序列化程序 GetLocalDeserializer() msp.IdentityDeserializer //getChannelDeserializers返回通道反序列化器的映射 GetChannelDeserializers() map[string]msp.IdentityDeserializer }
DeserializerManager是 访问本地和通道反序列化程序
func NewDeserializersManager ¶
func NewDeserializersManager() DeserializersManager
反序列化程序管理器返回反序列化程序管理器的新实例
type MSPPrincipalGetter ¶
type MSPPrincipalGetter interface { //get返回给定角色的MSP主体 Get(role string) (*msp.MSPPrincipal, error) }
func NewLocalMSPPrincipalGetter ¶
func NewLocalMSPPrincipalGetter() MSPPrincipalGetter
Click to show internal directories.
Click to hide internal directories.