model

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedData added in v0.10.0

type ChangedData struct {
	Data []byte
}

ChangedData is used to send the changed data response to the user via onSnapshot

func (*ChangedData) Unmarshal added in v0.10.0

func (changedData *ChangedData) Unmarshal(v interface{}) error

Unmarshal parses the response data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError.

type LiveData

type LiveData struct {
	DataList []*Storage
}

LiveData is used to send the live data response to the user via onSnapshot

func (*LiveData) Unmarshal

func (liveData *LiveData) Unmarshal(v interface{}) error

Unmarshal parses the response data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError.

type LiveQueryOptions added in v0.10.0

type LiveQueryOptions struct {
	ChangesOnly bool
}

LiveQueryOptions is used to set the options for the live query

type Message

type Message struct {
	Data []byte
}

func (*Message) Unmarshal

func (msg *Message) Unmarshal(v interface{}) error

Unmarshal parses the response data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError.

type ProfileParams

type ProfileParams struct {
	Email    string
	Name     string
	Password string
}

A struct to hold the new values for EditProfile

type Response

type Response struct {
	Status int
	Data   []byte
	Error  string
}

Response is the object recieved from the server. Status is the status code received from the server. Data is either a map[string]interface{} or

func (*Response) Unmarshal

func (res *Response) Unmarshal(v interface{}) error

Unmarshal parses the response data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError.

type Storage

type Storage struct {
	Id        string
	Time      int64
	Payload   []byte
	IsDeleted bool
}

Storage is a struct to store the Live Query Data (For Internal Use Only)

Jump to

Keyboard shortcuts

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