dbx_context

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DropboxApiResHeaderRetryAfter    = "Retry-After"
	DropboxApiResHeaderResult        = "Dropbox-API-Result"
	DropboxApiErrorBadInputParam     = 400
	DropboxApiErrorBadOrExpiredToken = 401
	DropboxApiErrorAccessError       = 403
	DropboxApiErrorEndpointSpecific  = 409
	DropboxApiErrorNoPermission      = 422
	DropboxApiErrorRateLimit         = 429
)

Variables

This section is empty.

Functions

func ContentResponseData

func ContentResponseData(res es_response.Response) es_json.Json

Types

type AsyncContext

type AsyncContext interface {
	Async(endpoint string) dbx_async.Async
}

type Context

type Context interface {
	api_context.Context
	api_context.QualityContext
	api_context.UI

	Async(endpoint string, d ...api_request.RequestDatum) dbx_async.Async
	List(endpoint string, d ...api_request.RequestDatum) dbx_list.List
	Post(endpoint string, d ...api_request.RequestDatum) dbx_response.Response
	Upload(endpoint string, d ...api_request.RequestDatum) dbx_response.Response
	Download(endpoint string, d ...api_request.RequestDatum) dbx_response.Response
	Notify(endpoint string, d ...api_request.RequestDatum) dbx_response.Response
	ContentHead(endpoint string, d ...api_request.RequestDatum) dbx_response.Response

	AsMemberId(teamMemberId string) Context
	AsAdminId(teamMemberId string) Context
	WithPath(pathRoot PathRoot) Context
	NoAuth() Context
	NoRetry() Context
	Feature() app_feature.Feature
}

type ListContext

type ListContext interface {
	List(endpoint string) dbx_list.List
}

type PathRoot

type PathRoot interface {
	Header() string
}

func Home

func Home() PathRoot

func Namespace

func Namespace(namespaceId string) PathRoot

func Root

func Root(namespaceId string) PathRoot

Jump to

Keyboard shortcuts

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