table

package
v0.0.0-...-bccea44 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

table provides the client table interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientTable

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

ClientTable represents a client table database.

func New

func New(defaultExpiration, cleanupInterval time.Duration) *ClientTable

New creates a new client table.

func (*ClientTable) Get

func (t *ClientTable) Get(k string) (interface{}, bool)

Get returns the record for a key.

func (*ClientTable) Set

func (t *ClientTable) Set(k string, x interface{})

Set sets a value for a key.

func (*ClientTable) Undo

func (t *ClientTable) Undo(k string)

Undo reverts to the last record for a key.

Jump to

Keyboard shortcuts

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