folder_handler

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FolderChildFiles

type FolderChildFiles map[string]types.Details

type FolderFileFrame

type FolderFileFrame struct {
	WhoAmI       string           `json:"whoAmI"`
	WhereAmI     string           `json:"whereAmI"`
	WhoOwnsMe    string           `json:"whoOwnsMe"`
	DirChildren  []string         `json:"dirChildren"`
	FileChildren FolderChildFiles `json:"fileChildren"`
}

type FolderGroup

type FolderGroup map[string]*FolderHandler

type FolderHandler

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

func NewFolderHandler

func NewFolderHandler(frame FolderFileFrame, wallet *wallet_handler.WalletHandler) *FolderHandler

func TrackFolder

func TrackFolder(dirInfo FolderFileFrame, wallet *wallet_handler.WalletHandler) *FolderHandler

func TrackNewFolder

func TrackNewFolder(myName string, myParent string, myOwner string, wallet *wallet_handler.WalletHandler) *FolderHandler

func (*FolderHandler) AddChildDirs

func (f *FolderHandler) AddChildDirs(childNames []string) ([]sdk.Msg, []string, error)

func (*FolderHandler) AddChildFileReferences

func (f *FolderHandler) AddChildFileReferences(newFiles FolderChildFiles) (sdk.Msg, error)

func (*FolderHandler) GetChildDirs

func (f *FolderHandler) GetChildDirs() []string

func (*FolderHandler) GetChildFiles

func (f *FolderHandler) GetChildFiles() FolderChildFiles

func (*FolderHandler) GetChildMerkle

func (f *FolderHandler) GetChildMerkle(child string) string

func (*FolderHandler) GetFolderDetails

func (f *FolderHandler) GetFolderDetails() FolderFileFrame

func (*FolderHandler) GetForFiletree

func (f *FolderHandler) GetForFiletree() (sdk.Msg, error)

func (*FolderHandler) GetMyChildPath

func (f *FolderHandler) GetMyChildPath(child string) string

func (*FolderHandler) GetMyPath

func (f *FolderHandler) GetMyPath() string

func (*FolderHandler) GetWhereAmI

func (f *FolderHandler) GetWhereAmI() string

func (*FolderHandler) GetWhoAmI

func (f *FolderHandler) GetWhoAmI() string

func (*FolderHandler) GetWhoOwnsMe

func (f *FolderHandler) GetWhoOwnsMe() string

func (*FolderHandler) MakeChildDirInfo

func (f *FolderHandler) MakeChildDirInfo(childName string) (myName string, myParent string, myOwner string)

func (*FolderHandler) RemoveChildDirReferences

func (f *FolderHandler) RemoveChildDirReferences(toRemove []string) (sdk.Msg, error)

func (*FolderHandler) RemoveChildFileReferences

func (f *FolderHandler) RemoveChildFileReferences(toRemove []string) (sdk.Msg, error)

Jump to

Keyboard shortcuts

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