service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: GPL-3.0 Imports: 41 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"
	PDFService              = "pdf"
	ExtractorService        = "extractor"
	JWTService              = "jwt"
	DDOSService             = "ddos"
	FCMService              = "fcm"
	ORMConfigService        = "orm_config"
	ORMEngineGlobalService  = "orm_engine_global"
	ORMEngineRequestService = "orm_engine_request"
	ClockWorkRequestService = "clockwork_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"
	SettingService          = "setting"
	FeatureFlagService      = "feature_flag"
	TemplateService         = "template"
	GQLService              = "gql"
	ElorusService           = "elorus"
	InstagramService        = "instagram"
)

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) 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) Google added in v0.9.98

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

func (*DIContainer) Gql added in v1.0.35

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

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) Localize added in v0.9.98

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

func (*DIContainer) MailMandrill added in v0.9.98

func (d *DIContainer) MailMandrill() mail.Sender

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) PDF added in v0.9.98

func (d *DIContainer) PDF() pdf.ServiceInterface

func (*DIContainer) Password added in v0.9.98

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

func (*DIContainer) SMS added in v0.9.98

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

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) 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