Documentation ¶
Index ¶
- Constants
- Variables
- func Logout(fname string)
- type App
- type ObjBase
- type Query
- type ResCreateObj
- type ResError
- type ResLogin
- type ResLoginError
- type ResQuery
- type User
- func (u *User) ACLObj(objID string) (e error)
- func (u User) AuthHeader() (s string)
- func (u *User) CB(backets string) *User
- func (u *User) CreateObj(obj string) (res ResCreateObj, e error)
- func (u *User) DeleteObj(id string) (e error)
- func (u User) ExistObj(obj string, res interface{}) (e error)
- func (u User) Query(query string) (Query, error)
- func (u *User) UpdateObj(id string, obj string) (res ResCreateObj, e error)
- func (u *User) WriteToFile(fname string) error
Constants ¶
View Source
const BestEffortLimit = "200"
Variables ¶
View Source
var StrLoginError = "\nIf you don't sign up for the dcenv resistry yet. Please sign up on [ https://nak1114.github.io/dcenv/sign_up.html ]."
Functions ¶
Types ¶
type ResCreateObj ¶ added in v0.0.3
type ResLoginError ¶ added in v0.0.3
type User ¶
type User struct { ID string Name string Token string TType string Expire int64 Ap *App Buckets string }
func (*User) ACLObj ¶
curl -v -X DELETE \ -H "Authorization: Bearer *******************************************" \ "https://api-jp.kii.com/api/apps/efo16zkedmd7/buckets/dcenv/objects/e130c620-fc1d-11e6-865e-22000b07265b/acl/WRITE_EXISTING_OBJECT/UserID:ANY_AUTHENTICATED_USER"
func (User) AuthHeader ¶
func (*User) UpdateObj ¶
func (u *User) UpdateObj(id string, obj string) (res ResCreateObj, e error)
curl -v -X PUT \ -H "Authorization: Bearer *******************************************" \ -H "Content-Type: application/json" \ "https://api-jp.kii.com/api/apps/efo16zkedmd7/buckets/dcenv/objects/defcf5d0-fbd3-11e6-865e-22000b07265b" \ -d '{"score": 100, "name": "game3"}'
func (*User) WriteToFile ¶
Click to show internal directories.
Click to hide internal directories.