Documentation ¶
Index ¶
- Constants
- func EqualErrors(old, new string) bool
- type ErrorInfo
- type ErrorQueue
- func (q *ErrorQueue) Append(errors []ErrorInfo)
- func (q *ErrorQueue) Clone() *ErrorQueue
- func (q *ErrorQueue) Empty() bool
- func (q *ErrorQueue) End() ErrorInfo
- func (q *ErrorQueue) EqualLast(e ErrorInfo) bool
- func (q *ErrorQueue) Front() ErrorInfo
- func (q *ErrorQueue) GetMaxSize() int
- func (q *ErrorQueue) GetN(n int) ErrorInfo
- func (q *ErrorQueue) List() []ErrorInfo
- func (q *ErrorQueue) Put(e ErrorInfo)
- func (q *ErrorQueue) Size() int
Constants ¶
View Source
const ( DefaultErrorsListCap = 100 PipeLineError = "ErrorMessage=" )
Variables ¶
This section is empty.
Functions ¶
func EqualErrors ¶
Types ¶
type ErrorInfo ¶
type ErrorQueue ¶
type ErrorQueue struct {
// contains filtered or unexported fields
}
保证内部成员的数值只能由方法调用而改变,不能直接修改
func New ¶
func New(capacity int) *ErrorQueue
func (*ErrorQueue) Empty ¶
func (q *ErrorQueue) Empty() bool
func (*ErrorQueue) EqualLast ¶
func (q *ErrorQueue) EqualLast(e ErrorInfo) bool
比较是否和最后的error类型相等,方便增加计数而不是直接插入元素
func (*ErrorQueue) Size ¶
func (q *ErrorQueue) Size() int
Click to show internal directories.
Click to hide internal directories.