Documentation ¶
Overview ¶
Package session provides machine-wide unique sessions.
A session is a small unique integer, which is tied to a process id (PID) and may typically be used to create a unique local IP address.
Note, this package was implemented to provide a smooth migration from Nokia internal test tool (k3-run) to ntt and maybe replaced in the future.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Get ¶
Get returns the next free unqiue seesion id. If an error occures, Get returns -1 and the error.
Types ¶
type SessionSlice ¶
type SessionSlice []session
func (SessionSlice) Len ¶
func (s SessionSlice) Len() int
func (SessionSlice) Less ¶
func (s SessionSlice) Less(i, j int) bool
func (SessionSlice) Swap ¶
func (s SessionSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.