web_pkg_static

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticWebPkg

type StaticWebPkg struct {
	// contains filtered or unexported fields
}

StaticWebPkg implements WebPkg with static information.

func NewStaticWebPkg

func NewStaticWebPkg(
	info *web_pkg.WebPkgInfo,
	getFsHandle func(ctx context.Context) (*unixfs.FSHandle, error),
) (*StaticWebPkg, error)

NewStaticWebPkg constructs a new static WebPkg.

func (*StaticWebPkg) GetId

func (p *StaticWebPkg) GetId() string

GetId implements web_pkg.WebPkg.

func (*StaticWebPkg) GetInfo

func (p *StaticWebPkg) GetInfo(ctx context.Context) (*web_pkg.WebPkgInfo, error)

GetInfo implements web_pkg.WebPkg.

func (*StaticWebPkg) GetWebPkgFsHandle

func (p *StaticWebPkg) GetWebPkgFsHandle(ctx context.Context) (*unixfs.FSHandle, error)

GetWebPkgFsHandle implements web_pkg.WebPkg.

Jump to

Keyboard shortcuts

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