models

package
v0.0.0-...-471d7c0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	From    string    `json:"from,omitempty"`
	To      string    `json:"to"`
	Time    time.Time `json:"time"`
	Message string    `json:"message"`
}

Message is a chat message.

type User

type User struct {
	ID              string
	Registered      time.Time
	Email           string
	PhoneNumber     string
	GCMRegID        string
	APNSDeviceToken string
	Name            string
	Picture         []byte
	JWTToken        string
}

User profile.

Jump to

Keyboard shortcuts

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