Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultOrgID = "c1556e17-b7c0-45a3-a6ae-9546248fb17a"
the default orgID that we will be using for testing
View Source
const MaxChild = 4
maximum possible children per node
View Source
const MaxDepth = 5
max depth of the tree
View Source
const MaxRootSet = 4
how many trees you want to generate
Variables ¶
This section is empty.
Functions ¶
func MarshalJson ¶
func MarshalJson(b interface{}) []byte
MarshalJson marshals data into pretty JSON format.
func PrettyPrint ¶
func PrettyPrint(folders []Folder)
PrettyPrint prints folders in a readable JSON format.
func WriteSampleData ¶
func WriteSampleData(data interface{})
WriteSampleData writes data to sample.json.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver provides methods to manipulate folders.
func (*Driver) GetAllChildFolders ¶
GetAllChildFolders returns all child folders of a given folder within an organization.
func (*Driver) GetFoldersByOrgID ¶
GetFoldersByOrgID returns all folders for a given organization ID.
Click to show internal directories.
Click to hide internal directories.