Service

package
Version: v0.0.0-...-de03387 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2014 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTION_GET  = 1
	ACTION_INCR = 2
)
View Source
const CONTENT_LENGTH_SIZE = 4

Variables

This section is empty.

Functions

func StartToListen

func StartToListen()

Types

type DBPool

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

type KeyBox

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

func GetKeyBoxInstance

func GetKeyBoxInstance() *KeyBox

type MemcacheClient

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

func GetMemcacheClient

func GetMemcacheClient() *MemcacheClient

func (*MemcacheClient) Free

func (this *MemcacheClient) Free()

func (*MemcacheClient) Get

func (this *MemcacheClient) Get(key string) string

func (*MemcacheClient) Incrment

func (this *MemcacheClient) Incrment(key string, incrementValue uint64) uint64

func (*MemcacheClient) Set

func (this *MemcacheClient) Set(key string, value string)

type MemcachePool

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

type Message

type Message struct {
	Key            string
	IncrementValue uint64
	Action         uint16
}

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