upload_utils

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

README



var aToken = "abc123"

var apiEndpoint = "https://domain.com/api/hello/vast"


ut := common.NewUploadUtils(aToken, apiEndpoint)

err, resp := ut.Upload("./test.jpg")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadUtils

type UploadUtils struct {
	AuthToken string
	UploadUrl string
}

func NewUploadUtils

func NewUploadUtils(authToken, uploadUrl string) *UploadUtils

func (UploadUtils) Upload

func (ut UploadUtils) Upload(filePath string) (error, []byte)

Jump to

Keyboard shortcuts

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