webmsg

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevTyp

type DevTyp int8
const (
	DevTypeIOS DevTyp
	DevTypeAndroid
	DevTypeMac
)

func (DevTyp) String

func (dt DevTyp) String() string

type JsonResult

type JsonResult struct {
	ResultCode    ResultCode `json:"result_code"`
	ResultMessage string     `json:"result_message"`
}

type PushMsg

type PushMsg struct {
	UserID string `json:"user"`
	Data   string `json:"data"`
}

type PushOnline

type PushOnline struct {
	UserID  string `json:"user"`
	IsDebug bool   `json:"debug"`
	Token   string `json:"token"`
	DevTyp  DevTyp `json:"dev_typ"`
}

func (*PushOnline) IsSame

func (o *PushOnline) IsSame(msg *PushOnline) bool

type ResultCode

type ResultCode int8
const (
	Success ResultCode = iota
	ParseJsonErr
	ErrBlockchain
	ErrSig
	ErrTokenNotFound
	ErrNoValidPushClient
	ErrPush
)

func (ResultCode) PackResult

func (rc ResultCode) PackResult(msg string) []byte

Jump to

Keyboard shortcuts

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