foundation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewApplication

func NewApplication() foundation.Application

Types

type Application

type Application struct {
	foundation.Container
	// contains filtered or unexported fields
}

func (*Application) BasePath

func (app *Application) BasePath(path string) string

func (*Application) Boot

func (app *Application) Boot()

Boot Register and bootstrap configured service providers.

func (*Application) Commands

func (app *Application) Commands(commands []consolecontract.Command)

func (*Application) ConfigPath

func (app *Application) ConfigPath(path string) string

func (*Application) DatabasePath

func (app *Application) DatabasePath(path string) string

func (*Application) Path

func (app *Application) Path(path string) string

func (*Application) PublicPath

func (app *Application) PublicPath(path string) string

func (*Application) Publishes

func (app *Application) Publishes(packageName string, paths map[string]string, groups ...string)

func (*Application) StoragePath

func (app *Application) StoragePath(path string) string

type Container

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

func NewContainer

func NewContainer() *Container

func (*Container) Bind

func (c *Container) Bind(key any, callback func(app foundationcontract.Application) (any, error))

func (*Container) BindWith

func (c *Container) BindWith(key any, callback func(app foundationcontract.Application, parameters map[string]any) (any, error))

func (*Container) Instance

func (c *Container) Instance(key any, ins any)

func (*Container) Make

func (c *Container) Make(key any) (any, error)

func (*Container) MakeArtisan

func (c *Container) MakeArtisan() consolecontract.Artisan

func (*Container) MakeAuth

func (c *Container) MakeAuth() authcontract.Auth

func (*Container) MakeCache

func (c *Container) MakeCache() cachecontract.Cache

func (*Container) MakeConfig

func (c *Container) MakeConfig() configcontract.Config

func (*Container) MakeCrypt

func (c *Container) MakeCrypt() cryptcontract.Crypt

func (*Container) MakeEvent

func (c *Container) MakeEvent() eventcontract.Instance

func (*Container) MakeGate

func (c *Container) MakeGate() accesscontract.Gate

func (*Container) MakeGrpc

func (c *Container) MakeGrpc() grpccontract.Grpc

func (*Container) MakeHash

func (c *Container) MakeHash() hashcontract.Hash

func (*Container) MakeLog

func (c *Container) MakeLog() logcontract.Log

func (*Container) MakeMail

func (c *Container) MakeMail() mailcontract.Mail

func (*Container) MakeOrm

func (c *Container) MakeOrm() ormcontract.Orm

func (*Container) MakeQueue

func (c *Container) MakeQueue() queuecontract.Queue

func (*Container) MakeRateLimiter

func (c *Container) MakeRateLimiter() httpcontract.RateLimiter

func (*Container) MakeRoute

func (c *Container) MakeRoute() routecontract.Engine

func (*Container) MakeSchedule

func (c *Container) MakeSchedule() schedulecontract.Schedule

func (*Container) MakeStorage

func (c *Container) MakeStorage() filesystemcontract.Storage

func (*Container) MakeValidation

func (c *Container) MakeValidation() validationcontract.Validation

func (*Container) MakeWith

func (c *Container) MakeWith(key any, parameters map[string]any) (any, error)

func (*Container) Singleton

func (c *Container) Singleton(key any, callback func(app foundationcontract.Application) (any, error))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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