common

package
v0.0.0-...-8beb111 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoitpaySdkError

type DoitpaySdkError struct {
	// contains filtered or unexported fields
}

func NewDoitpaySdkError

func NewDoitpaySdkError(response *[]byte, paramStatus string, paramStatusText string) *DoitpaySdkError

func (DoitpaySdkError) Error

func (e DoitpaySdkError) Error() string

func (DoitpaySdkError) ErrorCode

func (e DoitpaySdkError) ErrorCode() string

func (DoitpaySdkError) FullError

func (e DoitpaySdkError) FullError() map[string]interface{}

func (DoitpaySdkError) RawResponse

func (e DoitpaySdkError) RawResponse() map[string]interface{}

func (DoitpaySdkError) Status

func (e DoitpaySdkError) Status() string

type FormFile

type FormFile struct {
	FileBytes    []byte
	FileName     string
	FormFileName string
}

type IClient

type IClient interface {
	GetConfig() IConfiguration
	PrepareRequest(
		ctx context.Context,
		path string, method string,
		postBody interface{},
		headerParams map[string]string,
		queryParams url.Values,
		formParams url.Values,
		formFiles []FormFile) (localVarRequest *http.Request, err error)
	CallAPI(request *http.Request) (*http.Response, error)
	Decode(v interface{}, b []byte, contentType string) (err error)
}

type IConfiguration

type IConfiguration interface {
	AddDefaultHeader(key string, value string)
	ServerURL(index int, variables map[string]string) (string, error)
	ServerURLWithContext(ctx context.Context, endpoint string) (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL