initvoucher

package
v0.0.0-...-7cf6ef0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 14 Imported by: 1

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

View Source
const TOKEN_EXP = 24

Variables

This section is empty.

Functions

func BackupKey

func BackupKey(voucherVo *VoucherVo) reterror.ErrModel

BackupKey backup key

func CommandCommit

func CommandCommit(voucherVo *VoucherVo) reterror.ErrModel

CommandCommit send keywords and backup password

func GetConnectStatus

func GetConnectStatus() reterror.ErrModel

GetConnectStatus get voucher connect status 0.未连接 1.未创建 2.已创建 3.已备份 4.已启动 5.已停止

func GetMasterAddress

func GetMasterAddress() reterror.ErrModel

�GetMasterAddress get master address

func GetOtherPubKey

func GetOtherPubKey(voucherVo *VoucherVo) reterror.ErrModel

GetOtherPubKey get other owners public key

func GetStatus

func GetStatus(voucherVo *VoucherVo) reterror.ErrModel

� GetStatus get voucher status

func GetToken

func GetToken(voucherVo *VoucherVo) reterror.ErrModel

� GetToken owner get token

func OperateKeyExchange

func OperateKeyExchange(voucherVo *VoucherVo) reterror.ErrModel

OperateKeyExchange exchange public key

func QrCommit

func QrCommit(voucherVo *VoucherVo) reterror.ErrModel

QrCommit get code from

func SaveMasterAddress

func SaveMasterAddress(value string) reterror.ErrModel

� SaveMasterAddress save master address

func SavePubkeySign

func SavePubkeySign(voucherVo *VoucherVo) reterror.ErrModel

SavePubkeySign save other public key

func StartVoucher

func StartVoucher(voucherVo *VoucherVo) reterror.ErrModel

StartVoucher start voucher

func StopVoucher

func StopVoucher(voucherVo *VoucherVo) reterror.ErrModel

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"`
}

Jump to

Keyboard shortcuts

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