interfaces

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInterface

type AppInterface interface {
	// GetContext returns the application context.
	GetContext() *context.Context

	// Config returns the configuration of the application.
	Config() interface{}

	// SetConfig sets the configuration of the application.
	SetConfig(config interface{}) *core.App

	// RootPath returns the root path of the application.
	RootPath() string

	// SetRootPath sets the root path of the application.
	SetRootPath(path string) *core.App

	// RegisterPlugin registers a plugin at the specified path with the given configuration.
	RegisterPlugin(path string, config interface{}) error

	// Use registers a key with a create function for dependency management.
	Use(key string, createFunc func() (interface{}, error)) error

	// Get retrieves the value associated with the key.
	Get(key string) (interface{}, error)

	// Exists checks if a key is registered.
	Exists(key string) bool
}

AppInterface defines the methods for the App structure.

Jump to

Keyboard shortcuts

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