loc

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Kind = "Location"

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

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

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