Documentation ¶
Index ¶
- func ToRoleObjects(ary []Role) []map[string]string
- func ToUserbjects(ary []User) []map[string]string
- type Acl
- func (acl *Acl) GetPublicReadAccess() bool
- func (acl *Acl) GetPublicWriteAccess() bool
- func (acl *Acl) GetRoleReadAccess(role string) bool
- func (acl *Acl) GetRoleWriteAccess(role string) bool
- func (acl *Acl) GetUserReadAccess(user *User) bool
- func (acl *Acl) GetUserWriteAccess(user *User) bool
- func (acl *Acl) SetPublicReadAccess(b bool) *Acl
- func (acl *Acl) SetPublicWriteAccess(b bool) *Acl
- func (acl *Acl) SetRoleReadAccess(role string, b bool) *Acl
- func (acl *Acl) SetRoleWriteAccess(role string, b bool) *Acl
- func (acl *Acl) SetUserReadAccess(user *User, b bool) *Acl
- func (acl *Acl) SetUserWriteAccess(user *User, b bool) *Acl
- func (acl *Acl) Sets(valueMap map[string]map[string]bool)
- func (acl Acl) ToJSON() (map[string]map[string]bool, error)
- type AddRemoveOperation
- type ExecOptions
- type File
- type GeoPoint
- type Installation
- type Item
- func (item *Item) Add(key string, object interface{}) *Item
- func (item *Item) AddUnique(key string, object interface{}) *Item
- func (item *Item) Create() (bool, error)
- func (item *Item) Delete() (bool, error)
- func (item *Item) Fetch() (bool, error)
- func (item *Item) Fields() map[string]interface{}
- func (item *Item) Get(key string) interface{}
- func (item *Item) GetAcl() (Acl, error)
- func (item *Item) GetArray(key string, defaultValue ...[]interface{}) ([]interface{}, error)
- func (item *Item) GetBool(key string, defaultValue ...bool) (bool, error)
- func (item *Item) GetClassName() string
- func (item *Item) GetDate(key string, defaultValue ...time.Time) (time.Time, error)
- func (item *Item) GetGeoPoint(key string, defaultValue ...GeoPoint) (GeoPoint, error)
- func (item *Item) GetItem(key string, defaultValue ...Item) (Item, error)
- func (item *Item) GetMap(key string, defaultValue ...map[string]interface{}) (map[string]interface{}, error)
- func (item *Item) GetNumber(key string, defaultValue ...float64) (float64, error)
- func (item *Item) GetObjectId() string
- func (item *Item) GetString(key string, defaultValue ...string) (string, error)
- func (item *Item) Increment(key string, amount ...int) *Item
- func (item *Item) Remove(key string, object interface{}) *Item
- func (item *Item) Save() (bool, error)
- func (item *Item) Set(key string, value interface{}) *Item
- func (item *Item) SetAcl(acl Acl) *Item
- func (item *Item) Sets(hash map[string]interface{}) *Item
- func (item *Item) ToPointer() map[string]interface{}
- func (item *Item) Update() (bool, error)
- type ItemDate
- type NCMB
- func (ncmb *NCMB) Acl() Acl
- func (ncmb *NCMB) File(fileName string) File
- func (ncmb *NCMB) GeoPoint(latitude float64, longitude float64) GeoPoint
- func (ncmb *NCMB) Installation() Installation
- func (ncmb *NCMB) Item(className string) Item
- func (ncmb *NCMB) Login(userName string, password string) (*User, error)
- func (ncmb *NCMB) LoginWithMailAddress(mailAddress string, password string) (*User, error)
- func (ncmb *NCMB) Logout() (bool, error)
- func (ncmb *NCMB) Push() Push
- func (ncmb *NCMB) Query(className string) Query
- func (ncmb *NCMB) RequestPasswordReset(mailAddress string) (bool, error)
- func (ncmb *NCMB) RequestSignUpEmail(mailAddress string) (bool, error)
- func (ncmb *NCMB) Role(name string) Role
- func (ncmb *NCMB) SignUpByAccount(userName string, password string) (*User, error)
- type NCMBError
- type PathOptions
- type Push
- type Query
- func (query *Query) AllInArray(key string, value interface{}) *Query
- func (query *Query) EqualTo(key string, value interface{}) *Query
- func (query *Query) Exists(key string, value interface{}) *Query
- func (query *Query) FetchAll() ([]Item, error)
- func (query *Query) GreaterThan(key string, value interface{}) *Query
- func (query *Query) GreaterThanOrEqualTo(key string, value interface{}) *Query
- func (query *Query) In(key string, value interface{}) *Query
- func (query *Query) InArray(key string, value interface{}) *Query
- func (query *Query) Include(key string) *Query
- func (query *Query) LessThan(key string, value interface{}) *Query
- func (query *Query) LessThanOrEqualTo(key string, value interface{}) *Query
- func (query *Query) Limit(num int) *Query
- func (query *Query) Near(key string, value GeoPoint) *Query
- func (query *Query) NotEqualTo(key string, value interface{}) *Query
- func (query *Query) NotIn(key string, value interface{}) *Query
- func (query *Query) NotInArray(key string, value interface{}) *Query
- func (query *Query) Order(key string, descending ...bool) *Query
- func (query *Query) RegularExpression(key string, value string) *Query
- func (query *Query) RelatedTo(object RelatedItem, key string) *Query
- func (query *Query) WithinKilometers(key string, value GeoPoint, distance float64) *Query
- func (query *Query) WithinMiles(key string, value GeoPoint, distance float64) *Query
- func (query *Query) WithinRadians(key string, value GeoPoint, distance float64) *Query
- func (query *Query) WithinSquare(key string, southWest GeoPoint, northEast GeoPoint) *Query
- type RelatedItem
- type Request
- func (request *Request) Data(data *map[string]interface{}) ([]byte, error)
- func (request *Request) Delete(options ...ExecOptions) ([]byte, error)
- func (request *Request) Exec(method string, params ExecOptions) ([]byte, error)
- func (request *Request) Get(options ...ExecOptions) ([]byte, error)
- func (request *Request) Gets(options ...ExecOptions) ([]byte, error)
- func (request *Request) Post(options ...ExecOptions) ([]byte, error)
- func (request *Request) Put(options ...ExecOptions) ([]byte, error)
- type Role
- func (role *Role) AddRole(r Role) *Role
- func (role *Role) AddUser(u User) *Role
- func (role *Role) Create() (bool, error)
- func (role *Role) FetchRole() ([]Role, error)
- func (role *Role) FetchUser() ([]User, error)
- func (role *Role) Fields() (map[string]interface{}, error)
- func (role *Role) GetClassName() string
- func (role *Role) GetObjectId() string
- func (role *Role) Save() (bool, error)
- func (role *Role) ToPointer() map[string]string
- func (role *Role) Update() (bool, error)
- type Signature
- func (signature *Signature) Fqdn() string
- func (signature *Signature) Generate(method string, className string, options UrlOptions) (string, error)
- func (signature *Signature) Headers(signatureString string) map[string]string
- func (s *Signature) Initialize()
- func (signature *Signature) Path(className string, options PathOptions) string
- func (signature *Signature) QueryString(queries *map[string]interface{}) (string, error)
- func (signature *Signature) Url(className string, options UrlOptions) (string, error)
- type UrlOptions
- type User
- func (user *User) GetClassName() string
- func (user *User) GetObjectId() string
- func (user *User) Login() (*User, error)
- func (user *User) LoginWithMailAddress() (*User, error)
- func (user *User) Logout() (bool, error)
- func (user *User) RequestPasswordReset() (bool, error)
- func (user *User) RequestSignUpEmail() (bool, error)
- func (user *User) Save() (bool, error)
- func (user *User) SignUpByAccount() (*User, error)
- func (user *User) ToPointer() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToRoleObjects ¶
func ToUserbjects ¶
Types ¶
type Acl ¶
type Acl struct {
// contains filtered or unexported fields
}
func (*Acl) GetPublicReadAccess ¶
func (*Acl) GetPublicWriteAccess ¶
func (*Acl) GetRoleReadAccess ¶
func (*Acl) GetRoleWriteAccess ¶
func (*Acl) GetUserReadAccess ¶
func (*Acl) GetUserWriteAccess ¶
func (*Acl) SetPublicReadAccess ¶
func (*Acl) SetPublicWriteAccess ¶
type AddRemoveOperation ¶
type AddRemoveOperation struct { Op string `json:"__op"` Objects []interface{} `json:"objects"` }
type ExecOptions ¶
type Installation ¶
type Installation struct { Item // contains filtered or unexported fields }
func (*Installation) Create ¶
func (installation *Installation) Create() (bool, error)
func (*Installation) Save ¶
func (installation *Installation) Save() (bool, error)
func (*Installation) Update ¶
func (installation *Installation) Update() (bool, error)
type Item ¶
func (*Item) GetClassName ¶
func (*Item) GetGeoPoint ¶
func (*Item) GetObjectId ¶
type NCMB ¶
func Initialize ¶
func (*NCMB) Installation ¶
func (ncmb *NCMB) Installation() Installation
func (*NCMB) LoginWithMailAddress ¶
func (*NCMB) RequestPasswordReset ¶
func (*NCMB) RequestSignUpEmail ¶
type PathOptions ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) AllInArray ¶
func (*Query) GreaterThan ¶
func (*Query) GreaterThanOrEqualTo ¶
func (*Query) LessThanOrEqualTo ¶
func (*Query) NotEqualTo ¶
func (*Query) NotInArray ¶
func (*Query) RegularExpression ¶
func (*Query) WithinKilometers ¶
func (*Query) WithinMiles ¶
func (*Query) WithinRadians ¶
type RelatedItem ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
type Signature ¶
type Signature struct { IsScript bool // contains filtered or unexported fields }
func (*Signature) Initialize ¶
func (s *Signature) Initialize()
func (*Signature) Path ¶
func (signature *Signature) Path(className string, options PathOptions) string
func (*Signature) QueryString ¶
type UrlOptions ¶
type User ¶
type User struct { Item // contains filtered or unexported fields }
func (*User) GetClassName ¶
func (*User) GetObjectId ¶
func (*User) LoginWithMailAddress ¶
func (*User) RequestPasswordReset ¶
func (*User) RequestSignUpEmail ¶
func (*User) SignUpByAccount ¶
Click to show internal directories.
Click to hide internal directories.