session

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

README

session

spirit component - set session, get session, delete session

Quick start with docker

Configure your ali mqs info in conf/spirit.env and set memcached host in conf/session.conf

Copy conf/spirit.env.example to conf/spirit.env and configure it

{
	"owner_id":"",
	"access_key_id": "",
	"acces_key_secert": "",
	"mqs_url":"mqs-cn-hangzhou.aliyuncs.com",
	"queue_get_session":"session-get-session",
	"queue_set_session":"session-set-session"
}

Copy conf/session.conf.example to conf/session.conf and configure it

{
	"memcached":{
		"address":"memcached:11211"
	}
}

In these config, we need create two message queue at aliyun console, queue session-get-session is for get session from memcached, queue session-set-session is for set session to memcached.

you can also use project of github.com/spirit-contrib/inlet_http_api to get session by api method, you just need to do is set inlet_http_api 's graph, and the field of is_proxy should be true

$ docker-compose up
Recreating session_memcached_1...
Recreating session_session_1...
Attaching to session_memcached_1, session_session_1
session_1   | [spirit] component session running

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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