m2mp_common

package
v0.0.0-...-af70fd6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = false

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

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

func NewEntry

func NewEntry(key string, value interface{}) *Entry

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) AddPrimaryKey

func (this *Registry) AddPrimaryKey(key string, value interface{})

func (*Registry) AddSecondaryKey

func (this *Registry) AddSecondaryKey(first, second string)

func (*Registry) CheckConsistency

func (this *Registry) CheckConsistency() []string

Check inconsistency. This method should never be used outside development. It allows to test if we entered the value with two different unique keys.

func (*Registry) Dump

func (this *Registry) Dump(w io.Writer)

func (*Registry) NbPrimary

func (this *Registry) NbPrimary() int

func (*Registry) NbSecondary

func (this *Registry) NbSecondary() int

func (*Registry) Prepare

func (this *Registry) Prepare()

func (*Registry) Primary

func (this *Registry) Primary(key string) interface{}

func (*Registry) RemovePrimaryKey

func (this *Registry) RemovePrimaryKey(key string)

func (*Registry) RemoveSecondaryKey

func (this *Registry) RemoveSecondaryKey(first, second string)

func (*Registry) Secondary

func (this *Registry) Secondary(key string) []interface{}

Jump to

Keyboard shortcuts

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