fabric_sdk

package
v0.0.0-...-f20a32d Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ChannelID = "mychannel"

Variables

This section is empty.

Functions

func SetUp

func SetUp(configFile string, client *Client) (*fabsdk.FabricSDK, error)

启动sdk

Types

type Client

type Client struct {
	Context       *context.ClientProvider
	ResMgmtClient *resmgmt.Client
	ChannelClient *channel.Client
	Peer          string
	Identity      string
}

func (*Client) CheckAuthority

func (c *Client) CheckAuthority(dirCID string, peerId string, authority int) (string, error)

查询是否有权限

Jump to

Keyboard shortcuts

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