dropbox

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OAuth2DropboxConfig

func OAuth2DropboxConfig() *oauth2.Config

Types

type DropboxProvider

type DropboxProvider struct {
	Config dropbox.Config
	// contains filtered or unexported fields
}

DropboxProvider implements a provider using dropbox sdk

func NewDropboxProvider

func NewDropboxProvider(token string) *DropboxProvider
func (c *DropboxProvider) GetLink(filepath string) (string, error)

func (*DropboxProvider) Upload

func (c *DropboxProvider) Upload(file *os.File, path string) (dst string, err error)

type TokenMap

type TokenMap map[string]string

Tokenmap example: { "token": "xxx" }

Jump to

Keyboard shortcuts

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