account

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCorsOrigin

func AddCorsOrigin(appID string, origin string) error

func FormatHostingUrl

func FormatHostingUrl(app App) string

func GetCorsOrigins

func GetCorsOrigins(appID string) []string

func Login

func Login(email string, password string) (sessionID string, userID string, accountID string, err error)

func SaveApp

func SaveApp(app App) error

Types

type App

type App struct {
	AppID            string `json:"appID"`
	AppKey           string `json:"appKey"`
	AppName          string `json:"appName"`
	AppDescription   string `json:"appDescription"`
	HostingSubdomain string `json:"hostingSubdomain"`
}

func GetAppByID

func GetAppByID(appID string) (App, error)

func GetAppByKey

func GetAppByKey(appKey string) (App, error)

func GetCurrentApp

func GetCurrentApp() (App, error)

func GetUserApps

func GetUserApps() ([]App, error)

type User

type User struct {
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Apps      []App  `json:"apps"`
}

func GetUser

func GetUser() (User, error)

Jump to

Keyboard shortcuts

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