Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
// String returns the unique identifier of the application
String() string
// HandleHTTP processes HTTP requests for this application
HandleHTTP(
ctx context.Context,
resp http.ResponseWriter,
req *http.Request,
) error
}
App defines the interface that all applications must implement. This interface defines what applications can do within the server context. Consumers (like HTTP layer) may define their own structurally identical interfaces.
type AppInstances ¶
type AppInstances struct {
// contains filtered or unexported fields
}
AppInstances is an immutable collection of application instances
func NewAppInstances ¶
func NewAppInstances(apps []App) (*AppInstances, error)
NewAppInstances creates a new AppInstances from a slice of App instances
func (*AppInstances) All ¶
func (c *AppInstances) All() iter.Seq[App]
All returns an iterator over all app instances in the collection. This enables clean iteration: for app := range instances.All() { ... }
func (*AppInstances) GetApp ¶
func (c *AppInstances) GetApp(id string) (App, bool)
GetApp retrieves an application instance by ID
func (*AppInstances) String ¶
func (c *AppInstances) String() string
String returns a string representation of the app instances
Click to show internal directories.
Click to hide internal directories.