shared

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClientInterface

type HTTPClientInterface interface {
	R() RequestInterface
}

HTTPClientInterface represents the HTTP client interface

type PaginatedResponse

type PaginatedResponse interface {
	GetData() any
	GetNextURL() string
	AppendData(any)
}

PaginatedResponse represents a response that supports pagination

type RequestInterface

type RequestInterface interface {
	SetContext(ctx context.Context) RequestInterface
	SetResult(result any) RequestInterface
	SetError(err any) RequestInterface
	SetBody(body any) RequestInterface
	SetQueryParam(param, value string) RequestInterface
	Get(url string) (ResponseInterface, error)
	Post(url string) (ResponseInterface, error)
}

RequestInterface represents a request interface

type ResponseInterface

type ResponseInterface interface {
	IsError() bool
	StatusCode() int
	String() string
}

ResponseInterface represents a response interface

Jump to

Keyboard shortcuts

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