lib

package
v0.0.0-...-2618b62 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeOwnAndSelectIt

func ChangeOwnAndSelectIt(contract *gateway.Contract, carName string, owner string)

func CreateCarAndSelectIt

func CreateCarAndSelectIt(contract *gateway.Contract, carName string)

func EnrollUser

func EnrollUser(sdk *fabsdk.FabricSDK, username string, password string) (bool, error)

EnrollUser enroll a user have registerd

func GetContract

func GetContract(configPath string, walletName string) (error, *gateway.Contract)

func PopulateWallet

func PopulateWallet(wallet *gateway.Wallet, walletName string) error

func QueryAllCars

func QueryAllCars(contract *gateway.Contract)

func RegisterlUser

func RegisterlUser(sdk *fabsdk.FabricSDK, username, password, department string) error

Register a new user with username , password and department.

Types

type ClientFixture

type ClientFixture struct {
	// contains filtered or unexported fields
}

func (*ClientFixture) Setup

func (f *ClientFixture) Setup(configFile string) *fabsdk.FabricSDK

Jump to

Keyboard shortcuts

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