adaptor

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

This file is part of go-palletone.
go-palletone is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
go-palletone is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with go-palletone.  If not, see <http://www.gnu.org/licenses/>.

* @author PalletOne core developers <dev@pallet.one> * @date 2018

This file is part of go-palletone.
go-palletone is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
go-palletone is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with go-palletone.  If not, see <http://www.gnu.org/licenses/>.

* @author PalletOne core developers <dev@pallet.one> * @date 2018

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Btc: BTC{
		NetID:         1,
		BtcHost:       "localhost:18332",
		RPCUser:       "zxl",
		RPCPasswd:     "123456",
		CertPath:      "",
		WalletPasswd:  "1",
		ChaincodeKeys: map[string]string{},
		AddressKeys:   map[string]string{},
	},
	Eth: ETH{
		NetID:         1,
		Rawurl:        "\\\\.\\pipe\\geth.ipc",
		ChaincodeKeys: map[string]string{},
		AddressKeys:   map[string]string{},
	},
	CCInfoKV: map[string]CCInfo{
		"test": CCInfo{
			ChainCodeKV: map[string][]byte{
				"testk": []byte("testv"),
			},
		},
	},
}

Functions

This section is empty.

Types

type BTC

type BTC struct {
	NetID        int
	BtcHost      string
	RPCUser      string
	RPCPasswd    string
	CertPath     string
	WalletPasswd string

	ChaincodeKeys map[string]string
	AddressKeys   map[string]string
}

type CCInfo

type CCInfo struct {
	CCName      string
	ChainCodeKV map[string][]byte
}

type Config

type Config struct {
	Btc      BTC
	Eth      ETH
	CCInfoKV map[string]CCInfo
}

type ETH

type ETH struct {
	NetID  int
	Rawurl string

	ChaincodeKeys map[string]string
	AddressKeys   map[string]string
}

Jump to

Keyboard shortcuts

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