entropy

package
Version: v0.0.0-...-1e04dac Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, id IDGenerator) context.Context

NewContext added an IDGenerator to the Context.

Types

type IDGenerator

type IDGenerator interface {
	NewID() string
	Compare(string, string) int
}

IDGenerator specification.

func FromContext

func FromContext(ctx context.Context) IDGenerator

FromContext extracts an IDGenerator from the Context.

func NewIDGenerator

func NewIDGenerator() IDGenerator

NewIDGenerator creates an IDGenerator.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL