Documentation
¶
Index ¶
- Constants
- func GetServiceForRequestRequired(ctx context.Context, key string) interface{}
- func GetServiceFromRequest(ctx context.Context, key string) interface{}
- func GetServiceOptional(key string) (service interface{}, has bool)
- func GetServiceRequired(key string) interface{}
- func GinFromContext(ctx context.Context) *gin.Context
- func HasService(key string) bool
- func SetContainer(c di.Container)
- func SetRequestServices(servicesDefinitionsRequest []*DefinitionRequest)
- type DIInterface
- type DefinitionGlobal
- type DefinitionRequest
Constants ¶
View Source
const ( GinKey key = iota RequestBodyKey )
View Source
const ( AppService = "app" ConfigService = "config" ErrorLoggerService = "error_logger" LocalizeService = "localize" PDFService = "pdf" ExtractorService = "extractor" JWTService = "jwt" DDOSService = "ddos" FCMService = "fcm" ORMConfigService = "orm_config" ORMEngineGlobalService = "orm_engine_global" ORMEngineRequestService = "orm_engine_request" OSService = "oss" PasswordService = "password" SlackService = "slack" AmazonS3Service = "amazon_s3" UploaderService = "uploader" StripeService = "stripe" CheckoutService = "checkout" DynamicLinkService = "dynamic_link" SocketRegistryService = "socket_registry" APILoggerService = "api_logger" AuthenticationService = "authentication" ClockService = "clock" SMSService = "sms" GoroutineService = "goroutine" GeneratorService = "generator" MailMandrillService = "mail_mandrill" GoogleService = "google" FacebookService = "facebook" CrudService = "crud" UUIDService = "uuid" OTPService = "otp" ExporterService = "exporter" )
Variables ¶
This section is empty.
Functions ¶
func GetServiceFromRequest ¶ added in v0.8.35
func GetServiceOptional ¶
func GetServiceRequired ¶
func GetServiceRequired(key string) interface{}
func HasService ¶
func SetContainer ¶
func SetRequestServices ¶ added in v0.8.35
func SetRequestServices(servicesDefinitionsRequest []*DefinitionRequest)
Types ¶
type DIInterface ¶
type DIInterface interface { App() *app.App Config() config.IConfig OrmConfig() beeorm.ValidatedRegistry OrmEngine() *beeorm.Engine OrmEngineForContext(ctx context.Context) *beeorm.Engine JWT() *jwt.JWT Password() password.IPassword Slack() slack.Slack ErrorLogger() errorlogger.ErrorLogger OSService() oss.IProvider AmazonS3() s3.Client SocketRegistry() *socket.Registry APILogger() apilogger.IAPILogger Authentication() *authentication.Authentication SMS() sms.ISender Generator() generator.IGenerator MailMandrill() mail.Sender Stripe() stripe.IStripe Google() *social.Google Checkout() checkout.ICheckout Clock() clock.IClock Uploader() uploader.Uploader Crud() *crud.Crud Localize() localize.ILocalizer FileExtractor() *fileextractor.FileExtractor UUID() uuid.IUUID OTP() otp.IOTP DDOS() ddos.IDDOS DynamicLink() dynamiclink.IGenerator FCM() fcm.FCM PDF() pdf.ServiceInterface Exporter() exporter.IExporter }
func DI ¶
func DI() DIInterface
type DefinitionGlobal ¶ added in v0.8.35
Click to show internal directories.
Click to hide internal directories.