Documentation
¶
Index ¶
- Constants
- func PanicTrace(kb int) []byte
- func Run(priests ...Priest)
- type Angel
- type Cemetery
- type Error
- func CannotFoundGonerByIdError(id GonerId) *Error
- func CannotFoundGonerByTypeError(t reflect.Type) *Error
- func GonerIdIsExistedError(id GonerId) *Error
- func NewError(code int, msg string) *Error
- func NotCompatibleError(a reflect.Type, b reflect.Type) *Error
- func ReplaceBuryIdParamEmptyError() *Error
- type Flag
- type Goner
- type GonerId
- type GonerTestKit
- type Heaven
- type Logger
- type Priest
- type Process
- type ReviveAfter
- type ReviveAfterError
- type SuckError
- type TestHeaven
- type Tomb
- type Tombs
- type Vampire
Constants ¶
View Source
const ( GonerIdIsExisted = 1001 + iota CannotFoundGonerById CannotFoundGonerByType NotCompatible ReplaceBuryIdParamEmpty )
View Source
const ( IdGoneCemetery = "gone-cemetery" IdGoneHeaven = "gone-heaven" IdGoneTestKit = "gone-test-kit" IdGoneTracer = "gone-tracer" IdGoneLogger = "gone-logger" IdConfig = "config" IdGoneConfigure = "gone-configure" )
Variables ¶
This section is empty.
Functions ¶
func PanicTrace ¶
Types ¶
type Cemetery ¶
type Cemetery interface {
Goner
Bury(Goner, ...GonerId) Cemetery // 埋葬,将逝者埋葬到墓园
ReplaceBury(Goner, GonerId) error // 替换性埋葬
GetTomById(GonerId) Tomb
GetTomByType(reflect.Type) []Tomb
// contains filtered or unexported methods
}
Cemetery 墓园
type Error ¶
func GonerIdIsExistedError ¶
func ReplaceBuryIdParamEmptyError ¶
func ReplaceBuryIdParamEmptyError() *Error
type GonerTestKit ¶
type GonerTestKit func(testGoner Goner)
type Heaven ¶
type ReviveAfter ¶
type ReviveAfter interface {
AfterRevive(Cemetery, Tomb) ReviveAfterError
}
type ReviveAfterError ¶
type ReviveAfterError error
type TestHeaven ¶
type Tomb ¶
type Tomb interface {
SetId(GonerId) Tomb
GetId() GonerId
GetGoner() Goner
GonerIsRevive(flags ...bool) bool
}
Tomb 坟墓,逝者的容器
Source Files
¶
Click to show internal directories.
Click to hide internal directories.