Documentation
¶
Index ¶
- func AddCorsOrigin(appID string, origin string) error
- func FormatHostingUrl(app App) string
- func GetCorsOrigins(appID string) []string
- func GetObjects(collection, filter string) ([]map[string]interface{}, error)
- func Login(email string, password string) (sessionID string, userID string, accountID string, err error)
- func SaveApp(app App) error
- func Signup(firstName, lastName, email, password string) (sessionID string, userID string, accountID string, err error)
- type App
- type Collection
- type Relation
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCorsOrigin ¶
func FormatHostingUrl ¶
func GetCorsOrigins ¶
func GetObjects ¶ added in v1.0.4
Types ¶
type App ¶
type App struct {
AppID string `json:"appID,omitempty"`
AppKey string `json:"appKey,omitempty"`
AppName string `json:"appName"`
AppDescription string `json:"appDescription"`
AccountID string `json:"accountId"`
PaymentPlan string `json:"paymentPlan"`
HostingSubdomain string `json:"hostingSubdomain,omitempty"`
Collections []Collection `json:"collections,omitempty"`
}
func GetAppByID ¶
func GetAppByKey ¶
func GetCurrentApp ¶
func GetUserApps ¶
func SaveNewApp ¶ added in v1.0.3
func (App) CollectionNames ¶ added in v1.0.3
type Collection ¶ added in v1.0.3
type Collection struct {
CollectionID string `json:"collectionId,omitempty"`
AppID string `json:"appId"`
AccountID string `json:"accountId"`
CollectionName string `json:"collectionName"`
Schema map[string]interface{} `json:"schema"`
}
func GetCollectionByID ¶ added in v1.0.3
func GetCollectionByID(id string) (Collection, error)
func GetCollectionByName ¶ added in v1.0.3
func GetCollectionByName(name string) (Collection, error)
func SaveNewCollection ¶ added in v1.0.3
func SaveNewCollection(collection Collection) (Collection, error)
func (Collection) SortedColumnNames ¶ added in v1.0.4
func (coll Collection) SortedColumnNames() []string
type Relation ¶ added in v1.1.0
type Relation struct {
RelationID string `json:"relationId,omitempty"`
FromCollectionName string `json:"fromCollectionName"`
FromProperty string `json:"fromProperty"`
ToCollectionName string `json:"toCollectionName"`
Type string `json:"type"`
}
func SaveNewRelation ¶ added in v1.1.0
func (Relation) Description ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.