Documentation ¶
Index ¶
- type Resource
- func (this *Resource) Delete(service string, resource string, data handler.Map) (resp *ResourceResponse, err error)
- func (this *Resource) Get(service string, resource string, data handler.Map) (resp *ResourceResponse, err error)
- func (this *Resource) LoginAs(username string) *Resource
- func (this *Resource) LoginAsManager() *Resource
- func (this *Resource) Post(service string, resource string, data handler.Map) (resp *ResourceResponse, err error)
- func (this *Resource) Put(service string, resource string, data handler.Map) (resp *ResourceResponse, err error)
- type ResourceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
func NewResource ¶
func (*Resource) LoginAsManager ¶
type ResourceResponse ¶
type ResourceResponse struct {
RespData *simplejson.Json
}
func (*ResourceResponse) Data ¶
func (this *ResourceResponse) Data() *simplejson.Json
func (*ResourceResponse) ErrCode ¶
func (this *ResourceResponse) ErrCode() string
func (*ResourceResponse) IsSuccess ¶
func (this *ResourceResponse) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.