# README
disk
import "github.com/coralproject/shelf/cmd/xenia/disk"
Overview
Index
- func LoadDir(dir string, loader func(string) error) error
- func LoadMask(context interface{}, path string) (mask.Mask, error)
- func LoadRegex(context interface{}, path string) (regex.Regex, error)
- func LoadRelationship(context interface{}, path string) (relationship.Relationship, error)
- func LoadScript(context interface{}, path string) (script.Script, error)
- func LoadSet(context interface{}, path string) (*query.Set, error)
- func LoadView(context interface{}, path string) (view.View, error)
Package files
func LoadDir
func LoadDir(dir string, loader func(string) error) error
LoadDir loadsup a given directory, calling a load function for each valid json file found.
func LoadMask
func LoadMask(context interface{}, path string) (mask.Mask, error)
LoadMask serializes the content of a Mask from a file using the given file path. Returns the serialized Mask value.
func LoadRegex
func LoadRegex(context interface{}, path string) (regex.Regex, error)
LoadRegex serializes the content of a regex from a file using the given file path. Returns the serialized regex value.
func LoadRelationship
func LoadRelationship(context interface{}, path string) (relationship.Relationship, error)
LoadRelationship serializes the content of a Relationship from a file using the given file path. Returns the serialized Relationship value.
func LoadScript
func LoadScript(context interface{}, path string) (script.Script, error)
LoadScript serializes the content of a Script from a file using the given file path. Returns the serialized Script value.
func LoadSet
func LoadSet(context interface{}, path string) (*query.Set, error)
LoadSet serializes the content of a Set from a file using the given file path. Returns the serialized Set value.
func LoadView
func LoadView(context interface{}, path string) (view.View, error)
LoadView serializes the content of a View from a file using the given file path. Returns the serialized View value.
Generated by godoc2md