application

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(app Application)

Load the application

func Parse

func Parse(name string, data []byte, vPtr interface{}) error

Parse the yao/json/jsonc/yaml type data

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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