dbx_async

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Async

type Async interface {
	Call(opts ...AsyncOpt) Response
}

type AsyncOpt

type AsyncOpt func(o AsyncOpts) AsyncOpts

func PollInterval

func PollInterval(seconds int) AsyncOpt

func Status

func Status(endpoint string) AsyncOpt

type AsyncOpts

type AsyncOpts struct {
	PollInterval   int
	StatusEndpoint string
}

func Combined

func Combined(opts []AsyncOpt) AsyncOpts

type Response

type Response interface {
	es_response.Response

	// True when the async job completed.
	IsCompleted() bool

	// Completed body. Returns nil if the operation is not yet completed.
	Complete() es_json.Json
}

func NewCompleted

func NewCompleted(res es_response.Response, complete es_json.Json) Response

func NewIncomplete

func NewIncomplete(res es_response.Response) Response

Jump to

Keyboard shortcuts

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