Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sends requests to a server.
func NewClient ¶
func NewClient(p ClientParams) (*Client, error)
NewClient builds a new client. --8<-- [start:takeparam] --8<-- [start:consume]
type ClientConfig ¶
type ClientConfig struct {
URL string
}
ClientConfig defines the configuration for the client.
type ClientParams ¶
type ClientParams struct { // --8<-- [end:empty-1] fx.In Config ClientConfig HTTPClient *http.Client }
ClientParams defines the parameters necessary to build a client. --8<-- [start:empty-1] --8<-- [start:fxin] --8<-- [start:fields]
Click to show internal directories.
Click to hide internal directories.