Documentation
¶
Index ¶
- func Load(app Application)
- func Parse(name string, data []byte, vPtr interface{}) error
- type Application
- func OpenFromDB(setting interface{}) (Application, error)
- func OpenFromDisk(root string) (Application, error)
- func OpenFromRemote(url string, auth interface{}) (Application, error)
- func OpenFromStore(setting interface{}) (Application, error)
- func OpenFromYaz(reader io.Reader, file string, cipher yaz.Cipher) (Application, error)
- func OpenFromYazCache(file string, cipher yaz.Cipher) (Application, error)
- func OpenFromYazFile(file string, cipher yaz.Cipher) (Application, error)
- type Pack
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)
Info(name string) (os.FileInfo, error)
Watch(handler func(event string, name string), interrupt chan uint8) error
Glob(pattern string) (matches []string, err error)
Root() string
FS(root string) http.FileSystem
}
Application the application interface
var App Application = nil
App the application interface
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 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
func OpenFromYaz ¶ added in v1.0.0
OpenFromYaz open the application from the binary .app file
func OpenFromYazCache ¶ added in v1.0.0
func OpenFromYazCache(file string, cipher yaz.Cipher) (Application, error)
OpenFromYazCache open the application from the cache
func OpenFromYazFile ¶ added in v1.0.0
func OpenFromYazFile(file string, cipher yaz.Cipher) (Application, error)
OpenFromYazFile open the application from the .yaz file
Click to show internal directories.
Click to hide internal directories.