models

package
v0.0.0-...-794322a Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	AppName                       string `json:"appName"`
	ApplicationID                 string `json:"applicationId"`
	ClientClassCreationEnabled    bool   `json:"clientClassCreationEnabled"`
	ClientPushEnabled             bool   `json:"clientPushEnabled"`
	DashboardURL                  string `json:"dashboardURL"`
	JavascriptKey                 string `json:"javascriptKey"`
	MasterKey                     string `json:"masterKey"`
	RequireRevocableSessions      bool   `json:"requireRevocableSessions"`
	RestKey                       string `json:"restKey"`
	RevokeSessionOnPasswordChange bool   `json:"revokeSessionOnPasswordChange"`
	WebhookKey                    string `json:"webhookKey"`
	WindowsKey                    string `json:"windowsKey"`
}

type Data

type Data struct {
	Alert string `json:"alert"`
}

type Error

type Error struct {
	Message string `json:"error"`
	Code    int    `json:"code"`
}

An Error from the Parse API. When a valid Parse JSON error is found, the returned error will be of this type.

type Event

type Event struct {
}

type Installation

type Installation struct {
}

type Object

type Object struct {
	ObjectID  bson.ObjectId `bson:"_id,omitempty"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Push

type Push struct {
	Where    Where    `json:"where"`
	Channels []string `json:"channels"`
	Data     Data     `json:"data"`
}

type User

type User struct {
	Object
	Username string
	Password string
	Email    string
	Extra    bson.M `bson:",inline"`
}

type Where

type Where struct {
	InstalationId string `json:"installationId"`
}

Jump to

Keyboard shortcuts

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