transport

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func NewTransport

func NewTransport(client *http.Client, baseURL string) Factory

NewTransport creates a transport Factory bound to the given HTTP client and base URL. A nil client falls back to http.DefaultClient.

type UserTransport

UserTransport defines the transport layer interface for the user resource. Each method returns a fully configured httpclientv1.Client bound to one remote HTTP operation.

Jump to

Keyboard shortcuts

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