Documentation
¶
Overview ¶
Package transport is the transport layer of the HTTP client SDK example. It owns the *http.Client and base URL and builds one httpclientv1.Client per remote operation, mirroring the eir apiserver client's transport layout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
Users() UserTransport
}
Factory is the entry point of the transport layer, exposing one transport per resource. It follows the eir apiserver client convention.
type UserTransport ¶
type UserTransport interface {
Create() httpclientv1.Client[*apiv1.CreateUserRequest, *apiv1.User]
Get() httpclientv1.Client[httpclientv1.NilBody, *apiv1.User]
List() httpclientv1.Client[httpclientv1.NilBody, []*apiv1.User]
}
UserTransport defines the transport layer interface for the user resource. Each method returns a fully configured httpclientv1.Client bound to one remote HTTP operation.