ns

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ChainApp_Prefix = "chainApp"
View Source
const DataBlock_KeyKind = "BlockId"
View Source
const DataBlock_Owner_KeyKind = "PeerId"
View Source
const DataBlock_Owner_Prefix = "dataBlockOwner"
View Source
const DataBlock_Prefix = "dataBlock"
View Source
const PeerClient_KeyKind = "PeerId"
View Source
const PeerClient_Mobile_KeyKind = "Mobile"
View Source
const PeerClient_Mobile_Prefix = "peerClientMobile"
View Source
const PeerClient_Prefix = "peerClient"
View Source
const PeerEndpoint_Prefix = "peerEndpoint"
View Source
const PeerTransaction_ChannelArticle_KeyKind = "ParentBusinessNumber"
View Source
const PeerTransaction_ChannelArticle_Prefix = "peerTransactionChannelArticle"
View Source
const PeerTransaction_Channel_KeyKind = "TransactionType"
View Source
const PeerTransaction_Channel_Prefix = "peerTransactionChannel"
View Source
const PeerTransaction_GroupFile_KeyKind = "BusinessNumber"
View Source
const PeerTransaction_GroupFile_Prefix = "peerTransactionGroupFile"
View Source
const PeerTransaction_P2PChat_KeyKind = "BusinessNumber"
View Source
const PeerTransaction_P2PChat_Prefix = "peerTransactionP2PChat"
View Source
const PeerTransaction_Src_KeyKind = "SrcPeerId"
View Source
const PeerTransaction_Src_Prefix = "peerTransactionSrc"
View Source
const PeerTransaction_Target_KeyKind = "TargetPeerId"
View Source
const PeerTransaction_Target_Prefix = "peerTransactionTarget"
View Source
const PeerTransaction_Type_KeyKind = "TransactionType"
View Source
const TransactionKey_Prefix = "transactionKey"

Variables

This section is empty.

Functions

func GetChainAppKey

func GetChainAppKey(id string) string

func GetDataBlockKey

func GetDataBlockKey(blockId string) string

func GetDataBlockOwnerKey

func GetDataBlockOwnerKey(createPeerId string) string

func GetPeerClientKey

func GetPeerClientKey(peerId string) string

func GetPeerClientMobileKey

func GetPeerClientMobileKey(mobile string, hashed bool) string

func GetPeerEndpointKey

func GetPeerEndpointKey(id string) string

func GetPeerTransactionChannelArticleKey added in v0.0.3

func GetPeerTransactionChannelArticleKey(id string) string

func GetPeerTransactionChannelKey added in v0.0.3

func GetPeerTransactionChannelKey(id string) string

func GetPeerTransactionGroupFileKey added in v0.0.2

func GetPeerTransactionGroupFileKey(id string) string

func GetPeerTransactionP2pChatKey added in v0.0.2

func GetPeerTransactionP2pChatKey(id string) string

func GetPeerTransactionSrcKey

func GetPeerTransactionSrcKey(id string) string

func GetPeerTransactionTargetKey

func GetPeerTransactionTargetKey(id string) string

func GetTransactionKeyKey

func GetTransactionKeyKey(id string) string

Types

type ChainAppValidator

type ChainAppValidator struct {
}

func (ChainAppValidator) Select

func (v ChainAppValidator) Select(key string, vals [][]byte) (int, error)

Select conforms to the Validator interface.

func (ChainAppValidator) Validate

func (v ChainAppValidator) Validate(key string, value []byte) error

Validate conforms to the Validator interface.

type DataBlockValidator

type DataBlockValidator struct {
}

func (DataBlockValidator) Select

func (v DataBlockValidator) Select(key string, vals [][]byte) (int, error)

Select conforms to the Validator interface.

func (DataBlockValidator) Validate

func (v DataBlockValidator) Validate(key string, value []byte) error

Validate conforms to the Validator interface.

type PeerClientValidator

type PeerClientValidator struct {
}

func (PeerClientValidator) Select

func (v PeerClientValidator) Select(key string, vals [][]byte) (int, error)

Select conforms to the Validator interface.

func (PeerClientValidator) Validate

func (v PeerClientValidator) Validate(key string, value []byte) error

Validate conforms to the Validator interface.

type PeerEndpointValidator

type PeerEndpointValidator struct {
}

func (PeerEndpointValidator) Select

func (v PeerEndpointValidator) Select(key string, vals [][]byte) (int, error)

Select conforms to the Validator interface.

func (PeerEndpointValidator) Validate

func (v PeerEndpointValidator) Validate(key string, value []byte) error

Validate conforms to the Validator interface.

type PeerTransactionValidator

type PeerTransactionValidator struct {
}

func (PeerTransactionValidator) Select

func (v PeerTransactionValidator) Select(key string, vals [][]byte) (int, error)

Select conforms to the Validator interface.

func (PeerTransactionValidator) Validate

func (v PeerTransactionValidator) Validate(key string, value []byte) error

Validate conforms to the Validator interface.

type TransactionKeyValidator

type TransactionKeyValidator struct {
}

func (TransactionKeyValidator) Select

func (v TransactionKeyValidator) Select(key string, vals [][]byte) (int, error)

Select conforms to the Validator interface.

func (TransactionKeyValidator) Validate

func (v TransactionKeyValidator) Validate(key string, value []byte) error

Validate conforms to the Validator interface.

Jump to

Keyboard shortcuts

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