Documentation ¶
Index ¶
- func Load(app Application)
- func Parse(name string, data []byte, vPtr interface{}) error
- type Application
- func OpenFromBin(file string, privateKey string) (Application, error)
- func OpenFromDB(setting interface{}) (Application, error)
- func OpenFromDisk(root string) (Application, error)
- func OpenFromPack(file string) (Application, error)
- func OpenFromRemote(url string, auth interface{}) (Application, error)
- func OpenFromStore(setting interface{}) (Application, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application interface { Walk(path string, handler func(root, filename string, isdir bool) error, patterns ...string) error Read(name string) ([]byte, error) Write(name string, content []byte) error Remove(name string) error Exists(name string) (bool, error) Watch(handler func(event string, name string), interrupt chan uint8) error }
Application the application interface
var App Application = nil
App the application interface
func OpenFromBin ¶
func OpenFromBin(file string, privateKey string) (Application, error)
OpenFromBin open the application from the binary .app file
func OpenFromDB ¶
func OpenFromDB(setting interface{}) (Application, error)
OpenFromDB open the application from database
func OpenFromDisk ¶
func OpenFromDisk(root string) (Application, error)
OpenFromDisk open the application from disk
func OpenFromPack ¶
func OpenFromPack(file string) (Application, error)
OpenFromPack open the application from the .pkg file
func OpenFromRemote ¶
func OpenFromRemote(url string, auth interface{}) (Application, error)
OpenFromRemote open the application from the remote source server support .pkg | .app
func OpenFromStore ¶
func OpenFromStore(setting interface{}) (Application, error)
OpenFromStore open the application from the store driver
Click to show internal directories.
Click to hide internal directories.