Documentation ¶
Index ¶
- type ApiResponse
- type ApiResponseCallback
- type ProcessAPI
- func (s *ProcessAPI) Await(callback common.Callback)
- func (s *ProcessAPI) FindUserAsync(callback ApiResponseCallback, email string)
- func (s *ProcessAPI) GetAllOrdersAsync(callback ApiResponseCallback)
- func (s *ProcessAPI) GetOrderByIdAsync(callback ApiResponseCallback, orderId string)
- func (s *ProcessAPI) GetOrderDetailsByIdAsync(callback ApiResponseCallback, orderId string)
- func (s *ProcessAPI) GetOrdersByDomainAsync(callback ApiResponseCallback, domainId string)
- func (s *ProcessAPI) GetOrdersByEmailAsync(callback ApiResponseCallback, email string)
- func (s *ProcessAPI) GetUrl(path string) string
- func (s *ProcessAPI) HasActiveRequest() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct { Status int Data interface{} }
type ApiResponseCallback ¶
type ApiResponseCallback func(*ApiResponse)
type ProcessAPI ¶
type ProcessAPI struct {
// contains filtered or unexported fields
}
func NewProcessAPI ¶
func NewProcessAPI(url, apiKey string, timeout time.Duration, logger *zap.SugaredLogger, concurrent int) *ProcessAPI
func (*ProcessAPI) Await ¶
func (s *ProcessAPI) Await(callback common.Callback)
func (*ProcessAPI) FindUserAsync ¶
func (s *ProcessAPI) FindUserAsync(callback ApiResponseCallback, email string)
func (*ProcessAPI) GetAllOrdersAsync ¶
func (s *ProcessAPI) GetAllOrdersAsync(callback ApiResponseCallback)
func (*ProcessAPI) GetOrderByIdAsync ¶
func (s *ProcessAPI) GetOrderByIdAsync(callback ApiResponseCallback, orderId string)
func (*ProcessAPI) GetOrderDetailsByIdAsync ¶
func (s *ProcessAPI) GetOrderDetailsByIdAsync(callback ApiResponseCallback, orderId string)
func (*ProcessAPI) GetOrdersByDomainAsync ¶
func (s *ProcessAPI) GetOrdersByDomainAsync(callback ApiResponseCallback, domainId string)
func (*ProcessAPI) GetOrdersByEmailAsync ¶
func (s *ProcessAPI) GetOrdersByEmailAsync(callback ApiResponseCallback, email string)
func (*ProcessAPI) GetUrl ¶
func (s *ProcessAPI) GetUrl(path string) string
func (*ProcessAPI) HasActiveRequest ¶
func (s *ProcessAPI) HasActiveRequest() bool
Click to show internal directories.
Click to hide internal directories.