package loc

import "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/loc"

Index

Constants

const Kind = "Location"

Kind is the identifier of this type in a resume token.

Functions

func Applicable

func Applicable(resp *http.Response) bool

Applicable returns true if the LRO is using Location.

Types

type Poller

type Poller struct {
	Type     string `json:"type"`
	PollURL  string `json:"pollURL"`
	CurState int    `json:"state"`
}

Poller is an LRO poller that uses the Location pattern.

func New

func New(resp *http.Response, pollerID string) (*Poller, error)

New creates a new Poller from the provided initial response.

func (*Poller) Done

func (p *Poller) Done() bool

func (*Poller) FinalGetURL

func (*Poller) FinalGetURL() string

func (*Poller) Status

func (p *Poller) Status() string

func (*Poller) URL

func (p *Poller) URL() string

func (*Poller) Update

func (p *Poller) Update(resp *http.Response) error

Source Files

loc.go

Version
v0.21.0
Published
Jan 11, 2022
Platform
js/wasm
Imports
6 packages
Last checked
55 minutes ago

Tools for package owners.