Documentation ¶
Overview ¶
Copyright 2017. box.la authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2017. box.la authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func AddressEquals(a, b Address) bool
- func Byte2Byte32(src []byte) [32]byte
- func BytesToAddress(data []byte) common.Address
- func BytesToHash(data []byte) common.Hash
- func BytesToHex(data []byte, with0x bool) string
- func GenCert(cfg *config.Config, certScriptFile string) error
- func GenSecret(len int) ([]byte, error)
- func GetServerCert(cfg *config.Config) string
- func GetServerKey(cfg *config.Config) string
- func HexToAddress(data string) common.Address
- func HexToBytes(hexstr string) ([]byte, error)
- func HexToHash(hexstr string) common.Hash
- func LoadConfig(filePath string) (*config.Config, error)
- type Address
- type Backoff
- type EtherLog
- type Hash
Constants ¶
const AddressLength = common.AddressLength
Variables ¶
var DefaultBackoff = Backoff{ MaxDelay: 120 * time.Second, // contains filtered or unexported fields }
var RetryCount = 0
重连次数记录