respU

package
v0.0.0-...-b274bd6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reject

func Reject(msg string, shouldRecord bool) error

Types

type Response

type Response struct {
	Type     ResponseType `json:"type"`
	Msg      string       `json:"msg"`
	FailCode string       `json:"failCode"`
	Data     interface{}  `json:"data"`
}

type ResponseType

type ResponseType string

func (ResponseType) Enum

func (v ResponseType) Enum() (e struct {
	Pass ResponseType
	Fail ResponseType
})

Jump to

Keyboard shortcuts

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