Documentation ¶
Index ¶
Constants ¶
View Source
const ( URIInternal = "/api/internal/v1/devauth" URIInternalDevices = URIInternal + "/tenants/:tenant/devices" URIInternalAlive = URIInternal + "/alive" )
View Source
const DefaultTimeout = time.Second * 10
Variables ¶
View Source
var (
ErrInvalidURL = errors.New("invalid URL format")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Ping(ctx context.Context) error GetDevices(context.Context, []string) ([]Device, error) }
Client interface exposing a portion of the internal deviceauth API.
type Config ¶
type Config struct { // Client provides an option to override the http.Client used for // performing the requests. Client *http.Client // DevauthAddress is the base URI to the deviceauth service (requires // a minimal of an addressable hostname, to a full blown URL). DevauthAddress string }
Config provides initialization options for creating a new client.
Click to show internal directories.
Click to hide internal directories.