MCPcopy Create free account
hub / github.com/gotify/server / MessageExternal

Struct MessageExternal

model/message.go:23–66  ·  view source on GitHub ↗

MessageExternal Model The MessageExternal holds information about a message which was sent by an Application. swagger:model Message

Source from the content-addressed store, hash-verified

21//
22// swagger:model Message
23type MessageExternal struct {
24 // The message id.
25 //
26 // read only: true
27 // required: true
28 // example: 25
29 ID uint `json:"id"`
30 // The application id that send this message.
31 //
32 // read only: true
33 // required: true
34 // example: 5
35 ApplicationID uint `json:"appid"`
36 // The message. Markdown (excluding html) is allowed.
37 //
38 // required: true
39 // example: **Backup** was successfully finished.
40 Message string `form:"message" query:"message" json:"message" binding:"required"`
41 // The title of the message.
42 //
43 // example: Backup
44 Title string `form:"title" query:"title" json:"title"`
45 // The priority of the message. If unset, then the default priority of the
46 // application will be used.
47 //
48 // example: 2
49 Priority *int `form:"priority" query:"priority" json:"priority"`
50 // The extra data sent along the message.
51 //
52 // The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.
53 //
54 // The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>
55 //
56 // These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.
57 //
58 // example: {"home::appliances::thermostat::change_temperature":{"temperature":23},"home::appliances::lighting::on":{"brightness":15}}
59 Extras map[string]interface{} `form:"-" query:"-" json:"extras,omitempty"`
60 // The date the message was created.
61 //
62 // read only: true
63 // required: true
64 // example: 2018-02-27T19:36:10.5045044+01:00
65 Date time.Time `json:"date"`
66}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected