models

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	ChannelId    string `json:"channelid"`
	BlockHash    string `json:"blockhash"`
	PreviousHash string `json:"previoushash"`
	Blocknum     uint64 `json:"blocknum"`
	Txs          []Tx   `json:"txs"`
}

type Cassandra

type Cassandra struct {
	Host         string
	Dbuser       string
	Dbsecret     string
	Keyspace     string
	Columnfamily string
}

type Chaincode

type Chaincode struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Config

type Config struct {
	Mongo
	Cassandra
	Fabric
	GRPCServer
	UI
}

type Fabex

type Fabex struct {
	Db             db.Storage
	ChannelClient  *channel.Client
	LedgerClient   *ledgerclient.CustomLedgerClient
	ChannelContext contextApi.ChannelProvider
}

type Fabric

type Fabric struct {
	User              string
	Secret            string
	Org               string
	Channel           string
	ConnectionProfile string
}

type GRPCServer

type GRPCServer struct {
	Host string
	Port string
}

type KV

type KV struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Mongo

type Mongo struct {
	Host       string
	Port       int
	Dbuser     string
	Dbsecret   string
	Dbname     string
	Collection string
}

type Tx

type Tx struct {
	Txid           string `json:"txid"`
	KV             []KV
	ValidationCode int32 `json:"validationcode"`
	Time           int64 `json:"time" bson:"Time"`
}

type UI

type UI struct {
	Port string
}

Jump to

Keyboard shortcuts

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