Documentation
¶
Index ¶
- type Account
- type Context
- type Engine
- func (e *Engine) AddError(err *eerr.Error)
- func (e *Engine) AddResult(key, value string)
- func (e *Engine) Cache(domain string)
- func (e *Engine) DB(domain string)
- func (e *Engine) EndTransaction()
- func (e *Engine) Error(index int) *eerr.Error
- func (e *Engine) HasError() bool
- func (e *Engine) NewContext() *Context
- func (e *Engine) RaiseEvent(ent *event.Event)
- func (e *Engine) Result(key string) string
- func (e *Engine) Results() map[string]string
- func (e *Engine) StartTransaction()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context engine context
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine struct, Hold dispatcher and transaction
func NewEngine ¶
func NewEngine(d event.Dispatcher) *Engine
NewEngine create new engine instance by specifying dispatcher
func (*Engine) EndTransaction ¶
func (e *Engine) EndTransaction()
EndTransaction end engine transaction
func (*Engine) NewContext ¶
NewContext create new context for the engine
func (*Engine) RaiseEvent ¶
RaiseEvent raise new event
func (*Engine) StartTransaction ¶
func (e *Engine) StartTransaction()
StartTransaction start engine transaction
Click to show internal directories.
Click to hide internal directories.