context

package
v0.0.0-...-75eda33 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFunction

func ParseFunction(bs []byte) (string, map[string]string, error)

Types

type Context

type Context struct {
	Stub  shim.ChaincodeStubInterface
	Store store.Store
	// contains filtered or unexported fields
}

func New

func New(stub shim.ChaincodeStubInterface, name, version string, path ...string) *Context

func (*Context) ArgBytes

func (ctx *Context) ArgBytes(n int) ([]byte, error)

func (*Context) ArgInt64

func (ctx *Context) ArgInt64(n int) (int64, error)

func (*Context) ArgKV

func (ctx *Context) ArgKV(pos int) (string, []byte, error)

func (*Context) ArgString

func (ctx *Context) ArgString(n int) (string, error)

func (*Context) ArgUint64

func (ctx *Context) ArgUint64(n int) (uint64, error)

func (*Context) Args

func (ctx *Context) Args() [][]byte

func (*Context) ClientCertificate

func (ctx *Context) ClientCertificate() (*x509.Certificate, error)

func (*Context) ClientIdentity

func (ctx *Context) ClientIdentity() (cid.ClientIdentity, error)

func (*Context) ClientMSPID

func (ctx *Context) ClientMSPID() (string, error)

func (*Context) Function

func (ctx *Context) Function() string

func (*Context) Logger

func (ctx *Context) Logger(path ...string) *shim.ChaincodeLogger

func (*Context) Option

func (ctx *Context) Option(name string) (string, bool)

func (*Context) Version

func (ctx *Context) Version() string

Jump to

Keyboard shortcuts

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