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.
Index ¶
- Constants
- func BackupKey(voucherVo *VoucherVo) reterror.ErrModel
- func CommandCommit(voucherVo *VoucherVo) reterror.ErrModel
- func GetConnectStatus() reterror.ErrModel
- func GetMasterAddress() reterror.ErrModel
- func GetOtherPubKey(voucherVo *VoucherVo) reterror.ErrModel
- func GetStatus(voucherVo *VoucherVo) reterror.ErrModel
- func GetToken(voucherVo *VoucherVo) reterror.ErrModel
- func OperateKeyExchange(voucherVo *VoucherVo) reterror.ErrModel
- func QrCommit(voucherVo *VoucherVo) reterror.ErrModel
- func SaveMasterAddress(value string) reterror.ErrModel
- func SavePubkeySign(voucherVo *VoucherVo) reterror.ErrModel
- func StartVoucher(voucherVo *VoucherVo) reterror.ErrModel
- func StopVoucher(voucherVo *VoucherVo) reterror.ErrModel
- type VoucherVo
Constants ¶
const TOKEN_EXP = 24
Variables ¶
This section is empty.
Functions ¶
func CommandCommit ¶
CommandCommit send keywords and backup password
func GetConnectStatus ¶
GetConnectStatus get voucher connect status 0.未连接 1.未创建 2.已创建 3.已备份 4.已启动 5.已停止
func GetMasterAddress ¶
�GetMasterAddress get master address
func GetOtherPubKey ¶
GetOtherPubKey get other owners public key
func OperateKeyExchange ¶
OperateKeyExchange exchange public key
func SaveMasterAddress ¶
� SaveMasterAddress save master address
func SavePubkeySign ¶
SavePubkeySign save other public key
func StartVoucher ¶
StartVoucher start voucher
func StopVoucher ¶
StopVoucher stop voucher
Types ¶
type VoucherVo ¶
type VoucherVo struct { AppId string `form:"app_id"` AppName string `form:"name"` AesKey string `form:"aeskey"` Msg string `form:"msg"` Sign string `form:"sign"` Timestamp int64 `form:"timestamp"` Password string `form:"password"` BakAction string `form:"bak_action"` IsRecover int `form:"isRecover"` }