Documentation
¶
Index ¶
- Constants
- Variables
- func GetClassName(v interface{}) string
- type Class
- type DelayQueue
- type LinkedHashMap
- func (m *LinkedHashMap[K, T]) Contains(key K) bool
- func (m *LinkedHashMap[K, T]) Get(k K) (T, bool)
- func (m *LinkedHashMap[K, T]) Keys() []K
- func (m *LinkedHashMap[K, T]) Put(k K, v T)
- func (m *LinkedHashMap[K, T]) Remove(k K)
- func (m *LinkedHashMap[K, T]) RemoveFirst() K
- func (m *LinkedHashMap[K, T]) RemoveLast() K
- func (m *LinkedHashMap[K, T]) Size() int
- func (m *LinkedHashMap[K, T]) Values() []T
- type LinkedList
- type Method
- func (m *Method) GetArgs() []reflect.Type
- func (m *Method) GetClass() *Class
- func (m *Method) GetName() string
- func (m *Method) GetPath() string
- func (m *Method) GetPkgName() string
- func (m *Method) GetRets() []reflect.Type
- func (m *Method) HasArgs() bool
- func (m *Method) HasRets() bool
- func (m *Method) Invoke(args []reflect.Value) []reflect.Value
- type ObjectPriorityQueue
- type Ordered
- type PriorityQueue
- type SafeRingQueue
- func (q *SafeRingQueue) BlockDequeue() interface{}
- func (q *SafeRingQueue) BlockEnqueue(val interface{})
- func (q *SafeRingQueue) Dequeue() (interface{}, error)
- func (q *SafeRingQueue) Enqueue(val interface{}) error
- func (q *SafeRingQueue) Peek() (interface{}, error)
- func (q *SafeRingQueue) Size() int
- type Set
- type Time
- func (t *Time) IsZero() bool
- func (t *Time) MarshalJSON() ([]byte, error)
- func (t *Time) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (t *Time) Scan(val interface{}) (err error)
- func (t Time) String() string
- func (t *Time) Time() time.Time
- func (t *Time) UTCString() string
- func (t *Time) UnmarshalJSON(data []byte) (err error)
- func (t *Time) Value() (driver.Value, error)
- type TimeStandard
- func (t *TimeStandard) IsZero() bool
- func (t *TimeStandard) MarshalJSON() ([]byte, error)
- func (t *TimeStandard) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (t *TimeStandard) Scan(val interface{}) (err error)
- func (t TimeStandard) String() string
- func (t *TimeStandard) Time() time.Time
- func (t *TimeStandard) UTCString() string
- func (t *TimeStandard) UnmarshalJSON(data []byte) (err error)
- func (t *TimeStandard) Value() (driver.Value, error)
Constants ¶
View Source
const ( TimeFormat = "2006-01-02 15:04:05" TimeFormatT = "2006-01-02T15:04:05" )
Variables ¶
Functions ¶
func GetClassName ¶
func GetClassName(v interface{}) string
Types ¶
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
Class 声明类
func (*Class) GetPkgName ¶
type DelayQueue ¶
type DelayQueue struct {
// contains filtered or unexported fields
}
func NewDelayQueue ¶
func NewDelayQueue() *DelayQueue
func (*DelayQueue) Add ¶
func (dq *DelayQueue) Add(value interface{}, delay time.Time)
func (*DelayQueue) Size ¶
func (dq *DelayQueue) Size() int
func (*DelayQueue) Take ¶
func (dq *DelayQueue) Take() (value interface{})
type LinkedHashMap ¶
type LinkedHashMap[K comparable, T any] struct { // contains filtered or unexported fields }
func NewLinkHashMap ¶
func NewLinkHashMap[K comparable, T any]() *LinkedHashMap[K, T]
func (*LinkedHashMap[K, T]) Contains ¶
func (m *LinkedHashMap[K, T]) Contains(key K) bool
func (*LinkedHashMap[K, T]) Get ¶
func (m *LinkedHashMap[K, T]) Get(k K) (T, bool)
func (*LinkedHashMap[K, T]) Keys ¶
func (m *LinkedHashMap[K, T]) Keys() []K
func (*LinkedHashMap[K, T]) Put ¶
func (m *LinkedHashMap[K, T]) Put(k K, v T)
func (*LinkedHashMap[K, T]) Remove ¶
func (m *LinkedHashMap[K, T]) Remove(k K)
func (*LinkedHashMap[K, T]) RemoveFirst ¶
func (m *LinkedHashMap[K, T]) RemoveFirst() K
func (*LinkedHashMap[K, T]) RemoveLast ¶
func (m *LinkedHashMap[K, T]) RemoveLast() K
func (*LinkedHashMap[K, T]) Size ¶
func (m *LinkedHashMap[K, T]) Size() int
func (*LinkedHashMap[K, T]) Values ¶
func (m *LinkedHashMap[K, T]) Values() []T
type LinkedList ¶
type LinkedList[T comparable] struct { // contains filtered or unexported fields }
func (*LinkedList[T]) AddFirst ¶
func (l *LinkedList[T]) AddFirst(item T)
func (*LinkedList[T]) AddLast ¶
func (l *LinkedList[T]) AddLast(item T)
func (*LinkedList[T]) Contains ¶
func (l *LinkedList[T]) Contains(item T) bool
func (*LinkedList[T]) RemoveFirst ¶
func (l *LinkedList[T]) RemoveFirst() (T, error)
func (*LinkedList[T]) RemoveLast ¶
func (l *LinkedList[T]) RemoveLast() (T, error)
func (*LinkedList[T]) Size ¶
func (l *LinkedList[T]) Size() int
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
func (*Method) GetPkgName ¶
type ObjectPriorityQueue ¶
func (*ObjectPriorityQueue[T]) Contains ¶
func (h *ObjectPriorityQueue[T]) Contains(e T) bool
func (*ObjectPriorityQueue[T]) Offer ¶
func (h *ObjectPriorityQueue[T]) Offer(e T)
func (*ObjectPriorityQueue[T]) Peek ¶
func (h *ObjectPriorityQueue[T]) Peek() (T, error)
func (*ObjectPriorityQueue[T]) Poll ¶
func (h *ObjectPriorityQueue[T]) Poll() (T, error)
func (*ObjectPriorityQueue[T]) Size ¶
func (h *ObjectPriorityQueue[T]) Size() int
type PriorityQueue ¶
type PriorityQueue[T constraints.Ordered] struct { Max bool // contains filtered or unexported fields }
func (*PriorityQueue[T]) Contains ¶
func (h *PriorityQueue[T]) Contains(e T) bool
func (*PriorityQueue[T]) Offer ¶
func (h *PriorityQueue[T]) Offer(e T)
func (*PriorityQueue[T]) Peek ¶
func (h *PriorityQueue[T]) Peek() (T, error)
func (*PriorityQueue[T]) Poll ¶
func (h *PriorityQueue[T]) Poll() (T, error)
func (*PriorityQueue[T]) Size ¶
func (h *PriorityQueue[T]) Size() int
type SafeRingQueue ¶
type SafeRingQueue struct {
// contains filtered or unexported fields
}
func NewSafeRingQueue ¶
func NewSafeRingQueue(cap int) *SafeRingQueue
func (*SafeRingQueue) BlockDequeue ¶
func (q *SafeRingQueue) BlockDequeue() interface{}
func (*SafeRingQueue) BlockEnqueue ¶
func (q *SafeRingQueue) BlockEnqueue(val interface{})
func (*SafeRingQueue) Dequeue ¶
func (q *SafeRingQueue) Dequeue() (interface{}, error)
func (*SafeRingQueue) Enqueue ¶
func (q *SafeRingQueue) Enqueue(val interface{}) error
func (*SafeRingQueue) Peek ¶
func (q *SafeRingQueue) Peek() (interface{}, error)
func (*SafeRingQueue) Size ¶
func (q *SafeRingQueue) Size() int
type Set ¶
type Set[T comparable] map[T]struct{}
type TimeStandard ¶
func NewTimeStandard ¶
func NewTimeStandard(str string) TimeStandard
func (*TimeStandard) IsZero ¶
func (t *TimeStandard) IsZero() bool
func (*TimeStandard) MarshalJSON ¶
func (t *TimeStandard) MarshalJSON() ([]byte, error)
func (*TimeStandard) MarshalXML ¶
func (t *TimeStandard) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*TimeStandard) Scan ¶
func (t *TimeStandard) Scan(val interface{}) (err error)
func (TimeStandard) String ¶
func (t TimeStandard) String() string
func (*TimeStandard) Time ¶
func (t *TimeStandard) Time() time.Time
func (*TimeStandard) UTCString ¶
func (t *TimeStandard) UTCString() string
func (*TimeStandard) UnmarshalJSON ¶
func (t *TimeStandard) UnmarshalJSON(data []byte) (err error)
Click to show internal directories.
Click to hide internal directories.