Documentation
¶
Index ¶
Constants ¶
View Source
const ( RetryAttemps = 3 RetryWaitSeconds = 5 RetryMaxWaitSeconds = 20 )
Variables ¶
View Source
var ErrNoPointer = fmt.Errorf("target interface must be a pointer")
Functions ¶
This section is empty.
Types ¶
type AuthenticationType ¶
type AuthenticationType int
const ( Customer AuthenticationType = iota Administrator )
func (AuthenticationType) Route ¶
func (authenticationType AuthenticationType) Route() string
type Client ¶
type Client struct {
HTTPClient *resty.Client
}
func NewAPIClientFromAuthentication ¶
func NewAPIClientFromAuthentication(storeConfig *StoreConfig, payload AuthenticationRequestPayload, authenticationType AuthenticationType) (*Client, error)
func NewAPIClientFromIntegration ¶
func NewAPIClientFromIntegration(storeConfig *StoreConfig, bearer string) (*Client, error)
func NewAPIClientWithoutAuthentication ¶
func NewAPIClientWithoutAuthentication(storeConfig *StoreConfig) *Client
func (*Client) GetRouteAndDecode ¶
type StoreConfig ¶
Click to show internal directories.
Click to hide internal directories.