Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEniter ¶
type IEniter interface { // CreateEnity should create connection using passed parameters. // It is up to provider to cast passed options into required data // type and provide instructions for configuring. // Passed conn should be a pointer to needed structure that might be // provided by database provider. Provider should not attempt to // replace pointer if nil is passed. Provider should check if passed // conn is a pointer to valid structure and return error if it is // invalid AND continue with connection creating. CreateEnity(connectionName string, options interface{}) error // GetEnity should return pointer to connection structure to // caller. It is up to caller to cast returned interface{} into // required data type. // Passed conn should be a pointer to needed structure that might be // provided by database provider. Provider should not attempt to // replace pointer if nil is passed. Provider should check if passed // conn is a pointer to valid structure and return error if it is // invalid. GetEnity(connectionName string) (interface{}, error) }
type IEnityManager ¶
type Provider ¶
type Provider struct { Entitys MapEnity Log *zerolog.Logger Logger *logger.Logger Name string // contains filtered or unexported fields }
Provider provides abstract worker.
func NewProvider ¶
NewProvider creates provider
func (*Provider) GetContext ¶
func (*Provider) ShutdownEnity ¶
ShutdownEnity starts connection things like watchers and queues.
func (*Provider) StartEnity ¶
StartEnity starts connection things like watchers and queues.
Click to show internal directories.
Click to hide internal directories.