Documentation ¶
Index ¶
- Constants
- func InjectWso2AgentRequest(s *Wso2AgentRequest)
- func LoadWso2AgentRequest() baseiface.ISingleton
- type Pagination
- type Wso2AgentRequest
- func (self *Wso2AgentRequest) CookieNew() *resty.Client
- func (self *Wso2AgentRequest) GenApikey(pkeyType string, appid string) *basedto.IchubResult
- func (self *Wso2AgentRequest) Get(url string) (*resty.Response, error)
- func (self *Wso2AgentRequest) Get2Result(url string) *basedto.IchubResult
- func (self *Wso2AgentRequest) NewR() *resty.Request
- func (self *Wso2AgentRequest) Post(body interface{}, url string) (*resty.Response, error)
- func (self *Wso2AgentRequest) Post2Result(body interface{}, url string) *basedto.IchubResult
- func (self *Wso2AgentRequest) QueryApp(appName string) *basedto.IchubResult
- func (self *Wso2AgentRequest) QueryDemoApi() *basedto.IchubResult
- func (self *Wso2AgentRequest) QueryNewApi() *basedto.IchubResult
- func (self *Wso2AgentRequest) R() *resty.Request
- type Wso2Header
- type Wso2PageResult
Constants ¶
View Source
const ( NAME_X_API_Key = "X-API-Key" NAME_COOKIE_TOKEN = "AM_ACC_TOKEN_DEFAULT_P2" NAME_HEADER_TOKEN = "Authorization" )
Variables ¶
This section is empty.
Functions ¶
func InjectWso2AgentRequest ¶
func InjectWso2AgentRequest(s *Wso2AgentRequest)
func LoadWso2AgentRequest ¶
func LoadWso2AgentRequest() baseiface.ISingleton
Types ¶
type Pagination ¶
type Wso2AgentRequest ¶
type Wso2AgentRequest struct { basedto.BaseEntity Wso2Header RestyCli *resty.Client `json:"-"` }
func FindBeanWso2AgentRequest ¶
func FindBeanWso2AgentRequest() *Wso2AgentRequest
FindBeanWso2AgentRequest
func NewWso2AgentRequest ¶
func NewWso2AgentRequest() *Wso2AgentRequest
func (*Wso2AgentRequest) CookieNew ¶
func (self *Wso2AgentRequest) CookieNew() *resty.Client
gorpcclient.SetCookie(cookie1)
func (*Wso2AgentRequest) GenApikey ¶
func (self *Wso2AgentRequest) GenApikey(pkeyType string, appid string) *basedto.IchubResult
func (*Wso2AgentRequest) Get ¶
func (self *Wso2AgentRequest) Get(url string) (*resty.Response, error)
get
func (*Wso2AgentRequest) Get2Result ¶
func (self *Wso2AgentRequest) Get2Result(url string) *basedto.IchubResult
func (*Wso2AgentRequest) NewR ¶
func (self *Wso2AgentRequest) NewR() *resty.Request
func (*Wso2AgentRequest) Post ¶
func (self *Wso2AgentRequest) Post(body interface{}, url string) (*resty.Response, error)
post
func (*Wso2AgentRequest) Post2Result ¶
func (self *Wso2AgentRequest) Post2Result(body interface{}, url string) *basedto.IchubResult
func (*Wso2AgentRequest) QueryApp ¶
func (self *Wso2AgentRequest) QueryApp(appName string) *basedto.IchubResult
func (*Wso2AgentRequest) QueryDemoApi ¶
func (self *Wso2AgentRequest) QueryDemoApi() *basedto.IchubResult
func (*Wso2AgentRequest) QueryNewApi ¶
func (self *Wso2AgentRequest) QueryNewApi() *basedto.IchubResult
{ "code": "900902", "message": "Missing Credentials", "description": "Invalid Credentials. Make sure your API invocation call has a header: 'Authorization : Bearer ACCESS_TOKEN' or 'Authorization : Basic ACCESS_TOKEN' or 'ApiKey : API_KEY'" }
func (*Wso2AgentRequest) R ¶
func (self *Wso2AgentRequest) R() *resty.Request
menuPanel=visible; menuPanelType=main; Hm_lvt_50d438546dfe2f605b42aa9f26f22ad8=1717123964,1717149779,1717382795,1717554626; JSESSIONID=4C2B338A60FCD92C2755D64486354780; opbs=fdb33b36-0476-4f47-b01c-b4244e5e42e6; commonAuthId=c070f214-3785-4b95-995b-a5158a2972ec
type Wso2Header ¶
type Wso2PageResult ¶
type Wso2PageResult struct { Pagination Pagination `json:"pagination"` Count int `json:"count"` List []any `json:"list"` }
func NewWso2PageResult ¶
func NewWso2PageResult() *Wso2PageResult
Click to show internal directories.
Click to hide internal directories.