models

package
v0.0.0-...-d6725e5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Identifier string      `json:"identifier"`
	Channel    enum.Sender `json:"channel"`
	DeviceName string      `json:"deviceName"`
	DeviceMeta string      `json:"deviceMeta"`
}

type Message

type Message struct {
	ID        string        `json:"id"`
	Title     string        `json:"title"`
	Content   string        `json:"content"`
	Long      string        `json:"long"`
	Priority  enum.Priority `json:"priority"`
	CreatedAt time.Time     `json:"created_at"`
}

func FromModelMessage

func FromModelMessage(msg generate.Message) Message

func FromPushMessage

func FromPushMessage(msg item.PushMessage) Message

func (*Message) MarshalJSON

func (m *Message) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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