Help us shape the future of Go! Take the 2026 Go Developer Survey

application

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 10 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)
	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

func OpenFromYaz(reader io.Reader, file string, cipher yaz.Cipher) (Application, error)

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

type Pack added in v1.0.0

type Pack struct {
	Name         string            `json:"name,omitempty"`
	Environments map[string]string `json:"environments,omitempty"`
}

Pack the application pack

Directories

Path Synopsis
yaz

Jump to

Keyboard shortcuts

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