yandexv1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDeviceName = "yapusher-cli"
View Source
const MaxUploadSize = 50 * 1024 * 1024 * 1024 // 50 gigabytes
View Source
const YandexAppID = "7d8a0561fdc44c05bb6695b464403f9c"
View Source
const YandexAppPw = "56e12e4ed0d64738bf441a47f68c7146"

Variables

This section is empty.

Functions

func New

func New(cc *context.Context)

New initializes package

func Process

func Process()

Process handles authorization and files

Types

type TokenError

type TokenError struct {
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
}

type UploadError

type UploadError struct {
	Error       string `json:"error"`
	Description string `json:"description"`
}

type UploadInfo

type UploadInfo struct {
	URL            string `json:"href"`
	Method         string `json:"method"`
	URLIsTemplated bool   `json:"templated"`
}

Jump to

Keyboard shortcuts

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