cid

package
v0.8.19 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cid provides a manager for mappings between node ID:s and connection ID:s.

Index

Constants

This section is empty.

Variables

View Source
var (
	LocalName      = "<local>"
	LocalID   uint = 0
)

Functions

This section is empty.

Types

type Map

type Map struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMap

func NewMap() *Map

func (*Map) Clear

func (m *Map) Clear(name string)

func (*Map) Get

func (m *Map) Get(name string) uint

func (*Map) Name added in v0.7.0

func (m *Map) Name(cid uint) string

func (*Map) Names added in v0.7.0

func (m *Map) Names() []string

Jump to

Keyboard shortcuts

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