upstream

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func GetAppBundle added in v1.0.0

func GetAppBundle(bundlePath string, log utils.Logger) (*apps.Manifest, string, error)

GetAppBundle loads and unzips the bundle into a temp folder, parses the manifest.

func Notify

func Notify(ctx context.Context, u Upstream, app apps.App, creq apps.CallRequest) error

Types

type Upstream

type Upstream interface {
	Roundtrip(ctx context.Context, _ apps.App, _ apps.CallRequest, async bool) (io.ReadCloser, error)
	GetStatic(ctx context.Context, _ apps.App, path string) (io.ReadCloser, int, error)
}

Upstream should be abbreviated as `up`.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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