Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Applicable ¶
Applicable returns true if the LRO is using Operation-Location.
Types ¶
type Poller ¶
type Poller[T any] struct { OpLocURL string `json:"oplocURL"` LocURL string `json:"locURL"` OrigURL string `json:"origURL"` Method string `json:"method"` FinalState pollers.FinalStateVia `json:"finalState"` CurState string `json:"state"` // contains filtered or unexported fields }
Poller is an LRO poller that uses the Operation-Location pattern.
func New ¶
func New[T any](pl exported.Pipeline, resp *http.Response, finalState pollers.FinalStateVia) (*Poller[T], error)
New creates a new Poller from the provided initial response. Pass nil for response to create an empty Poller for rehydration.
Click to show internal directories.
Click to hide internal directories.