service

package
v1.3.163 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GinKey key = iota
	RequestBodyKey
)
View Source
const (
	AppService                    = "app"
	ConfigService                 = "config"
	ErrorLoggerService            = "error_logger"
	LocalizeService               = "localize"
	HTML2PDFService               = "html2pdf"
	ExtractorService              = "extractor"
	JWTService                    = "jwt"
	DDOSService                   = "ddos"
	FCMService                    = "fcm"
	ORMConfigService              = "orm_config"
	ORMEngineGlobalService        = "orm_engine_global"
	ORMEngineRequestService       = "orm_engine_request"
	ClockWorkRequestService       = "clockwork_request"
	CalendarService               = "calendar"
	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"
	MailService                   = "mail"
	GoogleService                 = "google"
	FacebookService               = "facebook"
	AppleService                  = "apple"
	CrudService                   = "crud"
	UUIDService                   = "uuid"
	OTPService                    = "otp"
	ExporterService               = "exporter"
	SettingService                = "setting"
	FeatureFlagService            = "feature_flag"
	TemplateService               = "template"
	TranslationService            = "translation"
	GQLService                    = "gql"
	ElorusService                 = "elorus"
	InstagramService              = "instagram"
	GoogleAnalyticsService        = "google_analytics"
	KubernetesService             = "kubernetes"
	SentryService                 = "sentry"
	RequestLoggerService          = "request_logger"
	LicensePlateRecognizerService = "license_plate_recognizer"
	GeocodingService              = "geocoding"
)

Variables

This section is empty.

Functions

func GetServiceForRequestRequired

func GetServiceForRequestRequired(ctx context.Context, key string) interface{}

func GetServiceFromRequest added in v0.8.35

func GetServiceFromRequest(ctx context.Context, key string) interface{}

func GetServiceOptional

func GetServiceOptional(key string) (service interface{}, has bool)

func GetServiceRequired

func GetServiceRequired(key string) interface{}

func GinFromContext added in v0.3.1

func GinFromContext(ctx context.Context) *gin.Context

func HasService

func HasService(key string) bool

func SetContainer

func SetContainer(c di.Container)

func SetRequestServices added in v0.8.35

func SetRequestServices(servicesDefinitionsRequest []*DefinitionRequest)

Types

type DIContainer added in v0.9.98

type DIContainer struct {
}

func DI

func DI() *DIContainer

func (*DIContainer) APILogger added in v0.9.98

func (d *DIContainer) APILogger() apilogger.IAPILogger

func (*DIContainer) AmazonS3 added in v0.9.98

func (d *DIContainer) AmazonS3() s3.Client

func (*DIContainer) App added in v0.9.98

func (d *DIContainer) App() *app.App

func (*DIContainer) Authentication added in v0.9.98

func (d *DIContainer) Authentication() *authentication.Authentication

func (*DIContainer) Calendar added in v1.2.15

func (d *DIContainer) Calendar() calendar.ICalendar

func (*DIContainer) Checkout added in v0.9.98

func (d *DIContainer) Checkout() checkout.ICheckout

func (*DIContainer) Clock added in v0.9.98

func (d *DIContainer) Clock() clock.IClock

func (*DIContainer) ClockWorkForContext added in v1.0.0

func (d *DIContainer) ClockWorkForContext(ctx context.Context) *clockwork.Clockwork

func (*DIContainer) Config added in v0.9.98

func (d *DIContainer) Config() config.IConfig

func (*DIContainer) Crud added in v0.9.98

func (d *DIContainer) Crud() *crud.Crud

func (*DIContainer) DDOS added in v0.9.98

func (d *DIContainer) DDOS() ddos.IDDOS
func (d *DIContainer) DynamicLink() dynamiclink.IGenerator

func (*DIContainer) Elorus added in v1.0.52

func (d *DIContainer) Elorus() elorus.IProvider

func (*DIContainer) ErrorLogger added in v0.9.98

func (d *DIContainer) ErrorLogger() errorlogger.ErrorLogger

func (*DIContainer) Exporter added in v0.9.98

func (d *DIContainer) Exporter() exporter.IExporter

func (*DIContainer) FCM added in v0.9.98

func (d *DIContainer) FCM() fcm.FCM

func (*DIContainer) FeatureFlag added in v0.9.98

func (*DIContainer) FileExtractor added in v0.9.98

func (d *DIContainer) FileExtractor() *fileextractor.FileExtractor

func (*DIContainer) Generator added in v0.9.98

func (d *DIContainer) Generator() generator.IGenerator

func (*DIContainer) Geocoding added in v1.2.67

func (d *DIContainer) Geocoding() geocoding.IGeocoding

func (*DIContainer) Google added in v0.9.98

func (d *DIContainer) Google() *social.Google

func (*DIContainer) GoogleAnalytics added in v1.1.36

func (d *DIContainer) GoogleAnalytics() googleanalytics.IAPIManager

func (*DIContainer) Gql added in v1.0.35

func (d *DIContainer) Gql() gql.IGQLInterface

func (*DIContainer) HTML2PDF added in v1.2.0

func (d *DIContainer) HTML2PDF() html2pdf.ServiceInterface

func (*DIContainer) Instagram added in v1.0.66

func (d *DIContainer) Instagram() instagram.IAPIManager

func (*DIContainer) JWT added in v0.9.98

func (d *DIContainer) JWT() *jwt.JWT

func (*DIContainer) Kubernetes added in v1.1.50

func (d *DIContainer) Kubernetes() kubernetes.IProvider

func (*DIContainer) LicensePlateRecognizer added in v1.2.65

func (d *DIContainer) LicensePlateRecognizer() licenseplaterecognizer.LicensePlateRecognizer

func (*DIContainer) Localize added in v0.9.98

func (d *DIContainer) Localize() localize.ILocalizer

func (*DIContainer) Mail added in v1.1.4

func (d *DIContainer) Mail() mail.ISender

func (*DIContainer) OSService added in v0.9.98

func (d *DIContainer) OSService() oss.IProvider

func (*DIContainer) OTP added in v0.9.98

func (d *DIContainer) OTP() otp.IOTP

func (*DIContainer) OrmConfig added in v0.9.98

func (d *DIContainer) OrmConfig() beeorm.ValidatedRegistry

func (*DIContainer) OrmEngine added in v0.9.98

func (d *DIContainer) OrmEngine() *beeorm.Engine

func (*DIContainer) OrmEngineForContext added in v0.9.98

func (d *DIContainer) OrmEngineForContext(ctx context.Context) *beeorm.Engine

func (*DIContainer) Password added in v0.9.98

func (d *DIContainer) Password() password.IPassword

func (*DIContainer) RequestLogger added in v1.2.55

func (d *DIContainer) RequestLogger() requestlogger.IRequestLogger

func (*DIContainer) SMS added in v0.9.98

func (d *DIContainer) SMS() sms.ISender

func (*DIContainer) Sentry added in v1.2.13

func (d *DIContainer) Sentry() sentry.ISentry

func (*DIContainer) Setting added in v0.9.98

func (*DIContainer) Slack added in v0.9.98

func (d *DIContainer) Slack() slack.Slack

func (*DIContainer) SocketRegistry added in v0.9.98

func (d *DIContainer) SocketRegistry() *socket.Registry

func (*DIContainer) Stripe added in v0.9.98

func (d *DIContainer) Stripe() stripe.IStripe

func (*DIContainer) Template added in v1.0.32

func (d *DIContainer) Template() template.ITemplateInterface

func (*DIContainer) Translation added in v1.2.95

func (d *DIContainer) Translation() translation.ITranslationService

func (*DIContainer) UUID added in v0.9.98

func (d *DIContainer) UUID() uuid.IUUID

func (*DIContainer) Uploader added in v0.9.98

func (d *DIContainer) Uploader() uploader.Uploader

type DefinitionGlobal added in v0.8.35

type DefinitionGlobal struct {
	Name   string
	Script bool
	Build  func(ctn di.Container) (interface{}, error)
	Close  func(obj interface{}) error
	Flags  func(registry *app.FlagsRegistry)
}

type DefinitionRequest added in v0.8.35

type DefinitionRequest struct {
	Name  string
	Build func(ctn *gin.Context) (interface{}, error)
}

Jump to

Keyboard shortcuts

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