timer

package
v1.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(node *Node)

func Run

func Run(closeSig chan bool)

func SetTimer

func SetTimer(inteval uint32, handler func(interface{}), args interface{})

Types

type LinkedList

type LinkedList struct {
	// contains filtered or unexported fields
}

func NewLinkedList

func NewLinkedList() *LinkedList

func (LinkedList) GetHead

func (this LinkedList) GetHead() *Node

*

  • 获取表头

func (LinkedList) GetLast

func (this LinkedList) GetLast() *Node

*

  • 获取表尾

func (LinkedList) Length

func (this LinkedList) Length() uint

func (*LinkedList) PushBack

func (this *LinkedList) PushBack(node Node) *Node

type Node

type Node struct {
	// contains filtered or unexported fields
}

定义节点

func (*Node) Data

func (this *Node) Data() (data interface{})

func (*Node) InsertHead

func (this *Node) InsertHead(node Node) *Node

func (*Node) Next

func (this *Node) Next() (node *Node)

func (*Node) Prev

func (this *Node) Prev() (node *Node)

func (*Node) SetData

func (this *Node) SetData(data interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL