foundation

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 0 Imported by: 1

README

foundation

Go Go Version GoDoc codecov Go Report Card tests MIT license

Installation

go get github.com/go-packagist/foundation

Example

see Example

License

  • The MIT License (MIT). Please see License File for more information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	// Register a service provider with the application.
	Register(provider Provider)

	// Boot the applications service providers.
	Boot()

	// Terminate the application.
	Terminate()
}

type Bootstrapper added in v1.0.0

type Bootstrapper interface {
	Bootstrap(app Application)
}

type Kernel added in v1.0.0

type Kernel interface {
	// Bootstrap the application.
	Bootstrap()

	// Handle the application.
	Handle()

	// Terminate the application.
	Terminate()
}

type Provider

type Provider interface {
	Register()
	Boot()
	Terminate()
}

type UnimplementedProvider added in v1.0.0

type UnimplementedProvider struct{}

UnimplementedProvider is a default implementation of the Provider interface.

func (*UnimplementedProvider) Boot added in v1.0.0

func (u *UnimplementedProvider) Boot()

func (*UnimplementedProvider) Register added in v1.0.0

func (u *UnimplementedProvider) Register()

func (*UnimplementedProvider) Terminate added in v1.0.0

func (u *UnimplementedProvider) Terminate()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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