resourcetest

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: AGPL-3.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 TestResource

type TestResource struct {
	*resource.DbResource
	// contains filtered or unexported fields
}

func NewTestFsResource

func NewTestFsResource(path string) *TestResource

func NewTestResource

func NewTestResource() *TestResource

func (*TestResource) AddBytecode

func (tr *TestResource) AddBytecode(ctx context.Context, key string, val []byte) error

func (*TestResource) AddFunc

func (tr *TestResource) AddFunc(ctx context.Context, key string, fn resource.EntryFunc)

func (*TestResource) AddMenu

func (tr *TestResource) AddMenu(ctx context.Context, key string, val string) error

func (*TestResource) AddStatic added in v0.2.0

func (tr *TestResource) AddStatic(ctx context.Context, key string, val string) error

func (*TestResource) AddTemplate

func (tr *TestResource) AddTemplate(ctx context.Context, key string, val string) error

func (*TestResource) Lock

func (tr *TestResource) Lock()

Source Files

  • util.go

Jump to

Keyboard shortcuts

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