package loc
import "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/loc"
Index ¶
- func Applicable(resp *http.Response) bool
- func CanResume(token map[string]interface{}) bool
- type Poller
Functions ¶
func Applicable ¶
Applicable returns true if the LRO is using Location.
func CanResume ¶
CanResume returns true if the token can rehydrate this poller type.
Types ¶
type Poller ¶
type Poller[T any] struct { Type string `json:"type"` PollURL string `json:"pollURL"` CurState string `json:"state"` // contains filtered or unexported fields }
Poller is an LRO poller that uses the Location pattern.
func New ¶
New creates a new Poller from the provided initial response. Pass nil for response to create an empty Poller for rehydration.
func (*Poller[T]) Done ¶
func (*Poller[T]) Poll ¶
func (*Poller[T]) Result ¶
Source Files ¶
- Version
- v1.4.0
- Published
- Mar 1, 2023
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 9 minutes ago –
Tools for package owners.