Documentation ¶
Index ¶
- Variables
- func NewBlobFactory(c *kitconf.Data) blob.Factory
- func NewCacheStore(client redis.UniversalClient) store.StoreInterface
- func NewConnStrResolver(c *kitconf.Data, ts saas.TenantStore) data.ConnStrResolver
- func NewConstantConnStrResolver(c *kitconf.Data) data.ConnStrings
- func NewEmailer(c *kitconf.Data) email.LazyClient
- func NewEventSender(c *kitconf.Data, name ConnName) (event.Producer, func(), error)
- func NewRedis(c *kitconf.Data, name ConnName) (*redis.Client, error)
- func NewStringCacheManager(store store.StoreInterface) *cache.Cache[string]
- type ConnName
- type ConstDbProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //DefaultProviderSet shared provider for all data layer DefaultProviderSet = wire.NewSet( NewConnStrResolver, NewConstantConnStrResolver, kitgorm.NewDbCache, kitgorm.NewDbProvider, NewConstDbProvider, kituow.NewUowManager, NewBlobFactory, NewRedis, wire.Bind(new(redis.UniversalClient), new(*redis.Client)), NewCacheStore, NewStringCacheManager, wire.Bind(new(cache.CacheInterface[string]), new(*cache.Cache[string])), NewEmailer, NewEventSender, wire.Value(eventbus.Default), ) )
Functions ¶
func NewCacheStore ¶
func NewCacheStore(client redis.UniversalClient) store.StoreInterface
func NewConnStrResolver ¶
func NewConnStrResolver(c *kitconf.Data, ts saas.TenantStore) data.ConnStrResolver
func NewConstantConnStrResolver ¶
func NewConstantConnStrResolver(c *kitconf.Data) data.ConnStrings
NewConstantConnStrResolver ignore multi-tenancy
func NewEmailer ¶
func NewEmailer(c *kitconf.Data) email.LazyClient
func NewEventSender ¶
func NewStringCacheManager ¶
func NewStringCacheManager(store store.StoreInterface) *cache.Cache[string]
Types ¶
type ConstDbProvider ¶
type ConstDbProvider sgorm.DbProvider
func NewConstDbProvider ¶
func NewConstDbProvider(cache *kitgorm.DbCache, cs data.ConnStrings, d *kitconf.Data) ConstDbProvider
NewConstDbProvider ignore multi-tenancy
Click to show internal directories.
Click to hide internal directories.