Documentation ¶
Overview ¶
Copyright 2018. 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 2018. 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 2018. 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 2018. 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 2018. 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 ¶
- Variables
- func AddFloat64(a, b float64) float64
- func AddFlowToServer(flowName, appid, flow, sign, flowHash, captainID string) bool
- func ApplyDisuseFlow(param string) error
- func ApplyTx(param string) error
- func BusinessFlowStatus(flowHash string) (status int, err error)
- func CompareFloat64(a, b float64) int
- func DefaultConfigDir() string
- func DivFloat64(a, b float64) float64
- func EqualFloat64(a, b float64) bool
- func GenHashStr(msg string) string
- func GetJsonMap(filename string) (map[string]string, error)
- func GreaterThanFloat64(a, b float64) bool
- func HttpRequest(method, urls string, jsonStr string) (r []byte, err error)
- func InitLogger()
- func LessThanFloat64(a, b float64) bool
- func MulFloat64(a, b float64) float64
- func ReadJsonFile(ctx *gin.Context) map[string]string
- func RegToServer(regid, msg, applicantID, captainID, applicantAccount string, status int) (err error)
- func RetError(ctx *gin.Context, code int, args ...interface{}) error
- func SubFloat64(a, b float64) float64
- 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 RPCRsp
- type ResFlowOpLog
- type ResHashStatus
- type ServerStatus
- type TokenInfo
- type VoucherStatus
Constants ¶
This section is empty.
Variables ¶
var Client *http.Client
Functions ¶
func AddFlowToServer ¶
向代理服务器申请创建审批流
func BusinessFlowStatus ¶
获取业务流结构上链状态
func DefaultConfigDir ¶
func DefaultConfigDir() string
func HttpRequest ¶
发起https请求
func InitLogger ¶
func InitLogger()
func RegToServer ¶
func RegToServer(regid, msg, applicantID, captainID, applicantAccount string, status int) (err error)
向代理服务器请求注册
func UnitConversion ¶
单位换算 amount/(10^factor)
Types ¶
type FlowOpLogInfo ¶
type FlowOpLogInfo struct { ApplyerAccount string CaptainId string Option string Opinion string CreateTime string }
审批流操作日志详情
type FlowStatus ¶
type ResFlowOpLog ¶
type ResFlowOpLog struct { RPCRsp HashOperates []FlowOpLogInfo }
审批流操作日志
func GetFlowOperationLogFromRPC ¶
func GetFlowOperationLogFromRPC(flow_hash string) (ResFlowOpLog, error)
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 }
签名机状态