foundation

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 57 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) CurrentLocale

func (app *Application) CurrentLocale(ctx context.Context) string

func (*Application) DatabasePath

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

func (*Application) ExecutablePath

func (app *Application) ExecutablePath(path ...string) string

func (*Application) GetJson

func (app *Application) GetJson() foundation.Json

func (*Application) IsLocale

func (app *Application) IsLocale(ctx context.Context, locale string) bool

func (*Application) LangPath

func (app *Application) LangPath(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) SetJson

func (app *Application) SetJson(j foundation.Json)

func (*Application) SetLocale

func (app *Application) SetLocale(ctx context.Context, locale string) context.Context

func (*Application) StoragePath

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

func (*Application) Version

func (app *Application) Version() 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(ctx httpcontract.Context) 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) MakeLang

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.Route

func (*Container) MakeSchedule

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

func (*Container) MakeSchema

func (c *Container) MakeSchema() migrationcontract.Schema

func (*Container) MakeSeeder

func (c *Container) MakeSeeder() seerdercontract.Facade

func (*Container) MakeSession

func (c *Container) MakeSession() sessioncontract.Manager

func (*Container) MakeStorage

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

func (*Container) MakeTesting

func (c *Container) MakeTesting() testingcontract.Testing

func (*Container) MakeValidation

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

func (*Container) MakeView

func (c *Container) MakeView() httpcontract.View

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