Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v2.3.98 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	PushType      PushType    `json:"push_type,omitempty"`
	Topic         string      `json:"topic,omitempty"`
	Message       interface{} `json:"message"`
	MessageType   string      `json:"message_type"`
	MessageAction string      `json:"message_action"`
	From          *int        `json:"-"`
	To            *int        `json:"-"`
}

type Message

type Message struct {
	Type     string      `json:"type"`
	Action   string      `json:"action"`
	PushType *PushType   `json:"push_type,omitempty"`
	Topic    *Topic      `json:"topic,omitempty"`
	Message  interface{} `json:"message"`
	From     *int        `json:"from,omitempty"`
	To       *int        `json:"to,omitempty"`
}

type PushType

type PushType string
const (
	PushTypeBackground PushType = "background"
	PushTypeAlert      PushType = "alert"
)

type Topic

type Topic string

Jump to

Keyboard shortcuts

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