Documentation
¶
Overview ¶
Package endpoint is the endpoint layer of the HTTP client SDK example. It adapts the transport layer's Client objects into domain-typed httpclientv1.Endpoint functions consumed by the service layer, mirroring the eir apiserver client's endpoint layout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
Users() UserEndpoints
}
Factory is the entry point of the endpoint layer.
func NewEndpoint ¶
func NewEndpoint(transport txpclientv1.Factory) Factory
NewEndpoint creates an endpoint Factory from the transport Factory.
type UserEndpoints ¶
type UserEndpoints interface {
Create() httpclientv1.Endpoint[*apiv1.CreateUserRequest, *apiv1.User]
Get() httpclientv1.Endpoint[httpclientv1.NilBody, *apiv1.User]
List() httpclientv1.Endpoint[httpclientv1.NilBody, []*apiv1.User]
}
UserEndpoints exposes the user resource operations as domain-typed endpoints.