models

package
v0.0.0-...-3986ddd Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Success = iota
	Fail
)

Variables

This section is empty.

Functions

func ResultFail

func ResultFail(ctx *gin.Context, err interface{})

func ResultFailData

func ResultFailData(ctx *gin.Context, data interface{}, err interface{})

func ResultMap

func ResultMap(ctx *gin.Context, m map[string]interface{})

func ResultMsg

func ResultMsg(ctx *gin.Context, msg string)

func ResultOk

func ResultOk(ctx *gin.Context, data interface{})

func ResultOkMsg

func ResultOkMsg(ctx *gin.Context, data interface{}, msg string)

Types

type ChainDomain

type ChainDomain struct {
	NodeIps   []string          `json:"nodeIps"`
	NodePorts map[string]string `json:"nodePorts"`
}

func NewChainDomain

func NewChainDomain(ips []string, ports map[string]string) ChainDomain

Jump to

Keyboard shortcuts

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