Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerMiddleware ¶
LoggerMiddleware is a middleware that logs requests and responses middleware uses [DEBUG] level
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(logger tools.Logger, baseURL string, prepare ...PrepareClientFn) (client *Client, err error)
NewClient creates a new client instance
type Response ¶
type Response[T any] struct { Success bool `json:"success"` Message string `json:"message,omitempty"` Data T `json:"data,omitempty"` }
Response is a generic response structure
Click to show internal directories.
Click to hide internal directories.