Documentation ¶
Index ¶
- func Close(t io.Closer) error
- func Dispose(t Disposable) error
- func Release(pool ReleasePool) error
- type DefaultErrorCollector
- func (inst *DefaultErrorCollector) Append(err error)
- func (inst *DefaultErrorCollector) AppendIfFalse(value bool, msg string)
- func (inst *DefaultErrorCollector) AppendIfNil(value Object, msg string)
- func (inst *DefaultErrorCollector) LastError() error
- func (inst *DefaultErrorCollector) Result() error
- type Disposable
- type ErrorCollector
- type ErrorHandler
- type Object
- type PriorityProvider
- type ReleasePool
- type SimpleReleasePool
- type TryChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dispose ¶
func Dispose(t Disposable) error
func Release ¶
func Release(pool ReleasePool) error
Types ¶
type DefaultErrorCollector ¶
type DefaultErrorCollector struct {
// contains filtered or unexported fields
}
func (*DefaultErrorCollector) Append ¶
func (inst *DefaultErrorCollector) Append(err error)
func (*DefaultErrorCollector) AppendIfFalse ¶
func (inst *DefaultErrorCollector) AppendIfFalse(value bool, msg string)
func (*DefaultErrorCollector) AppendIfNil ¶
func (inst *DefaultErrorCollector) AppendIfNil(value Object, msg string)
func (*DefaultErrorCollector) LastError ¶
func (inst *DefaultErrorCollector) LastError() error
func (*DefaultErrorCollector) Result ¶
func (inst *DefaultErrorCollector) Result() error
type ErrorCollector ¶
type ErrorCollector interface { Append(err error) AppendIfFalse(ok bool, msg string) AppendIfNil(target Object, msg string) LastError() error Result() error }
ErrorCollector 表示一个错误收集器
type ErrorHandler ¶
type ErrorHandler interface {
OnError(err error)
}
func DefaultErrorHandler ¶
func DefaultErrorHandler() ErrorHandler
type PriorityProvider ¶
type PriorityProvider interface {
Priority() int
}
type ReleasePool ¶
type ReleasePool interface { Release() error Push(target Disposable) }
func CreateReleasePool ¶
func CreateReleasePool() ReleasePool
type SimpleReleasePool ¶
type SimpleReleasePool struct {
// contains filtered or unexported fields
}
func (*SimpleReleasePool) Push ¶
func (inst *SimpleReleasePool) Push(target Disposable)
func (*SimpleReleasePool) Release ¶
func (inst *SimpleReleasePool) Release() error
Click to show internal directories.
Click to hide internal directories.