Documentation ¶
Index ¶
- Constants
- type Deque
- func (d *Deque) Back() (interface{}, bool)
- func (d *Deque) Head() (interface{}, bool)
- func (d *Deque) Len() uint64
- func (d *Deque) PopBack() (interface{}, bool)
- func (d *Deque) PopFront() (interface{}, bool)
- func (d *Deque) PushBack(obj interface{})
- func (d *Deque) PushFront(obj interface{})
- func (d *Deque) Slice() []interface{}
- type UnlimitedChannel
Constants ¶
View Source
const TimeFormat = time.RFC3339
TimeFormat defines default time format in this repo.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deque ¶
type Deque struct {
// contains filtered or unexported fields
}
Deque defines deque struct.
func (*Deque) PushBack ¶
func (d *Deque) PushBack(obj interface{})
PushBack pushes an object to back.
type UnlimitedChannel ¶
type UnlimitedChannel struct {
// contains filtered or unexported fields
}
UnlimitedChannel defines unlimited channel struct.
func NewUnlimitedChannel ¶
func NewUnlimitedChannel() *UnlimitedChannel
NewUnlimitedChannel returns an unlimited channel object.
func (*UnlimitedChannel) Close ¶
func (c *UnlimitedChannel) Close()
Close close the unlimited channel.
func (*UnlimitedChannel) Done ¶
func (c *UnlimitedChannel) Done() <-chan struct{}
Done returns done channel.
func (*UnlimitedChannel) Dump ¶
func (c *UnlimitedChannel) Dump() []interface{}
Dump returns data stuck in channel. Remember there is no lock, so be careful when you call Dump().
func (*UnlimitedChannel) In ¶
func (c *UnlimitedChannel) In() chan<- interface{}
In returns input channel.
func (*UnlimitedChannel) Len ¶
func (c *UnlimitedChannel) Len() uint64
Len returns length of channel. Remember there is no lock, so be careful when you call Len().
func (*UnlimitedChannel) Out ¶
func (c *UnlimitedChannel) Out() <-chan interface{}
Out returns output channel.
Click to show internal directories.
Click to hide internal directories.