sid

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sid - generate unique sid for connection (fd25::<connectionId>:<nextIndex>)

Index

Constants

View Source
const SIDPrefix = "fd25::"

SIDPrefix - subnet for generated sid's

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator interface {
	SID(requestID string) string
	Restore(hardwareAddr, sid string)
}

Allocator - generating unique SID for connection

func NewSIDAllocator

func NewSIDAllocator() Allocator

NewSIDAllocator - creates sid allocator

Jump to

Keyboard shortcuts

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