srole

package
v0.0.0-...-fb4f826 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitInput

type InitInput struct {
	Size  int     `json:"size"`
	Peers []*Peer `json:"peers"`
}

type Input

type Input struct {
	Method string `json:"method"`
	Addr   []byte `json:"addr"`
	Quota  uint64 `json:"quota"`
	Point  string `json:"point"`
	Topic  string `json:"topic"`
}

type Peer

type Peer struct {
	Addr  []byte `json:"addr"`
	Quota uint64 `json:"quota"`
	Point string `json:"point"`
	Topic string `json:"topic"`
}

type SRole

type SRole struct{}

SRole chaincode

func (*SRole) Init

func (c *SRole) Init(ctx common.CallContext) error

func (*SRole) Invoke

func (c *SRole) Invoke(ctx common.CallContext) error

func (*SRole) Query

func (c *SRole) Query(ctx common.CallContext) ([]byte, error)

func (*SRole) SetTxTrk

func (c *SRole) SetTxTrk(txTrk *common.StateTracker)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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