Documentation
¶
Index ¶
- Constants
- func FuncName(f interface{}) string
- func NewSimpleLogger() (Goner, GonerId)
- func PanicTrace(kb int) []byte
- func Run(priests ...Priest)
- func Serve(priests ...Priest)
- func Test[T Goner](fn func(T), priests ...Priest)
- func TestAt[T Goner](id GonerId, fn func(T), priests ...Priest)
- type AfterReviveError
- type Angel
- type Cemetery
- type Error
- func CannotFoundGonerByIdError(id GonerId) Error
- func CannotFoundGonerByTypeError(t reflect.Type) Error
- func GonerDoNotInitCompletelyError(id GonerId) Error
- func GonerIdIsExistedError(id GonerId) Error
- func NewError(code int, msg string) Error
- func NewInnerError(code int, msg string) Error
- func NotCompatibleError(a reflect.Type, b reflect.Type) Error
- func ReplaceBuryIdParamEmptyError() Error
- type Flag
- type Goner
- type GonerId
- type Heaven
- type InnerError
- type Logger
- type Priest
- type Process
- type Prophet
- type SuckError
- type TestHeaven
- type Tomb
- type Tombs
- type Vampire
Constants ¶
View Source
const ( GonerIdIsExisted = 1001 + iota CannotFoundGonerById CannotFoundGonerByType NotCompatible ReplaceBuryIdParamEmpty GonerDoNotInitCompletely )
View Source
const ( IdGoneCemetery = "gone-cemetery" IdGoneHeaven = "gone-heaven" IdGoneTestKit = "gone-test-kit" IdGoneTracer = "gone-tracer" IdGoneLogger = "gone-logger" IdConfig = "config" IdGoneConfigure = "gone-configure" IdGoneCumx = "gone-cumx" IdGoneGin = "gone-gin" IdGoneGinRouter = "gone-gin-router" IdGoneGinProcessor = "gone-gin-processor" IdGoneGinProxy = "gone-gin-proxy" IdGoneGinResponser = "gone-gin-responser" IdGoneXorm = "gone-xorm" IdGoneRedisPool = "gone-redis-pool" IdGoneRedisCache = "gone-redis-cache" IdGoneRedisLocker = "gone-redis-locker" IdGoneSchedule = "gone-schedule" )
Variables ¶
This section is empty.
Functions ¶
func NewSimpleLogger ¶ added in v0.0.8
func PanicTrace ¶
Types ¶
type AfterReviveError ¶ added in v0.0.6
type AfterReviveError error
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 ¶
Error 普通错误
func GonerDoNotInitCompletelyError ¶ added in v0.0.6
func GonerIdIsExistedError ¶
func NewInnerError ¶ added in v0.0.6
func ReplaceBuryIdParamEmptyError ¶
func ReplaceBuryIdParamEmptyError() Error
type Heaven ¶
type InnerError ¶ added in v0.0.6
InnerError 内部错误
type Prophet ¶ added in v0.0.6
type Prophet interface { Goner //AfterRevive 在Goner复活后会被执行 AfterRevive() AfterReviveError }
Prophet 先知
type TestHeaven ¶
type TestHeaven[T Goner] interface { Heaven WithId(id GonerId) TestHeaven[T] WithPriest(priests ...Priest) TestHeaven[T] Run() }
func TestKit ¶
func TestKit[T Goner](fn func(T)) TestHeaven[T]
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.