YottaMobile

package module
v0.0.0-...-502165a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

README

YottaMobile

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y int) int

func CreateDirectory

func CreateDirectory(directory, fileName string) string

func DownBlock

func DownBlock(url, userName, bucketName, fileName string, blockNum int) ([]byte, error)

func DownloadObject

func DownloadObject(url, filePath, fileName, bucketName string) string

func ListObjects

func ListObjects(bucketName, publicKey string) []string

func Md5SumFile

func Md5SumFile(file string) string

func ReadUserInfo

func ReadUserInfo() []byte

func Register

func Register(userName, privateKey string) string

func UploadObject

func UploadObject(url, filePath, bucketName, userName, privateKey string)

Types

type User

type User struct {
	UserName   string
	Num        uint32
	PrivateKey string
	PublicKey  string
}

func UserUnmarshal

func UserUnmarshal(data []byte) User

Directories

Path Synopsis
conf
aes

Jump to

Keyboard shortcuts

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