mobile

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STORE_PATH = "storePath"
	//I will cheet until i can add threadsafe datastore
	MY_BOX = "/mybox/cheat"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRef

type FileRef struct {
	Iv  []byte `json:"iv"`
	Key []byte `json:"key"`
	Id  string `json:"id"`
}

type Fula

type Fula struct {
	// contains filtered or unexported fields
}

func NewFula

func NewFula(repoPath string) (*Fula, error)

func (*Fula) AddBox

func (f *Fula) AddBox(boxAddr string) error

func (*Fula) EncryptSend

func (f *Fula) EncryptSend(filePath string) (string, error)

func (*Fula) NewStream

func (f *Fula) NewStream() (network.Stream, error)

func (*Fula) ReceiveDecryptFile

func (f *Fula) ReceiveDecryptFile(ref string, filePath string) error

func (*Fula) ReceiveFile

func (f *Fula) ReceiveFile(fileId string, filePath string) error

func (*Fula) ReceiveFileInfo

func (f *Fula) ReceiveFileInfo(fileId string) (string, error)

func (*Fula) Send

func (f *Fula) Send(filePath string) (string, error)

type IFula

type IFula interface {
	AddBox()
	Send()
	ReceiveFileInfo()
	ReceiveFile()
	EncryptSend()
	ReceiveDecryptFile()
}

Jump to

Keyboard shortcuts

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