Documentation
¶
Index ¶
- func MakeRequest(method string, serviceURL string, endpoint string, opts ...Option) (*http.Request, error)
- type EpicErrorResponse
- type Error
- type Option
- func WithBasicToken(basicToken string) Option
- func WithBearerToken(accessToken string) Option
- func WithBody(body io.Reader, contentType string) Option
- func WithFormBody(values url.Values) Option
- func WithHeader(key, value string) Option
- func WithHeaders(headers map[string]string) Option
- func WithJSONBody(v any) Option
- func WithQueryParamaters(query url.Values) Option
- func WithTextBody(text string) Option
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EpicErrorResponse ¶
type EpicErrorResponse struct {
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
NumericErrorCode int `json:"numericErrorCode"`
OriginatingService string `json:"originatingService"`
MessageVars []string `json:"messageVars,omitempty"`
Intent string `json:"intent"`
Continuation string `json:"continuation,omitempty"`
ContinuationURL string `json:"continuationUrl,omitempty"`
CorrectiveAction string `json:"correctiveAction,omitempty"`
}
type Option ¶
type Option func(*requestConfig) error
func WithBasicToken ¶
func WithBearerToken ¶
func WithFormBody ¶
func WithHeader ¶
func WithHeaders ¶
func WithJSONBody ¶
func WithQueryParamaters ¶
func WithTextBody ¶
Click to show internal directories.
Click to hide internal directories.