client

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient interface {
	Do(request *RestClientRequest, res any) error
}

RestClient user can implement this client interface to send request

type RestClientRequest

type RestClientRequest struct {
	Header      http.Header
	Location    string
	Path        string
	Method      string
	PathParams  map[string]string
	QueryParams map[string]string
	Body        any
}

type RestOptions

type RestOptions struct {
	RequestTimeout   time.Duration
	ConnectTimeout   time.Duration
	KeppAliveTimeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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