File: message.go

package info (click to toggle)
golang-github-francoispqt-gojay 1.2.13-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,456 kB
  • sloc: makefile: 86
file content (21 lines) | stat: -rw-r--r-- 651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package annotated_struct

import "database/sql"

type Payload []byte

type Message struct {
	Id            int           `json:"id"`
	Name          string        `json:"name"`
	Price         float64       `json:"price"`
	Ints          []int         `json:"ints"`
	Floats        []float32     `json:"floats"`
	SubMessageX   *SubMessage   `json:"subMessageX"`
	MessagesX     []*SubMessage `json:"messagesX"`
	SubMessageY   SubMessage
	MessagesY     []SubMessage
	IsTrue        *bool           `json:"enabled"`
	Payload       Payload         `json:"data"`
	Ignore        string          `json:"-"`
	SQLNullString *sql.NullString `json:"sqlNullString"`
}