Documentation ¶
Overview ¶
Copyright 2018. bolaxy.org 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 2018. bolaxy.org 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 2018. bolaxy.org 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 2018. bolaxy.org 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 2018. bolaxy.org 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 2018. bolaxy.org 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 2018. bolaxy.org 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 AESCBCDecrypter(data, cbcKey []byte) ([]byte, error)
- func AESCBCEncrypter(data, cbcKey []byte) ([]byte, error)
- func AbsInt64(n int64) int64
- func AddFloat64(a, b float64) float64
- func Bool(f string) (bool, error)
- func CompareFloat64(a, b float64) int
- func ConvertLangTag(lang string) string
- func DefaultConfigDir() string
- func DivFloat64(a, b float64) float64
- func EqualFloat64(a, b float64) bool
- func ExportKey(key *rsa.PrivateKey) (prvBytes, pybBytes []byte)
- func Float32(f string) (float32, error)
- func Float64(f string) (float64, error)
- func Format(str string, size int) string
- func GenHashStr(msg string) string
- func GenRsaKey() *rsa.PrivateKey
- func GenerateRandomRsaKeyPair() (prvBytes, pubBytes []byte)
- func GenerateRandomString(l int) string
- func GetAesKeyRandom(len int) []byte
- func GetCurrentDirectory() string
- func GetParentDirectory(dirctory string) string
- func GetTypeValues(data interface{}) (string, error)
- func GreaterThanFloat64(a, b float64) bool
- func HttpRequest(method, urls string, jsonStr string) (r []byte, err error)
- func InitLogger()
- func Int(f string) (int, error)
- func Int16(f string) (int16, error)
- func Int32(f string) (int32, error)
- func Int64(f string) (int64, error)
- func Int8(f string) (int8, error)
- func Interface2Map(value interface{}) (map[string]interface{}, error)
- func JsonStringToMap(jstr string) (map[string]interface{}, error)
- func LessThanFloat64(a, b float64) bool
- func MulFloat64(a, b float64) float64
- func PwdSalt(pwd string, salt string) string
- func RsaDecrypt(priv, msg []byte) ([]byte, error)
- func RsaEncrypt(pubkey, msg []byte) ([]byte, error)
- func RsaSign(priv, msg []byte) ([]byte, error)
- func RsaVerify(pubKeyBytes, msg, signature []byte) error
- func SortByValue(info interface{}) []byte
- func SortStrByRune(str string) []byte
- func SubFloat64(a, b float64) float64
- func ToInt64(value interface{}) (d int64)
- func ToStr(value interface{}, args ...int) (s string)
- func Uint(f string) (uint, error)
- func Uint16(f string) (uint16, error)
- func Uint32(f string) (uint32, error)
- func Uint64(f string) (uint64, error)
- func Uint8(f string) (uint8, error)
- func UnitConversion(amount float64, factor int64, base int64) (float64, error)
- func UnitReConversion(amount float64, factor int64, base int64) (float64, error)
- type CoinStatu
- type FlowOpLogInfo
- type FlowStatus
- type MyMap
- type RPCRsp
- type ResFlowOpLog
- type ResHashStatus
- type ServerStatus
- type TokenInfo
- type VoucherStatus
Constants ¶
const ( AESKEY_LEN_16 = 16 AESKEY_LEN_24 = 24 AESKEY_LEN_32 = 32 )
Variables ¶
var DefaultTimeLoc = time.Local
Functions ¶
func DefaultConfigDir ¶
func DefaultConfigDir() string
func ExportKey ¶
func ExportKey(key *rsa.PrivateKey) (prvBytes, pybBytes []byte)
func GenRsaKey ¶
func GenRsaKey() *rsa.PrivateKey
func GenerateRandomRsaKeyPair ¶
func GenerateRandomRsaKeyPair() (prvBytes, pubBytes []byte)
func GenerateRandomString ¶
func GetTypeValues ¶
func HttpRequest ¶
发起https请求
func InitLogger ¶
func InitLogger()
func Interface2Map ¶
func JsonStringToMap ¶
func RsaDecrypt ¶
func RsaEncrypt ¶
func SortByValue ¶
func SortByValue(info interface{}) []byte
func SortStrByRune ¶
func UnitConversion ¶
单位换算 amount/(10^factor)
Types ¶
type FlowOpLogInfo ¶
type FlowOpLogInfo struct { ApplyerAccount string CaptainId string Option string Opinion string CreateTime string }
审批流操作日志详情
type FlowStatus ¶
type ResHashStatus ¶
type ResHashStatus struct { RspNo string Status ServerStatus ApprovalInfo FlowStatus }
查询审批流上链状态返回值结构
type ServerStatus ¶
type VoucherStatus ¶
type VoucherStatus struct { RPCRsp Status ServerStatus ApprovalInfo FlowStatus CoinStatus []CoinStatu TokenInfos []TokenInfo }
签名机状态