types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanCreate

type ChanCreate struct {
	ChanName string `json:"chan_name" binding:"required"`
	Balance  int64  `json:"balance" binding:"required"`
}

ChanCreate create chan struct

type ChanExit

type ChanExit struct {
	ChanName string `json:"chan_name" binding:"required"`
}

ChanExit exit chan struct

type ChanExitResp

type ChanExitResp struct {
	Code    int    `json:"code"`
	Balance int64  `json:"balance"`
	Msg     string `json:"msg"`
}

ChanExitResp exit chan response struct

type ChanJoin

type ChanJoin struct {
	ChanName string `json:"chan_name" binding:"required"`
	Balance  int64  `json:"balance" binding:"required"`
}

ChanJoin join chan struct

type Health

type Health interface{}

Health 健康检查返回结果定义

type Status

type Status struct {
	ChanName string `form:"chan_name" binding:"required"`
}

Status node status

type Trade

type Trade struct {
	ChanName string `json:"chan_name" binding:"required"`
	Amount   int    `json:"amount" binding:"required"`
	NodeID   string `json:"node_id" binding:"required"`
	Sync     bool   `json:"sync"`
}

Trade trade struct

Jump to

Keyboard shortcuts

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