Documentation
¶
Index ¶
- Variables
- func NewNonBlockingEvent(seqNo int64, payload event.NonBlockingPayload, context event.Context) *event.Event
- type Database
- type Logger
- type Resolver
- type ResolverImpl
- type ResolverUserQueries
- type Service
- func (s *Service) DidCommitTx(ctx context.Context)
- func (s *Service) DispatchEventImmediately(ctx context.Context, payload event.NonBlockingPayload) (err error)
- func (s *Service) DispatchEventOnCommit(ctx context.Context, payload event.Payload) (err error)
- func (s *Service) WillCommitTx(ctx context.Context) (err error)
- type Sink
- type Store
- type StoreImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( NewLogger, NewService, NewStoreImpl, wire.Struct(new(ResolverImpl), "*"), wire.Bind(new(Store), new(*StoreImpl)), wire.Bind(new(Resolver), new(*ResolverImpl)), )
Functions ¶
func NewNonBlockingEvent ¶
Types ¶
type ResolverImpl ¶
type ResolverImpl struct {
Users ResolverUserQueries
}
type ResolverUserQueries ¶
type Service ¶
type Service struct { AppID config.AppID RemoteIP httputil.RemoteIP UserAgentString httputil.UserAgentString Logger Logger Database Database Clock clock.Clock Localization *config.LocalizationConfig Store Store Resolver Resolver Sinks []Sink NonBlockingPayloads []event.NonBlockingPayload `wire:"-"` NonBlockingEvents []*event.Event `wire:"-"` DatabaseHooked bool `wire:"-"` IsDispatchEventErr bool `wire:"-"` }
func NewService ¶
func NewService( appID config.AppID, remoteIP httputil.RemoteIP, userAgentString httputil.UserAgentString, logger Logger, database Database, clock clock.Clock, localization *config.LocalizationConfig, store Store, resolver Resolver, hookSink *hook.Sink, auditSink *audit.Sink, searchSink *reindex.Sink, userInfoSink *userinfo.Sink, ) *Service
func (*Service) DidCommitTx ¶
func (*Service) DispatchEventImmediately ¶
func (s *Service) DispatchEventImmediately(ctx context.Context, payload event.NonBlockingPayload) (err error)
DispatchEventImmediately dispatches the event immediately.
func (*Service) DispatchEventOnCommit ¶
DispatchEventOnCommit dispatches the event according to the tranaction lifecycle.
type StoreImpl ¶
type StoreImpl struct { SQLBuilder *appdb.SQLBuilder SQLExecutor *appdb.SQLExecutor }
func NewStoreImpl ¶
func NewStoreImpl( sqlBuilder *appdb.SQLBuilder, sqlExecutor *appdb.SQLExecutor) *StoreImpl
Click to show internal directories.
Click to hide internal directories.