client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Endpoint is the Stately API endpoint.
	// Defaults to https://api.stately.cloud
	Endpoint          string
	AuthTokenProvider auth.TokenProvider
}

Options is a set of common options for a stately API client.

func (*Options) ApplyDefaults

func (o *Options) ApplyDefaults(appCtx context.Context) (*Options, error)

ApplyDefaults applies the default values to the options.

func (*Options) HTTPClient

func (o *Options) HTTPClient() *http.Client

HTTPClient builds an HTTP/2 client for the given options.

Jump to

Keyboard shortcuts

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